]> git.ipfire.org Git - thirdparty/hostap.git/commit
P2P: Allow the avoid channels for P2P discovery/negotiation
authorPurushottam Kushwaha <pkushwah@codeaurora.org>
Fri, 28 Dec 2018 12:42:00 +0000 (18:12 +0530)
committerJouni Malinen <j@w1.fi>
Wed, 30 Jan 2019 10:15:19 +0000 (12:15 +0200)
commit59fa205388aa1aa844c707e46e967e39cbdd0aba
tree394e6e1766eab655255ab3af2a14c8dd5f422a05
parent0c1e29fd302d4457a293eed22604c27f57356ed3
P2P: Allow the avoid channels for P2P discovery/negotiation

The avoid channels are notified through
QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY allow minimal traffic, so
enhance the P2P behavior accordingly by considering these avoid
frequencies for P2P discovery/negotiation as long as they are not in
disallowed frequencies list.

Additionally, do not return failure when none of social channels are
available as operation channel, rather, mark the op_channel/op_reg_class
to 0 as this would anyway get selected during the group formation in
p2p_prepare_channel.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/p2p/p2p.c
src/p2p/p2p.h
src/p2p/p2p_i.h
src/p2p/p2p_invitation.c
src/p2p/p2p_utils.c
wpa_supplicant/p2p_supplicant.c