]> git.ipfire.org Git - thirdparty/hostap.git/commit
Enhance select_network() to trigger new scans in some cases
authorHu Wang <quic_huw@quicinc.com>
Wed, 26 Jun 2024 03:05:12 +0000 (20:05 -0700)
committerJouni Malinen <j@w1.fi>
Mon, 22 Jul 2024 19:01:18 +0000 (19:01 +0000)
commit92374d59d4efea5c8b61ed2ceef141c26bcd7f99
tree56843e94dd448245d116e0d3a1fab11484005042
parentff99012d84642e34cc1aa874e121c2e63954875a
Enhance select_network() to trigger new scans in some cases

wpa_supplicant select_network() relies on fast_associate to reuse old
scan results. However, this approach does not apply in some cases in
Android:

1 - If the selected network is hidden, and the SSID is in Chinese,
Android switches between fallback SSIDs, necessitating a new scan for
switching between different hidden SSIDs.

2 - Similarly, if the selected SSID is OWE (Opportunistic Wireless
Encryption), and the OWE SSID bands have been changed, select_network()
requires a fresh scan to discover hidden OWE SSIDs.

To address these, enhance select_network() to trigger new scans instead
of relying on fast_associate. This improves network selection behavior
in Android.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
wpa_supplicant/events.c
wpa_supplicant/wpa_supplicant.c
wpa_supplicant/wpa_supplicant_i.h