瀏覽代碼

qcacld-3.0: Remove sme_set_freq_band()

Function sme_set_freq_band() is not used. Since it is apparently
obsolete, remove it.

Change-Id: I41eeda85754a4d2cb1971dd53eb07a86e5ff4b87
CRs-Fixed: 2339196
Jeff Johnson 6 年之前
父節點
當前提交
6885e9c64a
共有 2 個文件被更改,包括 0 次插入25 次删除
  1. 0 2
      core/sme/inc/sme_api.h
  2. 0 23
      core/sme/src/common/sme_api.c

+ 0 - 2
core/sme/inc/sme_api.h

@@ -661,8 +661,6 @@ QDF_STATUS sme_8023_multicast_list(tHalHandle hHal, uint8_t sessionId,
 		tpSirRcvFltMcAddrList pMulticastAddrs);
 #endif /* WLAN_FEATURE_PACKET_FILTERING */
 bool sme_is_channel_valid(tHalHandle hHal, uint8_t channel);
-QDF_STATUS sme_set_freq_band(tHalHandle hHal, uint8_t sessionId,
-		enum band_info eBand);
 QDF_STATUS sme_get_freq_band(tHalHandle hHal, enum band_info *pBand);
 uint16_t sme_chn_to_freq(uint8_t chanNum);
 bool sme_is_channel_valid(tHalHandle hHal, uint8_t channel);

+ 0 - 23
core/sme/src/common/sme_api.c

@@ -5801,29 +5801,6 @@ bool sme_is_channel_valid(tHalHandle hHal, uint8_t channel)
 	return valid;
 }
 
-/*
- * sme_set_freq_band() -
- *  Used to set frequency band.
- *
- * hHal
- * sessionId - Session Identifier
- * band value to be configured
- * Return QDF_STATUS
- */
-QDF_STATUS sme_set_freq_band(tHalHandle hHal, uint8_t sessionId,
-			     enum band_info eBand)
-{
-	QDF_STATUS status = QDF_STATUS_E_FAILURE;
-	tpAniSirGlobal pMac = PMAC_STRUCT(hHal);
-
-	status = sme_acquire_global_lock(&pMac->sme);
-	if (QDF_IS_STATUS_SUCCESS(status)) {
-		status = csr_set_band(hHal, sessionId, eBand);
-		sme_release_global_lock(&pMac->sme);
-	}
-	return status;
-}
-
 /*
  * sme_get_freq_band() -
  * Used to get the current band settings.