Enhanced regulatory domain support
Following are the high-level changes in this feature:
1) Reduce the number of regulatory domains that are available from 9 to 4.
That is, only 4 out of the 9 regulatory domains in the NV.bin file would
be used and supported.
2) Add compulsory linux regulatory support to the wlan driver. The
support is added under the flag CONFIG_ENABLE_LINUX_REG.
3) Remove the WCNSS_qcom_cfg.ini item gCRDADefaultCountryCode
Change-Id: I5eef8ca53aafad69044d5468b50a3d266ee8ac1c
CRs-fixed: 538940
diff --git a/CORE/HDD/src/wlan_hdd_main.c b/CORE/HDD/src/wlan_hdd_main.c
index bcb02c0..6770234 100644
--- a/CORE/HDD/src/wlan_hdd_main.c
+++ b/CORE/HDD/src/wlan_hdd_main.c
@@ -604,7 +604,6 @@
if ((SIOCDEVPRIVATE + 1) == cmd)
{
hdd_context_t *pHddCtx = (hdd_context_t*)pAdapter->pHddCtx;
- struct wiphy *wiphy = pHddCtx->wiphy;
VOS_TRACE( VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO,
"%s: Received %s cmd from Wi-Fi GUI***", __func__, command);
@@ -649,14 +648,6 @@
"%s: SME Change Country code fail ret=%d\n",__func__, ret);
}
- /* If you get a 00 country code it means you are world roaming.
- In case of world roaming, country code should be updated by
- DRIVER COUNTRY */
- if (memcmp(pHddCtx->cfg_ini->crdaDefaultCountryCode,
- CFG_CRDA_DEFAULT_COUNTRY_CODE_DEFAULT , 2) == 0)
- {
- regulatory_hint(wiphy, "00");
- }
}
/*
command should be a string having format
@@ -5444,7 +5435,7 @@
init_completion(&pHddCtx->req_bmps_comp_var);
init_completion(&pHddCtx->scan_info.scan_req_completion_event);
init_completion(&pHddCtx->scan_info.abortscan_event_var);
- init_completion(&pHddCtx->driver_crda_req);
+ init_completion(&pHddCtx->linux_reg_req);
spin_lock_init(&pHddCtx->schedScan_lock);