aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2010-11-05 16:17:42 (GMT)
committerJouni Malinen <j@w1.fi>2010-11-05 16:17:42 (GMT)
commit9bcf9541a748b63bcc3a81e67e5087f8b566d3cb (patch)
tree30e47591a5b033a2945c7c324b9264850f947ea7
parentf44ae2078380a9548eae859a4454e756a0bfea8f (diff)
downloadhostap-9bcf9541a748b63bcc3a81e67e5087f8b566d3cb.zip
hostap-9bcf9541a748b63bcc3a81e67e5087f8b566d3cb.tar.gz
hostap-9bcf9541a748b63bcc3a81e67e5087f8b566d3cb.tar.bz2
P2P: Do not skip call to p2p_scan_res_handled()
Even if p2p_scan_res_handler() returns 1 to indicate that scan result iteration should be stopped, the p2p_scan_res_handled() needs to be called to clear p2p_scan_running and to get a callback that will start any operations that were delayed because of the running scan.
-rw-r--r--wpa_supplicant/p2p_supplicant.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c
index 82add2b..f082eef 100644
--- a/wpa_supplicant/p2p_supplicant.c
+++ b/wpa_supplicant/p2p_supplicant.c
@@ -67,7 +67,7 @@ static void wpas_p2p_scan_res_handler(struct wpa_supplicant *wpa_s,
bss->freq, bss->level,
(const u8 *) (bss + 1),
bss->ie_len) > 0)
- return;
+ break;
}
p2p_scan_res_handled(wpa_s->global->p2p);