Forráskód Böngészése

qcacld-3.0: Remove unused function lim_active_scan_allowed()

Remove unused function lim_active_scan_allowed().

Change-Id: I912112a8857d7bf07d32bc1ee08f66e2df9ce684
CRs-Fixed: 2131122
Srinivas Girigowda 7 éve
szülő
commit
09ae07d4b3
2 módosított fájl, 0 hozzáadás és 48 törlés
  1. 0 45
      core/mac/src/pe/lim/lim_utils.c
  2. 0 3
      core/mac/src/pe/lim/lim_utils.h

+ 0 - 45
core/mac/src/pe/lim/lim_utils.c

@@ -2702,51 +2702,6 @@ void lim_switch_primary_secondary_channel(tpAniSirGlobal pMac,
 	return;
 }
 
-/**
- * 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()
  *

+ 0 - 3
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);