aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/p2p_supplicant.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2015-12-04 21:11:10 (GMT)
committerJouni Malinen <j@w1.fi>2015-12-04 21:11:10 (GMT)
commitbf3214b59321f67375df1ee85722b2beb74e1f7a (patch)
tree80c907e7bde53f28f2338ad4e201445a976432fb /wpa_supplicant/p2p_supplicant.c
parent63502c64e13d35dad591c315c8606866d9e07bce (diff)
downloadhostap-bf3214b59321f67375df1ee85722b2beb74e1f7a.zip
hostap-bf3214b59321f67375df1ee85722b2beb74e1f7a.tar.gz
hostap-bf3214b59321f67375df1ee85722b2beb74e1f7a.tar.bz2
P2P: Fix re-invoked client interface completion on data connection
This was already working for the case where a separate group interface is used due to the recent commit 328f49acfe961a212e89e750516d2e2cc320765f ('P2P: Complete group formation on client data connection'). However, the case of no separate group interface was used did not clear the interface state properly on data connection. Fix this by setting the group formation information in wpas_start_p2p_client(). Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/p2p_supplicant.c')
-rw-r--r--wpa_supplicant/p2p_supplicant.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c
index f19bacc..c7ddc99 100644
--- a/wpa_supplicant/p2p_supplicant.c
+++ b/wpa_supplicant/p2p_supplicant.c
@@ -6096,6 +6096,8 @@ static int wpas_start_p2p_client(struct wpa_supplicant *wpa_s,
wpa_s->show_group_started = 1;
wpa_s->p2p_in_invitation = 1;
wpa_s->p2p_invite_go_freq = freq;
+ wpa_s->p2p_go_group_formation_completed = 0;
+ wpa_s->global->p2p_group_formation = wpa_s;
eloop_cancel_timeout(wpas_p2p_group_formation_timeout, wpa_s->parent,
NULL);