OSDN Git Service

P2P: Fix p2p_cancel processing during group formation
authorJouni Malinen <j@w1.fi>
Wed, 3 Oct 2012 21:31:41 +0000 (14:31 -0700)
committerIrfan Sheriff <isheriff@google.com>
Wed, 3 Oct 2012 23:22:51 +0000 (16:22 -0700)
commitadddfc48d2d7bfa2b1a2405ab8f404b6383ec236
treebdf1f0348d5a9901cfa86498bd7f88f216b6475c
parent069fa2c39ec7120656a2ea8cca83c5ee41ddab60
P2P: Fix p2p_cancel processing during group formation

The wpa_s->p2p_in_provisioning flag did not get cleared in some cases
where p2p_cancel command is used to stop group formation. This can result
in some operations (like p2p_find) failing afterwards. Fix this by using
wpas_group_formation_completed() when processing p2p_cancel for a group
that has not yet completed group formation.

Bug: 7280743
Change-Id: I2dea935bd7c0509237de54bd048954f75ce80bfc
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
wpa_supplicant/p2p_supplicant.c