P2P: Relax wpas_p2p_init_go_params() for P2P GO CSA
authorIlan Peer <ilan.peer@intel.com>
Tue, 8 Sep 2015 09:46:17 +0000 (12:46 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 3 Oct 2015 17:16:51 +0000 (20:16 +0300)
commit23dcb302ebddd49ebd254c5def3531007c0dcb9e
tree559fb0b58f46f6b67461c6a0eb71ef37b19c69b9
parent73afc20d409652b89cbc2f5e3cf8583d6bf4dcaa
P2P: Relax wpas_p2p_init_go_params() for P2P GO CSA

wpas_p2p_move_go_csa() uses wpas_p2p_init_p2p_params() to select the
frequency to move to. However, it is possible that all the channels are
already used, so the selection of a new frequency would fail, although
the frequency used by the P2P GO should not be considered as used if it
is the only one using it.

To overcome this, allow the frequency selection to continue even if all
the frequencies are in use, but the frequency used by the P2P GO is not
used by any station interface.

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