P2P: Use neg_freq when re-establish persistent group as GC
authorMikael Kanstrup <mikael.kanstrup@sonymobile.com>
Tue, 21 Oct 2014 10:08:30 +0000 (12:08 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 25 Oct 2014 15:52:22 +0000 (18:52 +0300)
commit431dd8bb118dacfb19320c08d5a8d829277dbc12
tree644c92f6ac7e5ee0a3bc1a4519d217d4c113ca73
parent01e2231fdc4fbec61fbc382238e3606a1d2826e4
P2P: Use neg_freq when re-establish persistent group as GC

When GC receives invitation response and tries to re-establish
connection to a persistent group channels from passive list should
be allowed. A missing check for operation mode triggered reselection
of operating channel from active channels only to happen and thus fail
the connect attempt.

Add a check for operation mode and if GC instead use negotiated
frequency (i.e. GO operating channel from invitation response).

Signed-off-by: Mikael Kanstrup <mikael.kanstrup@sonymobile.com>
wpa_supplicant/p2p_supplicant.c