diff options
| author | Srinivas Girigowda <sgirigow@codeaurora.org> | 2017-10-20 16:39:01 -0700 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-10-23 22:20:14 -0700 |
| commit | 352ad1b1df628d007c32144d9960e514490c07fd (patch) | |
| tree | cc48d061538b08439503c14760422ebe2e46cf0e | |
| parent | e701a44c3042bb9892fd83ca791e43a9781c3e6f (diff) | |
qcacld-3.0: Remove unused function lim_active_scan_allowed()
Remove unused function lim_active_scan_allowed().
Change-Id: I912112a8857d7bf07d32bc1ee08f66e2df9ce684
CRs-Fixed: 2131122
| -rw-r--r-- | core/mac/src/pe/lim/lim_utils.c | 45 | ||||
| -rw-r--r-- | core/mac/src/pe/lim/lim_utils.h | 3 |
2 files changed, 0 insertions, 48 deletions
diff --git a/core/mac/src/pe/lim/lim_utils.c b/core/mac/src/pe/lim/lim_utils.c index 99c21f986550..8b88ac503b2c 100644 --- a/core/mac/src/pe/lim/lim_utils.c +++ b/core/mac/src/pe/lim/lim_utils.c @@ -2752,51 +2752,6 @@ void lim_switch_primary_secondary_channel(tpAniSirGlobal pMac, } /** - * lim_active_scan_allowed() - * - ***FUNCTION: - * Checks if active scans are permitted on the given channel - * - ***LOGIC: - * The config variable SCAN_CONTROL_LIST contains pairs of (channelNum, activeScanAllowed) - * Need to check if the channelNum matches, then depending on the corresponding - * scan flag, return true (for activeScanAllowed==1) or false (otherwise). - * - ***ASSUMPTIONS: - * - ***NOTE: - * - * @param pMac Pointer to Global MAC structure - * @param channelNum channel number - * @return None - */ - -uint8_t lim_active_scan_allowed(tpAniSirGlobal pMac, uint8_t channelNum) -{ - uint32_t i; - uint8_t channelPair[WNI_CFG_SCAN_CONTROL_LIST_LEN]; - uint32_t len = WNI_CFG_SCAN_CONTROL_LIST_LEN; - - if (wlan_cfg_get_str(pMac, WNI_CFG_SCAN_CONTROL_LIST, channelPair, &len) - != eSIR_SUCCESS) { - pe_err("Unable to get scan control list"); - return false; - } - - if (len > WNI_CFG_SCAN_CONTROL_LIST_LEN) { - pe_err("Invalid scan control list length: %d", len); - return false; - } - - for (i = 0; (i + 1) < len; i += 2) { - if (channelPair[i] == channelNum) - return ((channelPair[i + 1] == - eSIR_ACTIVE_SCAN) ? true : false); - } - return false; -} - -/** * lim_get_ht_capability() * ***FUNCTION: diff --git a/core/mac/src/pe/lim/lim_utils.h b/core/mac/src/pe/lim/lim_utils.h index 1e55ab45267a..133391743aa7 100644 --- a/core/mac/src/pe/lim/lim_utils.h +++ b/core/mac/src/pe/lim/lim_utils.h @@ -112,9 +112,6 @@ extern uint8_t lim_get_max_tx_power(int8_t regMax, int8_t apTxPower, uint8_t lim_is_addr_bc(tSirMacAddr); uint8_t lim_is_group_addr(tSirMacAddr); -/* check for type of scan allowed */ -uint8_t lim_active_scan_allowed(tpAniSirGlobal, uint8_t); - /* AID pool management functions */ void lim_init_peer_idxpool(tpAniSirGlobal, tpPESession); uint16_t lim_assign_peer_idx(tpAniSirGlobal, tpPESession); |
