mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
qcacld-3.0: Allow SAP to be on DFS channel with dfs_scc 2
Allow SAP to be on DFS channel if g_sta_sap_scc_on_dfs_chan is set to 2. Change-Id: Ifd8ae1d487c8538b2870c69ba420242719756859 CRs-Fixed: 2604548
This commit is contained in:
parent
5fdbbe2c4a
commit
fbe8533613
1 changed files with 6 additions and 1 deletions
|
|
@ -1330,6 +1330,7 @@ bool policy_mgr_is_sap_restart_required_after_sta_disconnect(
|
|||
policy_mgr_is_sta_sap_scc_allowed_on_dfs_chan(psoc);
|
||||
bool sta_sap_scc_on_lte_coex_chan =
|
||||
policy_mgr_sta_sap_scc_on_lte_coex_chan(psoc);
|
||||
uint8_t sta_sap_scc_on_dfs_chnl_config_value = 0;
|
||||
uint32_t cc_count, i, go_index_start, pcl_len = 0;
|
||||
uint32_t op_ch_freq_list[MAX_NUMBER_OF_CONC_CONNECTIONS];
|
||||
uint8_t vdev_id[MAX_NUMBER_OF_CONC_CONNECTIONS];
|
||||
|
|
@ -1351,6 +1352,8 @@ bool policy_mgr_is_sap_restart_required_after_sta_disconnect(
|
|||
if (!sta_sap_scc_on_dfs_chan && !sta_sap_scc_on_lte_coex_chan)
|
||||
return false;
|
||||
|
||||
policy_mgr_get_sta_sap_scc_on_dfs_chnl(psoc, &sta_sap_scc_on_dfs_chnl_config_value);
|
||||
|
||||
if (!policy_mgr_is_hw_dbs_capable(psoc))
|
||||
if (policy_mgr_get_connection_count(psoc) > 1)
|
||||
return false;
|
||||
|
|
@ -1375,12 +1378,14 @@ bool policy_mgr_is_sap_restart_required_after_sta_disconnect(
|
|||
POLICY_MGR_BAND_24 : POLICY_MGR_BAND_5))
|
||||
continue;
|
||||
if (sta_sap_scc_on_dfs_chan &&
|
||||
(sta_sap_scc_on_dfs_chnl_config_value != 2) &&
|
||||
wlan_reg_is_dfs_for_freq(pm_ctx->pdev,
|
||||
op_ch_freq_list[i])) {
|
||||
sap_vdev_id = vdev_id[i];
|
||||
curr_sap_freq = op_ch_freq_list[i];
|
||||
policy_mgr_debug("sta_sap_scc_on_dfs_chan %u, dfs sap_ch_freq %u",
|
||||
policy_mgr_debug("sta_sap_scc_on_dfs_chan %u, sta_sap_scc_on_dfs_chnl_config_value %u, dfs sap_ch_freq %u",
|
||||
sta_sap_scc_on_dfs_chan,
|
||||
sta_sap_scc_on_dfs_chnl_config_value,
|
||||
curr_sap_freq);
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue