mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
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
This commit is contained in:
parent
ba76d4a802
commit
32ff2e64ca
1 changed files with 2 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue