fix(wpa_supplicant): Add current bss channel as hint to scanning

- Add current bss channel as hint to scanning during supplicant connect
  making the process faster.
This commit is contained in:
jgujarathi
2023-08-16 12:08:02 +05:30
committed by BOT
parent 560c951e33
commit b23e29d5ae
2 changed files with 4 additions and 0 deletions

View File

@@ -805,6 +805,9 @@ static void wnm_set_scan_freqs(struct wpa_supplicant *wpa_s)
MAC2STR(nei->bssid));
return;
}
if (wpa_s->current_bss && (os_memcmp(nei->bssid, wpa_s->current_bss->bssid, ETH_ALEN) == 0)) {
continue;
}
if (nei->channel_number != chan) {
chan = nei->channel_number;
num_chan++;