]> git.ipfire.org Git - thirdparty/hostap.git/commit
Update WPA/RSN IE properly for driver based BSS selection
authorSujith Manoharan <c_manoha@qca.qualcomm.com>
Mon, 23 Jan 2012 15:34:39 +0000 (17:34 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 23 Jan 2012 15:34:39 +0000 (17:34 +0200)
commitcd2f4ddfb91c330c778d7464a393c5f26f07d432
tree1d42e2b6c59f8f1d2b15b7ade1518b547bb766df
parente6c62749476612eede63ceb4c0d79c7fd8e27772
Update WPA/RSN IE properly for driver based BSS selection

This patch fixes an issue with roaming for drivers that set
WPA_DRIVER_FLAGS_BSS_SELECTION (currently ath6kl). On moving to an AP
with a different BSSID, an EVENT_ASSOC is received and the subsequent
4-way handshake may fail because of a mismatch between the RSN IE in
message 3/4 and in Beacon/Probe Response. This happens only when the APs
use different RSN IE contents and ap_scan is set to 1, since
wpa_supplicant fails to update its cached IEs.

Initial association may fail, too, in case of multiple APs with
the same SSID, since BSSID selection is done by the driver and again
a mismatch could be seen.

Fix these two issues by clearing and updating the cached IEs on
receiving an Association event from the driver. Also, retrieve the
scan results when the new BSS information is not present locally.

Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
wpa_supplicant/events.c