- freq = tvb_get_letohs(tvb, offset);
- flags = tvb_get_letohs(tvb, offset+2);
- chan_str = ieee80211_mhz_to_str(freq);
- col_add_fstr(pinfo->cinfo, COL_FREQ_CHAN, "%s", chan_str);
- proto_tree_add_uint_format(radiotap_tree, hf_radiotap_channel_frequency,
- tvb, offset, 2, freq,
- "Channel frequency: %s", chan_str);
- g_free(chan_str);
- /* We're already 2-byte aligned. */
- it = proto_tree_add_uint(radiotap_tree, hf_radiotap_channel_flags,
- tvb, offset+2, 2, flags);
- flags_tree = proto_item_add_subtree(it, ett_radiotap_channel_flags);
- proto_tree_add_boolean(flags_tree, hf_radiotap_channel_flags_turbo,
- tvb, offset+2, 1, flags);
- proto_tree_add_boolean(flags_tree, hf_radiotap_channel_flags_cck,
- tvb, offset+2, 1, flags);
- proto_tree_add_boolean(flags_tree, hf_radiotap_channel_flags_ofdm,
- tvb, offset+2, 1, flags);
- proto_tree_add_boolean(flags_tree, hf_radiotap_channel_flags_2ghz,
- tvb, offset+2, 1, flags);
- proto_tree_add_boolean(flags_tree, hf_radiotap_channel_flags_5ghz,
- tvb, offset+3, 1, flags);
- proto_tree_add_boolean(flags_tree, hf_radiotap_channel_flags_passive,
- tvb, offset+3, 1, flags);
- proto_tree_add_boolean(flags_tree, hf_radiotap_channel_flags_dynamic,
- tvb, offset+3, 1, flags);
- proto_tree_add_boolean(flags_tree, hf_radiotap_channel_flags_gfsk,
- tvb, offset+3, 1, flags);
- proto_tree_add_boolean(flags_tree, hf_radiotap_channel_flags_gsm,
- tvb, offset+3, 1, flags);
- proto_tree_add_boolean(flags_tree, hf_radiotap_channel_flags_sturbo,
- tvb, offset+3, 1, flags);
- proto_tree_add_boolean(flags_tree, hf_radiotap_channel_flags_half,
- tvb, offset+3, 1, flags);
- proto_tree_add_boolean(flags_tree, hf_radiotap_channel_flags_quarter,
- tvb, offset+3, 1, flags);
- radiotap_info->freq=freq;
- radiotap_info->flags=flags;
+ freq = tvb_get_letohs(tvb, offset);
+ flags = tvb_get_letohs(tvb, offset+2);
+ chan_str = ieee80211_mhz_to_str(freq);
+ col_add_fstr(pinfo->cinfo, COL_FREQ_CHAN, "%s", chan_str);
+ proto_tree_add_uint_format(radiotap_tree, hf_radiotap_channel_frequency,
+ tvb, offset, 2, freq,
+ "Channel frequency: %s", chan_str);
+ g_free(chan_str);
+ /* We're already 2-byte aligned. */
+ it = proto_tree_add_uint(radiotap_tree, hf_radiotap_channel_flags,
+ tvb, offset+2, 2, flags);
+ flags_tree = proto_item_add_subtree(it, ett_radiotap_channel_flags);
+ proto_tree_add_boolean(flags_tree, hf_radiotap_channel_flags_turbo,
+ tvb, offset+2, 1, flags);
+ proto_tree_add_boolean(flags_tree, hf_radiotap_channel_flags_cck,
+ tvb, offset+2, 1, flags);
+ proto_tree_add_boolean(flags_tree, hf_radiotap_channel_flags_ofdm,
+ tvb, offset+2, 1, flags);
+ proto_tree_add_boolean(flags_tree, hf_radiotap_channel_flags_2ghz,
+ tvb, offset+2, 1, flags);
+ proto_tree_add_boolean(flags_tree, hf_radiotap_channel_flags_5ghz,
+ tvb, offset+3, 1, flags);
+ proto_tree_add_boolean(flags_tree, hf_radiotap_channel_flags_passive,
+ tvb, offset+3, 1, flags);
+ proto_tree_add_boolean(flags_tree, hf_radiotap_channel_flags_dynamic,
+ tvb, offset+3, 1, flags);
+ proto_tree_add_boolean(flags_tree, hf_radiotap_channel_flags_gfsk,
+ tvb, offset+3, 1, flags);
+ proto_tree_add_boolean(flags_tree, hf_radiotap_channel_flags_gsm,
+ tvb, offset+3, 1, flags);
+ proto_tree_add_boolean(flags_tree, hf_radiotap_channel_flags_sturbo,
+ tvb, offset+3, 1, flags);
+ proto_tree_add_boolean(flags_tree, hf_radiotap_channel_flags_half,
+ tvb, offset+3, 1, flags);
+ proto_tree_add_boolean(flags_tree, hf_radiotap_channel_flags_quarter,
+ tvb, offset+3, 1, flags);
+ radiotap_info->freq=freq;
+ radiotap_info->flags=flags;