Postpone updating of wpa_s->current_bss till association event
authorSunil Dutt <usdutt@qti.qualcomm.com>
Thu, 28 May 2015 15:11:12 +0000 (20:41 +0530)
committerJouni Malinen <j@w1.fi>
Fri, 29 May 2015 09:18:13 +0000 (12:18 +0300)
commit4d3be9cdd1437e11dcea3182f85cdc9c65113cd5
tree51069ab868caf6ba1ada0d36a04fa69df00dbc10
parent3784c0589e78666da2a4d5f638171f3df1d1c929
Postpone updating of wpa_s->current_bss till association event

In the case of driver-based BSS selection, a bssid_hint in the connect
request might not result in to the selection of the same BSS. Thus,
postpone the updation of the wpa_s->current_bss till the association
event is received unless the BSSID is forced. This fixes issues where
wpa_s->current_bss may end up being updated to point to the BSS that
wpa_supplicant provided as a hint for a roaming case, but then not
restored if the driver decides to "return" to the current BSS instead.
This could result in some operations (e.g., WNM BSS TM response) not
working properly due to incorrect BSS being identified in
wpa_s->current_bss.

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