Ethereal-dev: [Ethereal-dev] [PATCH] minor fix for the 802.11 dissector

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

Date: Thu, 8 Jul 2004 13:32:00 -0400
The attached patch fixes the decoding of the Association ID in 
management frames as per section 7.3.1.8 in the IEEE802.11-1999 spec.

 - Solomon
-- 
Solomon Peachy                        [email protected]
AbsoluteValue Systems                 http://www.linux-wlan.com
721-D North Drive                     +1 (321) 259-0737  (office)
Melbourne, FL 32934                   +1 (321) 259-0286  (fax)
Index: packet-ieee80211.c
===================================================================
RCS file: /cvsroot/ethereal/packet-ieee80211.c,v
retrieving revision 1.115
diff -u -r1.115 packet-ieee80211.c
--- packet-ieee80211.c	7 Jul 2004 04:48:38 -0000	1.115
+++ packet-ieee80211.c	8 Jul 2004 17:27:59 -0000
@@ -767,7 +767,9 @@
       break;
 
     case FIELD_ASSOC_ID:
-      proto_tree_add_item (tree, ff_assoc_id, tvb, offset, 2, TRUE);
+      proto_tree_add_uint(tree, ff_assoc_id, tvb, offset, 2, 
+			  COOK_ASSOC_ID(tvb_get_letohs(tvb,offset)));
+      // proto_tree_add_item (tree, ff_assoc_id, tvb, offset, 2, TRUE);
       break;
 
     case FIELD_STATUS_CODE:

Attachment: pgpyl5lGJ1blr.pgp
Description: PGP signature