Browse Source

qcacld-3.0: Read mcc to scc for p2p-GO

Read mcc to scc INI to enforce SCC when starting GO in multi
concurrency scenario such as STA+GO.

Change-Id: Iba276cc0afd97119651a12bbefefaccadfc6c500
CRs-Fixed: 2456452
Rachit Kankane 5 years ago
parent
commit
e75b83e34c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      core/hdd/src/wlan_hdd_hostapd.c

+ 2 - 2
core/hdd/src/wlan_hdd_hostapd.c

@@ -5083,6 +5083,8 @@ int wlan_hdd_cfg80211_start_bss(struct hdd_adapter *adapter,
 	hdd_debug("****config->dtim_period=%d***",
 		config->dtim_period);
 
+	ucfg_policy_mgr_get_mcc_scc_switch(hdd_ctx->psoc, &mcc_to_scc_switch);
+
 	if (adapter->device_mode == QDF_SAP_MODE) {
 		ie = wlan_get_ie_ptr_from_eid(WLAN_EID_COUNTRY,
 					      beacon->tail, beacon->tail_len);
@@ -5149,8 +5151,6 @@ int wlan_hdd_cfg80211_start_bss(struct hdd_adapter *adapter,
 		if (!QDF_IS_STATUS_SUCCESS(status))
 			hdd_err("can't get sta-sap scc on dfs chnl, use def");
 
-		ucfg_policy_mgr_get_mcc_scc_switch(hdd_ctx->psoc,
-						   &mcc_to_scc_switch);
 		if (ignore_cac ||
 		    ((mcc_to_scc_switch != QDF_MCC_TO_SCC_SWITCH_DISABLE) &&
 		     scc_on_dfs_chan))