]> git.ipfire.org Git - thirdparty/hostap.git/commit - src/drivers/driver_nl80211.c
nl80211: Recover from auth req ENOENT with a scan
authorJouni Malinen <j@w1.fi>
Sun, 4 Dec 2011 19:53:56 +0000 (21:53 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 4 Dec 2011 19:53:56 +0000 (21:53 +0200)
commit536fd62dba5480a2490726f0e3a9bc38225b0904
treed76a1142dabd34f3bfb011f839495ad48ba3f62a
parented57c5907ebe10d7b2bbd21619d74dd4a48c245f
nl80211: Recover from auth req ENOENT with a scan

cfg80211 rejects NL80211_CMD_AUTHENTICATE with ENOENT if the BSS entry
for the target BSS is not available. This can happen if the cfg80211
entry has expired before wpa_supplicant entry (e.g., during a suspend).
To recover from this quickly, run a single channel scan to get the
cfg80211 entry back and then retry authentication command again. This
is handled within driver_nl80211.c to keep the core wpa_supplicant
implementation cleaner.

Signed-hostap: Jouni Malinen <j@w1.fi>
src/drivers/driver_nl80211.c