Do not allow ap_scan=2 scan processing to stop AP mode operation
authorJouni Malinen <j@w1.fi>
Tue, 11 Aug 2015 18:46:38 +0000 (21:46 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 11 Aug 2015 18:46:38 +0000 (21:46 +0300)
commit0a34b62be9dee23e0adefed002a420edb0953961
tree6b83ad5a821472f7cc20a0b5c80d774220788ed2
parent1fbff0b5c489379784d344eac0644974b8e4f738
Do not allow ap_scan=2 scan processing to stop AP mode operation

wpa_supplicant_assoc_try() would result in the currently operating AP to
get stopped if wpa_supplicant_scan() ends up getting triggered without
MANUAL_SCAN_REQ while operating an AP. With ap_scan=2, this could
resulted in unintentional stopping of AP mode operations, so check
explicitly for that case and skip the wpa_supplicant_assoc_try() call if
needed to avoid this.

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/scan.c