wlan: Compilation error if CONFIG_ENABLE_LINUX_REG not defined.
Compilation error if CONFIG_ENABLE_LINUX_REG not defined.
CRs-Fixed: 671868
Change-Id: I9841419c72f2081d144992f9925ed754e0509162
diff --git a/CORE/SME/src/csr/csrApiScan.c b/CORE/SME/src/csr/csrApiScan.c
index 967c688..0d4f94a 100644
--- a/CORE/SME/src/csr/csrApiScan.c
+++ b/CORE/SME/src/csr/csrApiScan.c
@@ -4059,6 +4059,7 @@
*/
tANI_BOOLEAN csrLearnCountryInformation( tpAniSirGlobal pMac, tANI_BOOLEAN fForce)
{
+ eHalStatus status;
tANI_BOOLEAN fRet = eANI_BOOLEAN_FALSE;
v_REGDOMAIN_t domainId;
@@ -4069,11 +4070,7 @@
{
// check if .11d support is enabled
if( !csrIs11dSupported( pMac ) ) break;
-#ifdef CONFIG_ENABLE_LINUX_REG
- csrGetRegulatoryDomainForCountry(pMac, pMac->scan.countryCodeElected,
- &domainId, COUNTRY_IE);
-#endif
-#ifndef CONFIG_ENABLE_LINUX_REG
+
status = csrGetRegulatoryDomainForCountry(pMac,
pMac->scan.countryCodeElected, &domainId, COUNTRY_IE);
if ( status != eHAL_STATUS_SUCCESS )
@@ -4082,6 +4079,7 @@
fRet = eANI_BOOLEAN_FALSE;
break;
}
+#ifndef CONFIG_ENABLE_LINUX_REG
// Checking for Domain Id change
if ( domainId != pMac->scan.domainIdCurrent )
{