qcacld-3.0: Remove obsolete csr_set_country_code()

Function csr_set_country_code() is obsolete, so remove it.

Change-Id: Ibccc6deaecb00862a2d9640de05106b81c658e69
CRs-Fixed: 2212924
このコミットが含まれているのは:
Jeff Johnson
2018-03-24 12:33:37 -07:00
committed by nshrivas
コミット 0b9639b4e7
2個のファイルの変更0行の追加40行の削除

ファイルの表示

@@ -1543,35 +1543,6 @@ void csr_clear_votes_for_country_info(tpAniSirGlobal pMac)
sizeof(struct csr_votes11d) * CSR_MAX_NUM_COUNTRY_CODE, 0);
}
/**
* csr_set_country_code() - Set country code
* @pMac: main MAC data structure
* @pCountry: ptr to Country Code
*
* This function sends the channel power info to firmware
*
* Return: none
*/
QDF_STATUS csr_set_country_code(tpAniSirGlobal pMac, uint8_t *pCountry)
{
QDF_STATUS status = QDF_STATUS_E_INVAL;
v_REGDOMAIN_t domainId;
if (pCountry) {
status = csr_get_regulatory_domain_for_country(pMac, pCountry,
&domainId,
SOURCE_USERSPACE);
if (QDF_IS_STATUS_SUCCESS(status)) {
qdf_mem_copy(pMac->scan.countryCodeCurrent,
pCountry,
WNI_CFG_COUNTRY_CODE_LEN);
csr_set_cfg_country_code(pMac, pCountry);
}
}
return status;
}
/* caller allocated memory for pNumChn and pChnPowerInfo */
/* As input, *pNumChn has the size of the array of pChnPowerInfo */
/* Upon return, *pNumChn has the number of channels assigned. */

ファイルの表示

@@ -531,17 +531,6 @@ tCsrScanResultInfo *csr_scan_result_get_next(tpAniSirGlobal pMac,
QDF_STATUS csr_get_country_code(tpAniSirGlobal pMac, uint8_t *pBuf,
uint8_t *pbLen);
/*
* csr_set_country_code() -
* This function is to set the country code so channel/power setting matches
* the countrycode and the domain it belongs to.
*
* pCountry - Caller allocated buffer with at least 3 bytes specifying the
* country code
* Return QDF_STATUS
*/
QDF_STATUS csr_set_country_code(tpAniSirGlobal pMac, uint8_t *pCountry);
/*
* csr_get_regulatory_domain_for_country() -
* This function is to get the regulatory domain for a country.