diff --git a/core/sme/src/csr/csr_api_scan.c b/core/sme/src/csr/csr_api_scan.c index daef229099..f43f824cb4 100644 --- a/core/sme/src/csr/csr_api_scan.c +++ b/core/sme/src/csr/csr_api_scan.c @@ -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. */ diff --git a/core/sme/src/csr/csr_inside_api.h b/core/sme/src/csr/csr_inside_api.h index 6aec13347e..2c1d591ca2 100644 --- a/core/sme/src/csr/csr_inside_api.h +++ b/core/sme/src/csr/csr_inside_api.h @@ -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.