802.11 dissector bug in ERP parsing
Daniel Drake <[email protected]> Tue, 27 Jun 2006 13:45:11 +0100
| Newsgroups | gmane.network.ethereal.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, The barker preamble bit is set when a station associates which does not support short preambles. When it is 0, short preambles are allowed. Please apply this patch. Daniel _______________________________________________ Ethereal-dev mailing list [email protected] http://www.ethereal.com/mailman/listinfo/ethereal-dev
erp-preambles.patch
(text/x-patch, 772 B)
Index: ethereal-0.99.0/epan/dissectors/packet-ieee80211.c
===================================================================
--- ethereal-0.99.0.orig/epan/dissectors/packet-ieee80211.c
+++ ethereal-0.99.0/epan/dissectors/packet-ieee80211.c
@@ -1834,7 +1834,7 @@ add_tagged_field (packet_info * pinfo, p
g_snprintf (print_buff, SHORT_STR, "%sNon-ERP STAs, %suse protection, %s preambles",
erp_info & 0x01 ? "" : "no ",
erp_info & 0x02 ? "" : "do not ",
- erp_info & 0x04 ? "short or long": "long");
+ erp_info & 0x04 ? "long": "short or long");
print_buff[SHORT_STR-1] = '\0';
g_snprintf (out_buff, SHORT_STR,
"ERP info: 0x%x (%s)",erp_info,print_buff);