[PATCH 1/4] wpa_supplicant: Define 20/40 BSS Coexistence IEs

Rajkumar Manoharan rmanohar
Thu Jul 21 06:24:36 PDT 2011


This patch defines 20/40 BSS Intolerant Channel Report IE
(IEEE 802.11 7.3.2.58) and 20/40 BSS Coexistence element
(IEEE 802.11 7.3.2.60).

Signed-off-by: Rajkumar Manoharan <rmanohar at qca.qualcomm.com>
---
 src/common/ieee802_11_defs.h |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/src/common/ieee802_11_defs.h b/src/common/ieee802_11_defs.h
index 1c3d3cf..6fdf80b 100644
--- a/src/common/ieee802_11_defs.h
+++ b/src/common/ieee802_11_defs.h
@@ -244,6 +244,7 @@
 #define WLAN_ACTION_VENDOR_SPECIFIC 127
 
 /* Public action codes */
+#define WLAN_PA_20_40_BSS_COEX 0
 #define WLAN_PA_VENDOR_SPECIFIC 9
 #define WLAN_PA_GAS_INITIAL_REQ 10
 #define WLAN_PA_GAS_INITIAL_RESP 11
@@ -799,4 +800,24 @@ enum p2p_sd_status {
 #define WLAN_AKM_SUITE_8021X		0x000FAC01
 #define WLAN_AKM_SUITE_PSK		0x000FAC02
 
+/* IEEE 802.11, 7.3.2.60 20/40 BSS Coexistence parameters */
+#define WLAN_20_40_BSS_COEX_INFO_REQ		BIT(0)
+#define WLAN_20_40_BSS_COEX_40MHZ_INTOL		BIT(1)
+#define WLAN_20_40_BSS_COEX_20MHZ_WIDTH_REQ	BIT(2)
+#define WLAN_20_40_BSS_COEX_OBSS_EXEMPT_REQ	BIT(3)
+#define WLAN_20_40_BSS_COEX_OBSS_EXEMPT_GRNT	BIT(4)
+
+struct ieee80211_2040_bss_coex_ie {
+	u8 element_id;
+	u8 length;
+	u8 coex_param;
+} STRUCT_PACKED;
+
+struct ieee80211_2040_intol_chan_report {
+	u8 element_id;
+	u8 length;
+	u8 op_class;
+	u8 variable[0];	/* Channel List */
+} STRUCT_PACKED;
+
 #endif /* IEEE802_11_DEFS_H */
-- 
1.7.4.1





More information about the Hostap mailing list