Wireshark-dev: Re: [Wireshark-dev] need help on RRM capability info
From: wsgd <wsgd@xxxxxxx>
Date: Tue, 11 Aug 2009 21:42:55 +0200
Hello, Into Tag definitions, you said : - FT_BOOLEAN, 40 bits = 5 bytes - mask goes to 0x0800 and so on which is 2 bytes long (and so on) Into proto_tree_add_boolean calls, you said : length = 1 byte -> incoherent -> proto_tree_add_boolean could not apply mask > 0x00ff So try :- proto_tree_add_boolean calls with length = 5 bytes (NB: not sure value above 4 is accepted, must check)
- do not increment offset Olivier soumya damodaran a écrit :
Hi,I am adding the 802.11k RRM capability Info which is a 5 Byte data. This is what i added. proto_item *ti;proto_tree *sub_tree; guint16 capability; offset+=2; capability = tvb_get_letohs(tvb, offset);ti = proto_tree_add_uint_format (tree, ff_rrm,tvb, offset, 5, capability,"RRM Capability Byte1: 0x%04X", capability); sub_tree = proto_item_add_subtree (ti, ett_tag_rrm_capability); /* Begin : First Byte*/ proto_tree_add_boolean (sub_tree, hf_tag_link_measurement, tvb, offset, 1, capability); proto_tree_add_boolean (sub_tree, hf_tag_neighbor_report_capability, tvb, offset, 1, capability); proto_tree_add_boolean (sub_tree, hf_tag_parallel_measurement_capability, tvb, offset, 1, capability); proto_tree_add_boolean (sub_tree, hf_tag_repeated_measurement_capability, tvb, offset, 1, capability); proto_tree_add_boolean (sub_tree, hf_tag_beacon_passive_capability, tvb, offset, 1, capability); proto_tree_add_boolean (sub_tree, hf_tag_beacon_active_capability, tvb, offset, 1, capability); proto_tree_add_boolean (sub_tree, hf_tag_beacon_table_capability, tvb, offset, 1, capability); proto_tree_add_boolean (sub_tree, hf_tag_beacon_reporting_condition_capability, tvb, offset, 1, capability);/*End : First Byte */ offset+=1; /*Begin: Second Byte */proto_tree_add_boolean (sub_tree, hf_tag_frame_measurement, tvb, offset, 1, capability);proto_tree_add_boolean (sub_tree, hf_tag_channel_load_capability, tvb, offset, 1, capability);proto_tree_add_boolean (sub_tree, hf_tag_noise_histogram_capability, tvb, offset, 1, capability);proto_tree_add_boolean (sub_tree, hf_tag_statistics_measurement_capability, tvb, offset, 1, capability);proto_tree_add_boolean (sub_tree, hf_tag_LCI_measurement_capability, tvb, offset, 1, capability);proto_tree_add_boolean (sub_tree, hf_tag_LCI_Azimuth_capability, tvb, offset, 1, capability);proto_tree_add_boolean (sub_tree, hf_tag_transmit_stream_capability, tvb, offset, 1, capability);proto_tree_add_boolean (sub_tree, hf_tag_triggered_transmit_stream_capability, tvb, offset, 1, capability);/* End: Second Byte */ and Tag definitions as{"Link Measurement Capability", "wlan_mgt.link.measurement",FT_BOOLEAN, 40,TFS(&cf_rrm_link_flags),0x0001, NULL, HFILL }} and hex values for rest of the tags as 0x0002,0x0004,0x0008,0x0010,0x0020,0x0040,0x0080,0x0100,0x0200, 0x0400,0x0800 and so on. But only the first byte is getting displayed properly. The offset positions are correct but it is not getting displayed. From 2nd byte onwards it is diplaying blank dots only like this.*.... .... .... .... .... .... .... .... .... .... = Frame Measurement Capability: not implemented*How to display this 40 bit data properly? Please suggest as i am stuck with this.Thanks, Soumya** ------------------------------------------------------------------------___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe
- References:
- [Wireshark-dev] need help on RRM capability info
- From: soumya damodaran
- [Wireshark-dev] need help on RRM capability info
- Prev by Date: [Wireshark-dev] buildbot failure in Wireshark (development) on Windows-XP-x86
- Next by Date: [Wireshark-dev] Make failing on Ubuntu
- Previous by thread: [Wireshark-dev] need help on RRM capability info
- Next by thread: [Wireshark-dev] versioninfo error
- Index(es):