From 706887fc2866e13b62d6ac9eda63cffd3baa772c Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 27 Jun 2010 00:27:08 -0700 Subject: [PATCH] P2P: Stop early when processing not-persistent invitation result --- wpa_supplicant/p2p_supplicant.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c index 45121cea2..fc69392f7 100644 --- a/wpa_supplicant/p2p_supplicant.c +++ b/wpa_supplicant/p2p_supplicant.c @@ -1830,6 +1830,9 @@ static void wpas_invitation_result(void *ctx, int status, const u8 *bssid) "status=%d ", status); } + if (wpa_s->pending_invite_ssid_id == -1) + return; /* Invitation to active group */ + if (status != P2P_SC_SUCCESS) { wpas_p2p_remove_pending_group_interface(wpa_s); return;