wlan: Do not form VHT connection if beacon has invalid VHT IEs
qcacld-2.0 to prima propagation
This fix ensures that the host does not send VHT IEs in Association
or Reassociation request if the AP has invalid rx/tx MCS map in the
VHT IEs of the Beacon or Probe response. The driver ignores the VHT
capability of such an AP which has invalid VHT IEs.
Change-Id: I351a8046436ed021f79fe3b770cb0c718a7d90ff
CRs-Fixed: 777083
diff --git a/CORE/MAC/inc/sirMacPropExts.h b/CORE/MAC/inc/sirMacPropExts.h
index 6c06f12..f362575 100644
--- a/CORE/MAC/inc/sirMacPropExts.h
+++ b/CORE/MAC/inc/sirMacPropExts.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012-2013 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2012-2015 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
@@ -158,6 +158,11 @@
#define IS_DOT11_MODE_11B(dot11Mode) \
((dot11Mode == WNI_CFG_DOT11_MODE_11B) ? TRUE : FALSE)
+#define IS_BSS_VHT_CAPABLE(vhtCaps) \
+ ((vhtCaps).present && \
+ ((vhtCaps).rxMCSMap != 0xFFFF) && \
+ ((vhtCaps).txMCSMap != 0xFFFF))
+
/// ANI proprietary Status Codes enum
/// (present in Management response frames)
typedef enum eSirMacPropStatusCodes