wlan: Use privacy bit to filter Beacon/Probe Rsp in IBSS.
The IBSS with open security mode, is able to add the peer with
WPA-NONE security mode. Vice versa is also possible.
Adds a check to filter out the recieved Beacon/Probe Rsp in IBSS,
if the privacy bit in beacon/probe rsp doesnt match the privacy
bit of the IBSS.
Change-Id: I7b05d58b36d89b488bf01950c73ca21ad26a93f0
CRs-Fixed: 626001
diff --git a/CORE/MAC/src/pe/lim/limApi.c b/CORE/MAC/src/pe/lim/limApi.c
index 6f9f465..e0fd4ac 100644
--- a/CORE/MAC/src/pe/lim/limApi.c
+++ b/CORE/MAC/src/pe/lim/limApi.c
@@ -1698,6 +1698,8 @@
pHdr = WDA_GET_RX_MAC_HEADER(pRxPacketInfo);
if ( (!pBeacon->capabilityInfo.ibss) ||
+ ( psessionEntry->privacy !=
+ (tANI_U8)pBeacon->capabilityInfo.privacy ) ||
(limCmpSSid(pMac, &pBeacon->ssId,psessionEntry) != true) ||
(psessionEntry->currentOperChannel != pBeacon->channelNumber) )
/* Received SSID does not match => Ignore received Beacon frame. */