wlan: Passing correct list to cfg before changing country code.
Channel list should be passed properly before changing country
code.
CRs-Fixed: 537315
Change-Id: I461bc6ed622f21b5a863176fa3e7bb990c0394a0
diff --git a/CORE/SME/src/csr/csrApiScan.c b/CORE/SME/src/csr/csrApiScan.c
index 6735e44..53aaa71 100644
--- a/CORE/SME/src/csr/csrApiScan.c
+++ b/CORE/SME/src/csr/csrApiScan.c
@@ -3887,6 +3887,11 @@
if ( domainId != pMac->scan.domainIdCurrent )
{
tSirMacChanInfo* pMacChnSet = (tSirMacChanInfo *)(&pIesLocal->Country.triplets[0]);
+ palCopyMemory( pMac->hHdd, pMac->scan.countryCode11d, pIesLocal->Country.country,
+ sizeof( pMac->scan.countryCode11d ) );
+ csrSetCfgCountryCode(pMac, pIesLocal->Country.country);
+ WDA_SetRegDomain(pMac, domainId);
+ pMac->scan.domainIdCurrent = domainId;
// Check whether AP provided the 2.4GHZ list or 5GHZ list
if(CSR_IS_CHANNEL_24GHZ(pMacChnSet[0].firstChanNum))
{
@@ -3898,9 +3903,6 @@
// AP Provided the 5G Channels, Update the 2.4GHZ channel list from nv.bin
csrGet24GChannels(pMac );
}
- csrSetCfgCountryCode(pMac, pIesLocal->Country.country);
- WDA_SetRegDomain(pMac, domainId);
- pMac->scan.domainIdCurrent = domainId;
}
// Populate both band channel lists based on what we found in the country information...
csrSetOppositeBandChannelInfo( pMac );