wlan: Filter out all zero bssid from Scan results.
Some malfunctional APs will send zero bssid in probe response
which causes connection failure.
Filter out these wrong bssids in driver.
CRs-Fixed: 690979
Change-Id: I526db27dd84fcf96d81273df6f3a400b90e05df7
diff --git a/CORE/MAC/src/pe/lim/limScanResultUtils.c b/CORE/MAC/src/pe/lim/limScanResultUtils.c
index d984ebf..c735bc8 100644
--- a/CORE/MAC/src/pe/lim/limScanResultUtils.c
+++ b/CORE/MAC/src/pe/lim/limScanResultUtils.c
@@ -374,11 +374,18 @@
tANI_U8 rxChannelInBD = 0;
tSirMacAddr bssid = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
+ tSirMacAddr bssid_zero = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0};
tANI_BOOLEAN fFound = FALSE;
tpSirMacDataHdr3a pHdr;
pHdr = WDA_GET_RX_MPDUHEADER3A((tANI_U8 *)pRxPacketInfo);
+ // Check For Null BSSID; Skip in case of P2P.
+ if (vos_mem_compare(bssid_zero, &pHdr->addr3, 6))
+ {
+ return ;
+ }
+
//Checking if scanning for a particular BSSID
if ((fScanning) && (pMac->lim.gpLimMlmScanReq))
{