]> git.ipfire.org Git - thirdparty/hostap.git/commit - wpa_supplicant/config_file.c
P2P: Add support for preferred channel list
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 29 Mar 2012 18:28:34 +0000 (21:28 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 29 Mar 2012 18:28:34 +0000 (21:28 +0300)
commit21d996f775a2131bb0c73d6e18ca9b382f017057
treed32352d0ef626b3cae1b56faa6063daf8160db79
parent564865e1d48ffa057cef1ecaf2eec59ae98e0be1
P2P: Add support for preferred channel list

p2p_pref_chan configuration parameter can now be used to set the
list of preferred channel for P2P GO Negotiation. This will be used
in the priority order if the peer does not support the channel we
are trying to use as the GO (configured operating channel or the
best 2.4 GHz/5 GHz channel) for the case where a forced channel is
not used.

p2p_pref_chan=<op class:channel>,...

For example:
p2p_pref_chan=81:1,81:2,81:3,81:4,81:5,81:6

This would configure 2.4 GHz channels 1-6 as the preferred ones with
channel 1 the most preferred option.

These configuration parameters can be set in wpa_supplicant.conf and
dynamically updated with "wpa_cli set <param> <value>".

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
src/p2p/p2p.c
src/p2p/p2p.h
src/p2p/p2p_go_neg.c
wpa_supplicant/config.c
wpa_supplicant/config.h
wpa_supplicant/config_file.c
wpa_supplicant/p2p_supplicant.c