From e2ec0a713e48e8b049e061685ecdb2704262ba19 Mon Sep 17 00:00:00 2001 From: Shudan Liu Date: Mon, 16 Oct 2023 16:41:19 +0800 Subject: [PATCH] qcacld-3.0: Modify condition to cover 5G+160MHz Add a condition to avoid closing SAP automatically when set 5g_160Mhz mode Change-Id: I712a588558874c2c86144e7e729a242007eccf77 --- core/sap/src/sap_fsm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/sap/src/sap_fsm.c b/core/sap/src/sap_fsm.c index 81ab4af7735a..db80ce6aa8a4 100644 --- a/core/sap/src/sap_fsm.c +++ b/core/sap/src/sap_fsm.c @@ -2019,8 +2019,8 @@ static QDF_STATUS sap_cac_start_notify(mac_handle_t mac_handle) /* Don't start CAC for non-dfs channel, its violation */ profile = &sap_context->csr_roamProfile; ch_freq = profile->op_freq; - if (!wlan_reg_is_dfs_for_freq(mac->pdev, - ch_freq)) + if (!wlan_reg_is_dfs_for_freq(mac->pdev, ch_freq) && + wlan_reg_get_5g_bonded_channel_state_for_freq(mac->pdev, ch_freq, profile->ch_params.ch_width) != CHANNEL_STATE_DFS) continue; sap_debug("sapdfs: Signaling eSAP_DFS_CAC_START to HDD for sapctx[%pK]", sap_context);