]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Do not skip call to p2p_scan_res_handled()
authorJouni Malinen <jouni.malinen@atheros.com>
Fri, 5 Nov 2010 16:17:42 +0000 (18:17 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 5 Nov 2010 16:17:42 +0000 (18:17 +0200)
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.

wpa_supplicant/p2p_supplicant.c

index 82add2bd2e01eb7aaf5d657f76814b0fc045c686..f082eeff7a6cf7db450670fd274a1f957b70b2e1 100644 (file)
@@ -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);