Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: [Wireshark-dev] 802.11 ERP barker preamble bit misinterpretation (patch inside)

From: Daniel Drake <dsd@xxxxxxxxxx>
Date: Thu, 20 Jul 2006 21:45:37 +0100 (BST)
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


Index: epan/dissectors/packet-ieee80211.c
===================================================================
--- epan/dissectors/packet-ieee80211.c	(revision 18775)
+++ epan/dissectors/packet-ieee80211.c	(working copy)
@@ -1834,7 +1834,7 @@
         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);