]> git.ipfire.org Git - thirdparty/hostap.git/commit
Clear scan_res_handler on no-retry failure
authorHu Wang <huw@qti.qualcomm.com>
Wed, 1 Mar 2017 14:39:30 +0000 (16:39 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 1 Mar 2017 14:39:30 +0000 (16:39 +0200)
commit57d3c5913aa2789e06311b99c2ab2c453f1f29f7
treed09d615eee21d859ee99a91fa2c9d4eabb537ef6
parentc97d7c2a60b2510a31bc5a0f58eaf533ee5bdf7f
Clear scan_res_handler on no-retry failure

Previously it was possible for wpa_s->scan_res_handler to remain set to
its old value in case wpa_drv_scan() failed and no retry for the scan
trigger was scheduled (i.e., when last_scan_req == MANUAL_SCAN_REQ).
This could result in getting stuck with the next connection attempt
after a failed "SCAN TYPE=ONLY" operation when wpa_s->scan_res_handler
was set to scan_only_handler().

Fix this by clearing wpa_s->scan_res_handler if wpa_drv_scan() fails and
no retry is scheduled.

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