wlan: fix driver load failure with legacy regulatory code
When driver is compiled without CONFIG_ENABLE_LINUX_REG flag
the function vos_getCurrentCountryCode() is declared and used
but never defined which results in failure to load the driver.
Make sure that the function is not used when using legacy
regulatory code.
Change-Id: I9b1d3b6eb31bf1ecf601f14cf2c75156e581bd35
CRs-Fixed: 759463
diff --git a/CORE/SME/inc/csrInternal.h b/CORE/SME/inc/csrInternal.h
index c2064d5..d6be316 100644
--- a/CORE/SME/inc/csrInternal.h
+++ b/CORE/SME/inc/csrInternal.h
@@ -1334,12 +1334,14 @@
-------------------------------------------------------------------------------*/
eHalStatus csrInitChannels(tpAniSirGlobal pMac);
+#ifdef CONFIG_ENABLE_LINUX_REG
/* ---------------------------------------------------------------------------
\fn csrInitChannelsForCC
\brief This function must be called to issue reg hint
\return eHalStatus
-------------------------------------------------------------------------------*/
eHalStatus csrInitChannelsForCC(tpAniSirGlobal pMac, driver_load_type init );
+#endif
/* ---------------------------------------------------------------------------
\fn csrClose