wlan: Uninitialized bits in Capabilities Field of RSN IE
When the PMF (802.11w) feature is not compiled in
the driver (WLAN_FEATURE_11W is not enabled),
the MFPR and MFPC bits in the Capabilities Field
of the RSN IE will not be initialized when constructing
an RSN IE for frames like Association Request.
This is fixed so that these bits are initialized regardless
of whether WLAN_FEATURE_11W is enabled or
not.
Change-Id: I141eebcd9cd4ccebdb9509dd0aa7f487ad5cd61b
CRs-Fixed: 554610
diff --git a/CORE/SME/src/csr/csrUtil.c b/CORE/SME/src/csr/csrUtil.c
index 0f95c05..8ca6034 100644
--- a/CORE/SME/src/csr/csrUtil.c
+++ b/CORE/SME/src/csr/csrUtil.c
@@ -3694,10 +3694,8 @@
Capabilities->NoPairwise = (pRSNIe->RSN_Cap[0] >> 1) & 0x1 ; // Bit 1 No Pairwise
Capabilities->PTKSAReplayCounter = (pRSNIe->RSN_Cap[0] >> 2) & 0x3 ; // Bit 2, 3 PTKSA Replay Counter
Capabilities->GTKSAReplayCounter = (pRSNIe->RSN_Cap[0] >> 4) & 0x3 ; // Bit 4, 5 GTKSA Replay Counter
-#ifdef WLAN_FEATURE_11W
Capabilities->MFPRequired = (pRSNIe->RSN_Cap[0] >> 6) & 0x1 ; // Bit 6 MFPR
Capabilities->MFPCapable = (pRSNIe->RSN_Cap[0] >> 7) & 0x1 ; // Bit 7 MFPC
-#endif
Capabilities->Reserved = pRSNIe->RSN_Cap[1] & 0xff ; // remaining reserved
}
}