]> git.ipfire.org Git - thirdparty/hostap.git/commit
WNM: Clear BSS TM data if already associated with preferred candidate
authorJouni Malinen <j@w1.fi>
Sun, 1 Nov 2015 18:09:11 +0000 (20:09 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 1 Nov 2015 18:09:11 +0000 (20:09 +0200)
commit1e74ae4de95f70718c1cc433ad1cb03e1a886c4e
treedea6c7220457be84fc8563f299b7579456a7ac09
parentf2d789f20bd9b497565557deb401a4a5880fb8d5
WNM: Clear BSS TM data if already associated with preferred candidate

Previously, wnm_deallocate_memory() was called only if we decided to
move to another BSS at the completion of an accepted BSS Transition
Management Request. This resulted in the candidate information being
left in effect for the following scan operation if we were already
associated with the preferred candidate. This could result in unexpected
behavior in the following connection attempt.

Fix this by clearing the candidate information even if we do not need to
roam to another BSS.

This was triggered with mac80211_hwsim test cases in this sequence:
wnm_bss_tm ap_track_sta_force_2ghz

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/wnm_sta.c