Jelajahi Sumber

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
Jyoti Kumari 4 tahun lalu
induk
melakukan
438c1832b3
1 mengubah file dengan 2 tambahan dan 3 penghapusan
  1. 2 3
      umac/scan/core/src/wlan_scan_manager_6ghz.c

+ 2 - 3
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;
 }