From 340f1c48f764211867a9648fc44d8bec4335aa9d Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Mon, 29 Oct 2012 16:25:02 +0200 Subject: P2P: Clear pending_pd_before_join on PD timeout wpas_p2p_pd_before_join_timeout() needs to clear the pending_pd_before_join flag to match other uses of this flag prior to calling wpas_p2p_join_start(). Without this, the flag could be left set which can cause following P2P operations to behave in unexpected ways. Signed-hostap: Jouni Malinen --- wpa_supplicant/p2p_supplicant.c | 1 + 1 file changed, 1 insertion(+) diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c index 15b9b8571..800499d14 100644 --- a/wpa_supplicant/p2p_supplicant.c +++ b/wpa_supplicant/p2p_supplicant.c @@ -2955,6 +2955,7 @@ static void wpas_p2p_pd_before_join_timeout(void *eloop_ctx, void *timeout_ctx) struct wpa_supplicant *wpa_s = eloop_ctx; if (!wpa_s->pending_pd_before_join) return; + wpa_s->pending_pd_before_join = 0; /* * Provision Discovery Response may have been lost - try to connect * anyway since we do not need any information from this PD. -- cgit v1.2.1