]> git.ipfire.org Git - thirdparty/hostap.git/commit
nl80211: Ignore disconnect event in case of locally generated request
authorJithu Jance <jithu@broadcom.com>
Sat, 20 Jul 2013 13:06:13 +0000 (16:06 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 20 Jul 2013 13:06:13 +0000 (16:06 +0300)
commit3f53c006c7d7362cf715ceaeda92c69d91ea7b63
tree901c8f23d5635d209ff1a7d7ee4294975a28b471
parent1075b2957169d8f9d6dddd7679339c751dc9515b
nl80211: Ignore disconnect event in case of locally generated request

Previously, there could be two disconnection events in core
wpa_supplicant when going through a case of wpa_supplicant-requested
disconnection with a driver that implements SME internally. This could
result in undesired behavior when a disconnection is followed by a new
connection attempt before the extra event has been received (e.g.,
during fast reassoc or WPS provisioning). Avoid such issues by ignoring
locally generated disconnect events after requesting cfg80211 to
disconnect.

This makes the previously used ignore_next_local_disconnect more
consistent by setting the variable within
wpa_driver_nl80211_disconnect() so that both callers get the same
behavior.

Signed-hostap: Jithu Jance <jithu@broadcom.com>
src/drivers/driver_nl80211.c