From beaaa7deca3622cb37c333fd80698d6423bdd7e2 Mon Sep 17 00:00:00 2001 From: "Chandrasekaran, Manishekar" Date: Wed, 25 Mar 2015 18:09:13 +0530 Subject: 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 --- CORE/HDD/src/wlan_hdd_cfg80211.c | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- cgit v1.2.3