]> git.ipfire.org Git - thirdparty/hostap.git/commit
P2P: Set global->p2p_group_formation in wpas_p2p_join_start() for p2pdev
authorAloni, Adiel <adiel.aloni@intel.com>
Mon, 21 Aug 2017 16:36:22 +0000 (19:36 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 1 Jan 2019 14:56:22 +0000 (16:56 +0200)
commitdc9b7d217c70ea29a9d9433c483ed626e577f6f4
tree77843fcaeaa922c8e87d86e76cc38b8f5e2602e6
parent7f90a850ffb8bb4e7b8528555d44cd89b2d9872c
P2P: Set global->p2p_group_formation in wpas_p2p_join_start() for p2pdev

When a dedicated P2P device interface is used, the
global->p2p_group_formation was not set in wpas_p2p_join_start() if no
separate group interface is used. This would cause that in case of a
failure in group formation, the cleaning of p2p_in_provisioning is done
on the wrong interface. Furthermore, P2P_CANCEL command could not be
used to stop such a group-join operation. Fix this by setting the
global->p2p_group_formation correctly in case that the group interface
is reusing wpa_s->parent.

Signed-off-by: Adiel Aloni <adiel.aloni@intel.com>
wpa_supplicant/p2p_supplicant.c