]> git.ipfire.org Git - thirdparty/hostap.git/commit
Restore wpa_s->scan_req if scan trigger fails
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 30 Oct 2012 10:27:05 +0000 (12:27 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 30 Oct 2012 10:27:05 +0000 (12:27 +0200)
commit23270cd8f56768188f4b725d257ad2bdf009c96e
tree291d72935621f993ae98a79c30327c9e397510c9
parent340f1c48f764211867a9648fc44d8bec4335aa9d
Restore wpa_s->scan_req if scan trigger fails

If the driver rejects the scan request while handling an external
requested scan (e.g., SCAN command on ctrl_iface), wpa_s->scan_req gets
cleared in wpa_supplicant_scan(). This can results in issues when the
scheduled re-try of the scan in one seconds trigger another call to this
function. If ap_scan==2 mode is used, this would result in new
association attempt instead of a new scan. Avoid this by restoring value
of wpa_s->scan_req in case the scan trigger fails and a new scan attempt
is scheduled.

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