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
This commit is contained in:
Vijay Krishnan 2020-08-13 14:18:37 +05:30 • committed by snandini
commit 8461a8d5cd

View file

@ -36,6 +36,8 @@
#include <pld_common.h>
#endif
#include <qdf_module.h>
#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