Retry scan-for-connect if driver trigger fails
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 19 Jan 2015 18:10:00 +0000 (20:10 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 19 Jan 2015 18:25:20 +0000 (20:25 +0200)
commit2d9c99e37b29a639dafa431df38e1586a31ba887
tree9f4f085c28955ad5e0276e7a624abc4cffdad050
parent911942ee646606f44d16b97afed674369fb76c4f
Retry scan-for-connect if driver trigger fails

This restores some of the pre-radio work behavior for scanning by
retrying scan trigger if the driver rejects it (most likely returning
EBUSY in case of nl80211-drivers). Retry is indicated in the
CTRL-EVENT-SCAN-FAILED event with "retry=1".

For manual scans (e.g., triggered through "SCAN" control interface
command), no additional retries are performed. In other words, if upper
layers want to retry, they can do so based on the CTRL-EVENT-SCAN-FAILED
event.

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