[PATCH v2] wpa_supplicant_select_network: check last scan ssids
Jouni Malinen
j at w1.fi
Fri Dec 27 02:45:27 PST 2024
On Tue, Nov 05, 2024 at 05:36:11AM +0000, Arowa Suliman wrote:
> This recent patch [1] introduced a redundant scan when selecting a
> hidden network that was previously scanned and found. This occurs
> because the code only checks for the condition
> `(wpa_s->no_suitable_network || wpa_s->last_scan_external)`, which
> doesn't cover the case where the last scan successfully found the hidden
> SSID.
>
> This patch saves the scanned SSIDs from the last scan and updates the
> condition to check if the hidden SSID was included.
>
> If the hidden SSID is not found in `last_scan_ssids`, the code checks if
> the SSID was found in earlier scan results. If not, it triggers a new
> scan. If the SSID is found, a new scan is avoided, resulting in faster
> connection times.
Thanks, applied with cleanup.
--
Jouni Malinen PGP id EFC895FA
More information about the Hostap
mailing list