P2P: Disallow GO CS immediately after GO Negotiation or invitation
authorIlan Peer <ilan.peer@intel.com>
Mon, 27 Jul 2015 19:24:26 +0000 (22:24 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 4 Aug 2015 13:14:30 +0000 (16:14 +0300)
commitdae4c82c9573268edd5dabc577b7bc7184b5ce22
tree9fcd5399c3139937c5fa6b9a9a487df75167418d
parentc2675c87c3df6ad1e71f12911cace69fa4e65d7c
P2P: Disallow GO CS immediately after GO Negotiation or invitation

A newly created GO might move to another channel before the client was
able to connect to it. This creates a situation where the client
searches the GO on the channel agreed upon during GO Negotiation or
invitation signaling, while the GO is on another channel. This in turn
might lead to delayed connection or connection failure and group
removal.

Fix this by disallowing a GO CS as long as there is some activity that
should delay the switch. If a GO move is not allowed, set a timeout to
re-attempt the move.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
wpa_supplicant/p2p_supplicant.c