From 32ff2e64caabcd23ce19115684fc88501b23a36c Mon Sep 17 00:00:00 2001 From: Jyoti Kumari Date: Fri, 11 Dec 2020 19:12:20 +0530 Subject: [PATCH] qcacmn: Don't optimize 6g channel list in first full scan request Currently, 6g PSC/non-PSC channels in the scan request are scanned or optimized to scan only if RNR IE is found based on the inis scan_mode_6ghz and scan_mode_6ghz_duty_cycle. As scan_mode_6ghz_duty_cycle is set to 4 by default, first 3 scans are optimized to scan only if RNR IE is found and 4th scan would be full scan. If there is any standalone AP in 6g channel that doesn't advertize RNR IE in colocated APs beacons/probe responses, that's not scanned till the 4th scan. Reverse the order for scan_mode_6ghz_duty_cycle such that the first scan of every four scans is a full scan and rest of the three scans are optimized. So, the standalone 6g APs can be found in first scan itself based on the ini scan_mode_6ghz. Change-Id: Ice1614a94f1fd166e283355616ace241a5df2bcb CRs-Fixed: 2829550 --- umac/scan/core/src/wlan_scan_manager_6ghz.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/umac/scan/core/src/wlan_scan_manager_6ghz.c b/umac/scan/core/src/wlan_scan_manager_6ghz.c index c13fbf8c69ba..cfd8abe29879 100644 --- a/umac/scan/core/src/wlan_scan_manager_6ghz.c +++ b/umac/scan/core/src/wlan_scan_manager_6ghz.c @@ -315,11 +315,10 @@ static bool scm_is_duty_cycle_scan(struct wlan_scan_obj *scan_obj) bool duty_cycle = false; scan_obj->duty_cycle_cnt_6ghz++; - if (scan_obj->duty_cycle_cnt_6ghz == - scan_obj->scan_def.duty_cycle_6ghz) { + if (scan_obj->duty_cycle_cnt_6ghz == 1) duty_cycle = true; + if (scan_obj->scan_def.duty_cycle_6ghz == scan_obj->duty_cycle_cnt_6ghz) scan_obj->duty_cycle_cnt_6ghz = 0; - } return duty_cycle; }