]> git.ipfire.org Git - thirdparty/hostap.git/commit
P2P: Do not omit known operating channel preference from GO Neg Resp
authorAhmad Kholaif <akholaif@qca.qualcomm.com>
Fri, 24 Jul 2015 08:56:48 +0000 (01:56 -0700)
committerJouni Malinen <j@w1.fi>
Thu, 30 Jul 2015 19:13:48 +0000 (22:13 +0300)
commit0ef54bd30e3d6d66fe060098c45c61dfaf87e00e
treeb621cc5ae1f1622491b051bf53b6e4054c65c1d2
parentdef8f7035d0a89bd7f5799b4bbf9113e38437d19
P2P: Do not omit known operating channel preference from GO Neg Resp

Add an extra condition to omit operating channel preference when
building GO Negotiation Response. If the local device supports the
preferred frequency list extension, then when sending a GO Negotiation
Response frame, advertise the preferred operating channel unless local
device is assuming the P2P Client role and has an empty preferred
frequency list, in which case local device can omit its preference for
the operating channel.

This change helps make use of the preferred frequency list and the
calculated best channel for both negotiating parties of the P2P
connection.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/p2p/p2p_go_neg.c