]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Clear pending_pd_before_join on PD timeout
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 29 Oct 2012 14:25:02 +0000 (16:25 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 29 Oct 2012 14:25:02 +0000 (16:25 +0200)
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 <jouni@qca.qualcomm.com>

wpa_supplicant/p2p_supplicant.c

index 15b9b8571fc11eb2b41f3c77d5436225fb5d19fe..800499d1484c62277822668f66d0d323a26581dd 100644 (file)
@@ -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.