]> git.ipfire.org Git - thirdparty/hostap.git/commit
Interworking: Fix INTERWORKING_CONNECT with zero-length SSID BSS entry
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 15 Jan 2015 10:24:18 +0000 (12:24 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 15 Jan 2015 10:24:18 +0000 (12:24 +0200)
commit783b2a977fcc4d3faaf01bd6de7c8801f8a00b34
treec9efd32a0eef3c411bbac067927a6c78cc0491dc
parent1fef85c7c5e3d484ff8c6ec92c7e883427ec0c7e
Interworking: Fix INTERWORKING_CONNECT with zero-length SSID BSS entry

For Interworking connection to work, the SSID of the selected BSS needs
to be known to be able to associate with the AP. It was possible for the
scan results to include two BSS entries matching the BSSID when an
earlier scan with that AP has shown a hidden SSID configuration (e.g.,
when running hwsim test cases, but at least in theory, this could happen
with real use cases as well). When that happened, the incorrect BSS
entry may not have included RSN configuration and as such, it would get
rejected for Interworking connection.

Fix this by confirming that the selected BSS entry has a real SSID. If
not, try to find another BSS entry matching the same BSSID and use that,
if found with an SSID.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
wpa_supplicant/ctrl_iface.c