From 682a7a55587ff6dff8462fec3946b4d275dd99b6 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Sat, 24 Mar 2018 16:03:58 -0700 Subject: [PATCH] qcacld-3.0: Remove nBssLimit from struct csr_scanstruct Remove unused field nBssLimit from struct csr_scanstruct. Change-Id: I0f1f4b4608acd6332a9b3a2c48fc4bf430d187bd CRs-Fixed: 2213060 --- core/sme/inc/csr_internal.h | 1 - core/sme/src/csr/csr_api_scan.c | 2 -- 2 files changed, 3 deletions(-) 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);