diff options
| author | Chandrasekaran, Manishekar <cmshekar@qti.qualcomm.com> | 2015-03-25 18:09:13 +0530 |
|---|---|---|
| committer | AnjaneeDevi Kapparapu <c_akappa@qti.qualcomm.com> | 2015-03-30 15:41:38 +0530 |
| commit | beaaa7deca3622cb37c333fd80698d6423bdd7e2 (patch) | |
| tree | 614fa25914a242bb69755d7f2233bbe17cc47883 | |
| parent | 2f18585467db977f615e7c2e13a44d71d3310622 (diff) | |
qcacld: Initialize default country code for P2P GO mode
Currently, the country code is not initialized for P2P
GO mode. So, the default country code string is all
zeros. In cases where we try to get the regulatory
domain from the country code, we fall back to world
regulatory, since the default country code of all zeros
does not map to any regulatory domain. This is casuing
issues in selecting the CAC time for DFS cases which is
dependent on the regulatory domain.
Change-Id: I20815f3ed0cd3e31ad0baf3881825dd5878a3f74
CRs-Fixed: 813096
| -rw-r--r-- | CORE/HDD/src/wlan_hdd_cfg80211.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c index 0f62ccb89be1..d451980da0cd 100644 --- a/CORE/HDD/src/wlan_hdd_cfg80211.c +++ b/CORE/HDD/src/wlan_hdd_cfg80211.c @@ -8406,6 +8406,12 @@ static int wlan_hdd_cfg80211_start_bss(hdd_adapter_t *pHostapdAdapter, wlan_sap_set_channel_avoidance(hHal, iniConfig->sap_channel_avoidance); #endif /* FEATURE_AP_MCC_CH_AVOIDANCE */ } + else if (pHostapdAdapter->device_mode == WLAN_HDD_P2P_GO) + { + pConfig->countryCode[0] = pHddCtx->reg.alpha2[0]; + pConfig->countryCode[1] = pHddCtx->reg.alpha2[1]; + pConfig->ieee80211d = 0; + } else { pConfig->ieee80211d = 0; |
