wlan: Fix for AP sending wrong regulatory domain
When AP is sending wrong regulatory domain then STA should connect
to an AP with default regulatory domain.
Change-Id: Iafe7a1b340c801bad6251761e83997cab9dd0a5c
CR-Fixed: 362084
diff --git a/CORE/SME/src/csr/csrUtil.c b/CORE/SME/src/csr/csrUtil.c
index 7f7c8e8..f79645b 100644
--- a/CORE/SME/src/csr/csrUtil.c
+++ b/CORE/SME/src/csr/csrUtil.c
@@ -6114,8 +6114,12 @@
status = csrGetRegulatoryDomainForCountry( pMac, pIes->Country.country, &domainId );
if( !HAL_STATUS_SUCCESS( status ) )
{
- fRet = eANI_BOOLEAN_FALSE;
- break;
+ status = csrGetRegulatoryDomainForCountry( pMac, pMac->scan.countryCode11d,(v_REGDOMAIN_t *) &domainId );
+ if( !HAL_STATUS_SUCCESS( status ) )
+ {
+ fRet = eANI_BOOLEAN_FALSE;
+ break;
+ }
}
}
//check whether it is needed to enforce to the default regulatory domain first