From Pontus Fuchs via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6548
authoralagoutte <alagoutte@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 8 Nov 2011 14:45:35 +0000 (14:45 +0000)
committeralagoutte <alagoutte@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 8 Nov 2011 14:45:35 +0000 (14:45 +0000)
80211 QoS Control: Add Raw TID

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39754 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-ieee80211.c

index c3f9ef476f015453bd284e02cc6b5821540df7bb..0bc017b10980b97ea4c6a3ce80781e25a8822d8b 100644 (file)
@@ -1448,6 +1448,7 @@ static int hf_ieee80211_addr = -1;  /* Source or destination address subfield */
 /* ************************************************************************* */
 /*                Header values for QoS control field                        */
 /* ************************************************************************* */
+static int hf_ieee80211_qos_tid = -1;
 static int hf_ieee80211_qos_priority = -1;
 static int hf_ieee80211_qos_ack_policy = -1;
 static int hf_ieee80211_qos_amsdu_present = -1;
@@ -10676,6 +10677,7 @@ dissect_ieee80211_common (tvbuff_t * tvb, packet_info * pinfo,
         proto_item *qos_fields;
         proto_tree *qos_tree;
 
+        guint16 qos_tid;
         guint16 qos_priority;
         guint16 qos_ack_policy;
         guint16 qos_amsdu_present;
@@ -10686,12 +10688,16 @@ dissect_ieee80211_common (tvbuff_t * tvb, packet_info * pinfo,
             "QoS Control");
         qos_tree = proto_item_add_subtree (qos_fields, ett_qos_parameters);
 
+        qos_tid = QOS_TID(qos_control);
         qos_priority = QOS_PRIORITY(qos_control);
         qos_ack_policy = QOS_ACK_POLICY(qos_control);
         qos_amsdu_present = QOS_AMSDU_PRESENT(qos_control);
         qos_eosp = QOS_EOSP(qos_control);
         qos_field_content = QOS_FIELD_CONTENT(qos_control);
 
+        proto_tree_add_uint (qos_tree, hf_ieee80211_qos_tid, tvb,
+            qosoff, 1, qos_tid);
+
         proto_tree_add_uint_format (qos_tree, hf_ieee80211_qos_priority, tvb,
             qosoff, 1, qos_priority,
             "Priority: %d (%s) (%s)",
@@ -12197,6 +12203,10 @@ proto_register_ieee80211 (void)
      {"Sequence number", "wlan.seq", FT_UINT16, BASE_DEC, NULL, 0,
       NULL, HFILL }},
 
+    {&hf_ieee80211_qos_tid,
+     {"TID", "wlan.qos.tid", FT_UINT16, BASE_DEC, NULL, 0,
+      "TID", HFILL }},
+
     {&hf_ieee80211_qos_priority,
      {"Priority", "wlan.qos.priority", FT_UINT16, BASE_DEC, NULL, 0,
       "802.1D Tag", HFILL }},