P2P: Cancel group formation timeout on group removal (on client)
authorJouni Malinen <jouni@qca.qualcomm.com>
Sun, 10 Feb 2013 21:36:52 +0000 (23:36 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 10 Feb 2013 21:36:52 +0000 (23:36 +0200)
commit77dfafd07d3a0335e250b8ffaf74fe7b3714b0bc
tree0ce88552727ca95b68e2db29336cde545fdb5bd9
parentbd692a8b0e087e0985f5da227fc6159ebbaa4d75
P2P: Cancel group formation timeout on group removal (on client)

Group formation timeout is normally canceled when 4-way handshake is
completed (WPA_COMPLETED -> wpas_p2p_completed). However, it is possible
for the GO to stop the group before this happens (i.e., send
Deauthentication frame with reason code 3 before 4-way handshake is
completed). This resulted in the group getting removed, but the group
formation timeout left behind. The unexpected timeout may then result in
undesired termination of the following operation. Fix this by canceling
the group formation timeout in wpas_p2p_group_delete() similarly to how
group idle timeout was canceled there.

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