From 3fb6ac72f3de6850eb80a673d7dac9440c8ac359 Mon Sep 17 00:00:00 2001 From: Utkarsh Bhatnagar Date: Wed, 21 Apr 2021 07:54:12 +0530 Subject: [PATCH] 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 --- umac/scan/core/src/wlan_scan_manager.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/umac/scan/core/src/wlan_scan_manager.c b/umac/scan/core/src/wlan_scan_manager.c index 511b66ace9cf..c4bc918731b5 100644 --- a/umac/scan/core/src/wlan_scan_manager.c +++ b/umac/scan/core/src/wlan_scan_manager.c @@ -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");