From f30cb6eb42b9532828ff32b27dfe4db8f489d7a4 Mon Sep 17 00:00:00 2001 From: Shi Hong Date: Mon, 30 Jan 2023 14:17:41 +0800 Subject: [PATCH] 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 --- .../cmn_services/policy_mgr/src/wlan_policy_mgr_action.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/cmn_services/policy_mgr/src/wlan_policy_mgr_action.c b/components/cmn_services/policy_mgr/src/wlan_policy_mgr_action.c index 689645640a..f22aac1022 100644 --- a/components/cmn_services/policy_mgr/src/wlan_policy_mgr_action.c +++ b/components/cmn_services/policy_mgr/src/wlan_policy_mgr_action.c @@ -1725,7 +1725,9 @@ bool policy_mgr_is_sap_restart_required_after_sta_disconnect( * 2. The frequency is not allowed in the indoor * 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]) && pm_ctx->last_disconn_sta_freq == op_ch_freq_list[i]) { curr_sap_freq = op_ch_freq_list[i];