From: Jouni Malinen Date: Wed, 29 Feb 2012 23:16:06 +0000 (+0200) Subject: P2P: Fix p2p_cancel to return success if GO Negotiation is stopped X-Git-Tag: hostap_2_0~822 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=75c208b9db7ec027ea923ff8af2b408da110bcc2;p=thirdparty%2Fhostap.git P2P: Fix p2p_cancel to return success if GO Negotiation is stopped If a GO Negotiation peer is found, wpas_p2p_stop_find() stops the negotiation and p2p_cancel can return success. Signed-hostap: Jouni Malinen --- diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c index d723254bd..f70f7900b 100644 --- a/wpa_supplicant/p2p_supplicant.c +++ b/wpa_supplicant/p2p_supplicant.c @@ -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);