Revert "wifi: Scan list not updated with correct APs on band change."
This reverts commit a6a4e63f230ea10896603e9cf7adcc064f38fbaf.
In the current implementation, DUT doesn't initialize the social
channels 1, 6 and 11 and doesn't support P2P discovery in 5GHz only
mode. So we don't see any AP's on 1, 6 and 11 channels during p2p
scan and also the commit "a6a4e63f230ea10896603e9cf7adcc064f38fbaf"
is not required.
Change-Id: I317119bbbc30d44214c11076faceba8101cf835a
CRs-Fixed: 962252
diff --git a/CORE/MAC/src/pe/lim/limScanResultUtils.c b/CORE/MAC/src/pe/lim/limScanResultUtils.c
index afcbc31..0ad2560 100644
--- a/CORE/MAC/src/pe/lim/limScanResultUtils.c
+++ b/CORE/MAC/src/pe/lim/limScanResultUtils.c
@@ -125,14 +125,14 @@
* @return None
*/
#if defined WLAN_FEATURE_VOWIFI
-eHalStatus
+void
limCollectBssDescription(tpAniSirGlobal pMac,
tSirBssDescription *pBssDescr,
tpSirProbeRespBeacon pBPR,
tANI_U8 *pRxPacketInfo,
tANI_U8 fScanning)
#else
-eHalStatus
+void
limCollectBssDescription(tpAniSirGlobal pMac,
tSirBssDescription *pBssDescr,
tpSirProbeRespBeacon pBPR,
@@ -153,17 +153,6 @@
pBody = WDA_GET_RX_MPDU_DATA(pRxPacketInfo);
rfBand = WDA_GET_RX_RFBAND(pRxPacketInfo);
- /**
- * Drop all the beacons and probe response without P2P IE during P2P search
- */
- if (NULL != pMac->lim.gpLimMlmScanReq && pMac->lim.gpLimMlmScanReq->p2pSearch)
- {
- if (NULL == limGetP2pIEPtr(pMac, (pBody + SIR_MAC_B_PR_SSID_OFFSET), ieLen))
- {
- limLog( pMac, LOG3, MAC_ADDRESS_STR, MAC_ADDR_ARRAY(pHdr->bssId));
- return eHAL_STATUS_FAILURE;
- }
- }
/**
* Length of BSS desription is without length of
@@ -292,7 +281,7 @@
pBssDescr->aniIndicator,
ieLen );
- return eHAL_STATUS_SUCCESS;
+ return;
} /*** end limCollectBssDescription() ***/
/**
@@ -522,19 +511,11 @@
// In scan state, store scan result.
#if defined WLAN_FEATURE_VOWIFI
- status = limCollectBssDescription(pMac, &pBssDescr->bssDescription,
+ limCollectBssDescription(pMac, &pBssDescr->bssDescription,
pBPR, pRxPacketInfo, fScanning);
- if (eHAL_STATUS_SUCCESS != status)
- {
- goto last;
- }
#else
- status = limCollectBssDescription(pMac, &pBssDescr->bssDescription,
+ limCollectBssDescription(pMac, &pBssDescr->bssDescription,
pBPR, pRxPacketInfo);
- if (eHAL_STATUS_SUCCESS != status)
- {
- goto last;
- }
#endif
pBssDescr->bssDescription.fProbeRsp = fProbeRsp;
@@ -609,12 +590,10 @@
}
}//(eANI_BOOLEAN_TRUE == fScanning)
-last:
if( eHAL_STATUS_SUCCESS != status )
{
vos_mem_free( pBssDescr );
}
- return;
} /****** end limCheckAndAddBssDescription() ******/