mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-22 17:10:28 +00:00
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:
@@ -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++;
|
||||
|
Reference in New Issue
Block a user