diff options
author | Jouni Malinen <jouni@qca.qualcomm.com> | 2012-10-29 16:25:02 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2012-10-29 16:25:02 +0200 |
commit | 340f1c48f764211867a9648fc44d8bec4335aa9d (patch) | |
tree | 67d1547376a96860b84c6d5f4c07e6e4e221b73c | |
parent | d76cd41a3a17a8f1d57c99591542668ab29a5851 (diff) | |
download | hostap-340f1c48f764211867a9648fc44d8bec4335aa9d.tar.gz |
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 <jouni@qca.qualcomm.com>
-rw-r--r-- | wpa_supplicant/p2p_supplicant.c | 1 |
1 files changed, 1 insertions, 0 deletions
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. |