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.
Change-Id: I48ec482e92a04b2ed40cc444e65bd7d324112c8a
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Git-commit: 57d3c5913aa2789e06311b99c2ab2c453f1f29f7
Git-repo: git://w1.fi/srv/git/hostap.git
CRs-fixed: 2013758
1 file changed