ieee802.11 AID calculation patch
Christoph Werle <[email protected]>
| Newsgroups | gmane.network.ethereal.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello, while sniffing some wireless traffic, I noticed that the Association IDs are not calculated correctly. Quoting from ieee 802.11: "... the Bitmap Offset subfield value contains the number floor( N1 / 2 ) ..." You will find a patch attached. If you respond to this mail, please cc me as I am not on this list. Regards Christoph _______________________________________________ Ethereal-dev mailing list [email protected] http://www.ethereal.com/mailman/listinfo/ethereal-dev
packet-ieee80211_AID_FIX.patch
(application/octet-stream, 485 B)
--- packet-ieee80211_old.c 2006-05-24 15:12:43.000000000 +0200
+++ packet-ieee80211.c 2006-05-24 15:15:23.000000000 +0200
@@ -1694,7 +1694,7 @@
int i=0;
for (i=0;i<bmaplen*8;i++) {
if (bmap[i/8] & (1<<(i%8))) {
- int aid=i+bmapoff*8;
+ int aid=i+2*bmapoff*8;
len+=g_snprintf (out_buff+len, SHORT_STR-len," %u", aid);
proto_item_append_text(ti, " %u", aid);
if (len>=SHORT_STR) {