qcacld-3.0: Update current 11d country code appropriately

Presently, current 11d country-code is updated during voting
mechanism with elected country code, leading Host to fail to
call regulatory hint, because Host invokes regulatory hint only
if elected country-code and current 11d country-code are different,
which will be updated while processing regulatory notifier.

Don't update current 11d country code before invoking regulatory
hint.

Change-Id: Ib66259ae9b743e1d202041ecfb4e91525eeb7052
CRs-Fixed: 1085025
This commit is contained in:
Hanumanth Reddy Pothula 2016-11-02 19:54:06 +05:30 • committed by Prakash Dhavali
commit dba58f5d45

View file

@ -3434,9 +3434,6 @@ bool csr_elected_country_info(tpAniSirGlobal pMac)
qdf_mem_copy(pMac->scan.countryCodeElected,
pMac->scan.votes11d[j].countryCode,
WNI_CFG_COUNTRY_CODE_LEN);
qdf_mem_copy(pMac->scan.countryCode11d,
pMac->scan.votes11d[j].countryCode,
WNI_CFG_COUNTRY_CODE_LEN);
QDF_TRACE(QDF_MODULE_ID_SME, QDF_TRACE_LEVEL_INFO,
"Selected Country is %c%c With count %d\n",
pMac->scan.votes11d[j].countryCode[0],