From 59b6bee2591089edfba4154d86206ed8dd1e03e5 Mon Sep 17 00:00:00 2001 From: gaurank kathpalia Date: Wed, 19 Jun 2019 14:25:34 +0530 Subject: [PATCH] qcacmn: Allow DBS scan if enabled in ini Currently the driver checks that DBS for connection is allowed or not, and on that basis rejects the scan, but it may happen that FW supports DBS, and DBS for scan is enabled in the ini, but the DBS for connection is disabled. In that case the diver opts for non-dbs scan. Fix is to allow DBS scan in case of DBS scan enabled in ini. Change-Id: I080ba4e581a7f77e84a4364237621429bcf91710 CRs-Fixed: 2474580 --- umac/scan/core/src/wlan_scan_manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umac/scan/core/src/wlan_scan_manager.c b/umac/scan/core/src/wlan_scan_manager.c index 308db2d1c276..32490a8d06ec 100644 --- a/umac/scan/core/src/wlan_scan_manager.c +++ b/umac/scan/core/src/wlan_scan_manager.c @@ -437,7 +437,7 @@ scm_update_dbs_scan_ctrl_ext_flag(struct scan_start_request *req) psoc = wlan_vdev_get_psoc(req->vdev); - if (!policy_mgr_is_hw_dbs_capable(psoc)) { + if (!policy_mgr_is_dbs_scan_allowed(psoc)) { scm_debug("dbs disabled, going for non-dbs scan"); scan_dbs_policy = SCAN_DBS_POLICY_FORCE_NONDBS; goto end;