From 8461a8d5cdb12a70d1752a3b8cbb58ac2c64e9fa Mon Sep 17 00:00:00 2001 From: Vijay Krishnan Date: Thu, 13 Aug 2020 14:18:37 +0530 Subject: [PATCH] qcacmn: Do not skip CAC if Spoof test is not complete In Dependent Repeater, if the Repeater STA is connected to a Root-AP in a DFS channel, then the Repeater AP which is configured in ETSI domain comes up in the DFS channel doing CAC. In FCC domain, whenever Spoof radar pulse comes, we check if the Spoof check is done and skip the CAC accordingly. In case of other domains, Spoof events are not present. Therefore, Spoof test can be always considered complete for non-FCC domains. Also the test can always be considered complete if the target/FW does not support spoof test. CRs-Fixed: 2756845 Change-Id: Icac4dee5f3f69a2578a0a34d7aea9456aab63ece --- umac/dfs/dispatcher/src/wlan_dfs_utils_api.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/umac/dfs/dispatcher/src/wlan_dfs_utils_api.c b/umac/dfs/dispatcher/src/wlan_dfs_utils_api.c index 209a6dac3da9..72ce1c9717ac 100644 --- a/umac/dfs/dispatcher/src/wlan_dfs_utils_api.c +++ b/umac/dfs/dispatcher/src/wlan_dfs_utils_api.c @@ -36,6 +36,8 @@ #include #endif #include +#include "wlan_dfs_lmac_api.h" +#include "../../core/src/dfs_internal.h" struct dfs_nol_info { uint16_t num_chans; @@ -1566,7 +1568,10 @@ bool utils_dfs_is_spoof_done(struct wlan_objmgr_pdev *pdev) if (!dfs) return false; - return !!dfs->dfs_spoof_test_done; + if (lmac_is_host_dfs_check_support_enabled(dfs->dfs_pdev_obj) && + utils_get_dfsdomain(dfs->dfs_pdev_obj) == DFS_FCC_DOMAIN) + return !!dfs->dfs_spoof_test_done; + return true; } #endif