]> git.ipfire.org Git - thirdparty/hostap.git/commit
nl80211: Work around EALREADY from connect command
authorJouni Malinen <j@w1.fi>
Sun, 18 Sep 2011 18:26:55 +0000 (21:26 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 18 Sep 2011 18:26:55 +0000 (21:26 +0300)
commit20f5a4c24c69fbbae0362e073369254db75c7f0d
tree3ca94dbaf59478b7d1a1469a3a572d4838e5888e
parent1b414f59fc46b8c88e606de122debf69e8b5faa8
nl80211: Work around EALREADY from connect command

cfg80211 does not currently allow NL80211_CMD_CONNECT when there
is already an association. This can result in wpa_supplicant being
unable to request a connection if the interface is already in
connected state. Work around this by requesting disconnection if
the connect command fails with EALREADY error. This allows
wpa_supplicant to recover from the unexpected state and complete
the connect request on next attempt.
src/drivers/driver_nl80211.c