diff --git a/core/sme/inc/csr_internal.h b/core/sme/inc/csr_internal.h index 06c43798e5dd..c52f0a312eaa 100644 --- a/core/sme/inc/csr_internal.h +++ b/core/sme/inc/csr_internal.h @@ -668,7 +668,6 @@ struct csr_scanstruct { * will use the most popular one (max count) */ uint8_t countryCodeElected[WNI_CFG_COUNTRY_CODE_LEN]; - uint16_t nBssLimit; /* the maximum number of BSS in scan cache */ /* * channelPowerInfoList24 has been seen corrupted. Set this flag to true * trying to detect when it happens. Adding this into code because we diff --git a/core/sme/src/csr/csr_api_scan.c b/core/sme/src/csr/csr_api_scan.c index bc4ed8f408fb..ac75b2e928ec 100644 --- a/core/sme/src/csr/csr_api_scan.c +++ b/core/sme/src/csr/csr_api_scan.c @@ -82,8 +82,6 @@ #define PCL_ADVANTAGE 30 #define PCL_RSSI_THRESHOLD -75 -#define CSR_SCAN_IS_OVER_BSS_LIMIT(pMac) \ - ((pMac)->scan.nBssLimit <= (csr_ll_count(&(pMac)->scan.scanResultList))) static void csr_set_cfg_valid_channel_list(tpAniSirGlobal pMac, uint8_t *pChannelList, uint8_t NumChannels);