802.11: Add always Data of Subelement (on Neighbor Report)
authorAlexis La Goutte <alexis.lagoutte@gmail.com>
Sun, 20 Aug 2017 16:41:35 +0000 (18:41 +0200)
committerAnders Broman <a.broman58@gmail.com>
Sun, 20 Aug 2017 21:50:59 +0000 (21:50 +0000)
Fix also typo on Neighbor Report Subelement length filter display name

Ping-Bug: 13985
Change-Id: I924cadddb0d5f060d8af08cf0f27cab40f3bd6bd
Reviewed-on: https://code.wireshark.org/review/23146
Reviewed-by: Anders Broman <a.broman58@gmail.com>
epan/dissectors/packet-ieee80211.c

index 3d9ff03bf24629a7fa5c2362f21249d0bfac096f..e7fd7916fd25d4d4e81ee973a018cb757003eec1 100644 (file)
@@ -4036,6 +4036,7 @@ static int hf_ieee80211_tag_neighbor_report_channel_number = -1;
 static int hf_ieee80211_tag_neighbor_report_phy_type = -1;
 static int hf_ieee80211_tag_neighbor_report_subelement_id = -1;
 static int hf_ieee80211_tag_neighbor_report_subelement_length = -1;
+static int hf_ieee80211_tag_neighbor_report_subelement_data = -1;
 
 static int hf_ieee80211_tag_supported_ope_classes_current = -1;
 static int hf_ieee80211_tag_supported_ope_classes_alternate = -1;
@@ -14089,6 +14090,8 @@ dissect_neighbor_report(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, voi
     offset += 1;
     sub_tag_tvb = tvb_new_subset_length(tvb, offset, sub_tag_length);
 
+    proto_tree_add_item(tree, hf_ieee80211_tag_neighbor_report_subelement_data, tvb, offset, sub_tag_length, ENC_NA);
+
     switch (sub_tag_id) {
       case NR_SUB_ID_TSF_INFO:
         /* TODO */
@@ -26143,10 +26146,15 @@ proto_register_ieee80211(void)
       NULL, HFILL }},
 
     {&hf_ieee80211_tag_neighbor_report_subelement_length,
-     {"Length", "wlan.nreport.phytype.subelement_length",
+     {"Length", "wlan.nreport.subelement_length",
       FT_UINT8, BASE_HEX, NULL, 0,
       NULL, HFILL }},
 
+    {&hf_ieee80211_tag_neighbor_report_subelement_data,
+     {"Subelement Data", "wlan.nreport.subelement_data",
+      FT_BYTES, BASE_NONE, NULL, 0,
+      NULL, HFILL }},
+
     {&hf_ieee80211_tag_supported_ope_classes_current,
      {"Current Operating Class", "wlan.supopeclass.current",
       FT_UINT8, BASE_DEC, NULL, 0,