P2P: Clear p2p_group_formation and p2p_in_provisioning on group removal
authorDeepthi Gowri <c_gowri@qti.qualcomm.com>
Sun, 6 Oct 2013 00:54:52 +0000 (17:54 -0700)
committerJouni Malinen <j@w1.fi>
Sun, 6 Oct 2013 00:54:52 +0000 (17:54 -0700)
commitacdd0fc84f01d8b5e8aa39d6e4573cee0b5ac707
tree75c690b3c26d4299276b648007fca8b476a07a0e
parent8b3b803ab9fe69650da7e3b2ee9e44f0f054ee0a
P2P: Clear p2p_group_formation and p2p_in_provisioning on group removal

Commit 41f853235fe1d1fad1acecc0ee5dfe81c872c6b2 extends group formation
timeout for the first data connection to complete and resets
p2p_go_group_formation_completed flag due to which p2p_in_provisioning
and p2p_group_formation flags are not cleared when
wpas_group_formation_completed() is called. This can result in both
station scan and p2p_find failures in the case where separate P2P group
interface is not used and the client does not complete 4-way handshake.
Fix this by clearing p2p_group_formation and p2p_in_provisioning when
such a P2P group is deleted.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
wpa_supplicant/p2p_supplicant.c