Re: [PATCH v2] wpa_supplicant_select_network: check last scan ssids

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux