]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Fix p2p_cancel to return success if GO Negotiation is stopped
authorJouni Malinen <jouni@qca.qualcomm.com>
Wed, 29 Feb 2012 23:16:06 +0000 (01:16 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 29 Feb 2012 23:16:06 +0000 (01:16 +0200)
If a GO Negotiation peer is found, wpas_p2p_stop_find() stops the
negotiation and p2p_cancel can return success.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

wpa_supplicant/p2p_supplicant.c

index d723254bd4894a91693f05e7ecc3bb97faf562f7..f70f7900bd55f8ea052c039faae93a53db005f01 100644 (file)
@@ -4337,6 +4337,7 @@ int wpas_p2p_cancel(struct wpa_supplicant *wpa_s)
                wpa_printf(MSG_DEBUG, "P2P: Unauthorize pending GO Neg peer "
                           MACSTR, MAC2STR(peer));
                p2p_unauthorize(global->p2p, peer);
+               found = 1;
        }
 
        wpas_p2p_stop_find(wpa_s);