qcacld-3.0: check indoor channel support before restarting SAP
Current code will force SAP restart on other channel when SAP/STA scc on indoor channel and STA get disconnected. If indoor channel support is enabled, SAP shall be able to start on indoor channel alone. So add indoor channel support check before making SAP restart decision. Change-Id: I3666f11cda75984636bdda9160bb8232d64615d6 CRs-Fixed: 3379903
This commit is contained in:

committed by
Madan Koyyalamudi

parent
706a302396
commit
f30cb6eb42
@@ -1725,7 +1725,9 @@ bool policy_mgr_is_sap_restart_required_after_sta_disconnect(
|
|||||||
* 2. The frequency is not allowed in the indoor
|
* 2. The frequency is not allowed in the indoor
|
||||||
* channel.
|
* channel.
|
||||||
*/
|
*/
|
||||||
if (sta_sap_scc_on_indoor_channel &&
|
if (!policy_mgr_sap_allowed_on_indoor_freq(
|
||||||
|
pm_ctx->psoc, pm_ctx->pdev, op_ch_freq_list[i]) &&
|
||||||
|
sta_sap_scc_on_indoor_channel &&
|
||||||
wlan_reg_is_freq_indoor(pm_ctx->pdev, op_ch_freq_list[i]) &&
|
wlan_reg_is_freq_indoor(pm_ctx->pdev, op_ch_freq_list[i]) &&
|
||||||
pm_ctx->last_disconn_sta_freq == op_ch_freq_list[i]) {
|
pm_ctx->last_disconn_sta_freq == op_ch_freq_list[i]) {
|
||||||
curr_sap_freq = op_ch_freq_list[i];
|
curr_sap_freq = op_ch_freq_list[i];
|
||||||
|
Reference in New Issue
Block a user