P2P: Do not perform P2P GO CS in some cases
authorIlan Peer <ilan.peer@intel.com>
Mon, 27 Jul 2015 19:24:27 +0000 (22:24 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 4 Aug 2015 15:34:47 +0000 (18:34 +0300)
commit3a8f008a24a8e45d72c72741bc527eb8251758f7
tree3e99c11fc5fdb075f8cf15086fab1bc107f280c2
parentdae4c82c9573268edd5dabc577b7bc7184b5ce22
P2P: Do not perform P2P GO CS in some cases

A P2P GO channel switch should not be triggered in all cases that
require channel list update. Specifically, a P2P GO CS should not
be triggered in case that the P2P GO state changed or in case that
that the P2P GO has just completed a CS.

To fix this, add reason code to wpas_p2p_channel_list_update() and
trigger CS flow only for the relevant cases.

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