From 88ec9b6865681e8a7af67392b62d1c147ca50d0b Mon Sep 17 00:00:00 2001 From: Amruta Kulkarni Date: Wed, 27 Nov 2019 16:50:15 -0800 Subject: [PATCH] qcacmn: Enhance logic for dwell time 2ghz With this change, in concurrent mode (SAP on 5ghz or 6ghz and peer connected + STA Scan ongoing), active dwell time for 2ghz is not reset to 0. Change-Id: I27bcd64579727e279095cf5386638dbd49567b3d CRs-Fixed: 2575762 --- umac/scan/core/src/wlan_scan_manager.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/umac/scan/core/src/wlan_scan_manager.c b/umac/scan/core/src/wlan_scan_manager.c index 0e9d38f72d79..f62a64ac562b 100644 --- a/umac/scan/core/src/wlan_scan_manager.c +++ b/umac/scan/core/src/wlan_scan_manager.c @@ -629,13 +629,18 @@ static void scm_req_update_concurrency_params(struct wlan_objmgr_vdev *vdev, req->scan_req.adaptive_dwell_time_mode = scan_obj->scan_def.adaptive_dwell_time_mode_nc; /* - * If AP/GO is active and has connected clients set min rest time - * same as max rest time, so that firmware spends more time on home - * channel which will increase the probability of sending beacon at TBTT + * If AP/GO is active and has connected clients : + * 1.set min rest time same as max rest time, so that + * firmware spends more time on home channel which will + * increase the probability of sending beacon at TBTT + * 2.if DBS is supported and SAP is not on 2g, + * do not reset active dwell time for 2g. */ if ((ap_present && sap_peer_count) || (go_present && go_peer_count)) { - req->scan_req.dwell_time_active_2g = 0; + if (policy_mgr_is_hw_dbs_capable(psoc) && + policy_mgr_is_sap_go_on_2g(psoc)) + req->scan_req.dwell_time_active_2g = 0; req->scan_req.min_rest_time = req->scan_req.max_rest_time; }