qcacmn: Configure Default DBS scan for DBS HW

Previously, for high accuracy scan,
configured scan policy SCAN_DBS_POLICY_FORCE_NONDBS
takes  more time to scan.
For DBS HW, to improve scan time, this should be
changed to SCAN_DBS_POLICY_DEFAULT.

Change-Id: I692e2a8b4fd9c97b526197edc57b830fa091a456
CRs-Fixed: 2927022
This commit is contained in:
Utkarsh Bhatnagar 2021-04-21 07:54:12 +05:30 • committed by Madan Koyyalamudi
commit 3fb6ac72f3

View file

@ -445,8 +445,8 @@ scm_update_dbs_scan_ctrl_ext_flag(struct scan_start_request *req)
PM_NDI_MODE,
NULL);
if (ndi_present && !policy_mgr_is_hw_dbs_2x2_capable(psoc)) {
scm_debug("NDP present go for DBS scan");
if (ndi_present || policy_mgr_is_hw_dbs_2x2_capable(psoc)) {
scm_debug("NDP present or HW 2x2 capable, go for DBS scan");
goto end;
}
@ -455,6 +455,7 @@ scm_update_dbs_scan_ctrl_ext_flag(struct scan_start_request *req)
scan_dbs_policy = SCAN_DBS_POLICY_FORCE_NONDBS;
goto end;
}
if ((req->scan_req.scan_policy_low_power) ||
(req->scan_req.scan_policy_low_span)) {
scm_debug("low power/span scan received, going for dbs scan");