P2PS: Add channel policy to PD Request
authorIlan Peer <ilan.peer@intel.com>
Thu, 8 Oct 2015 09:35:58 +0000 (12:35 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 11 Oct 2015 18:42:03 +0000 (21:42 +0300)
commitebd32943cb986c4864a384ce4b9abf5a7d99bced
treee855d98ba17250242260d70eb2a69847bf7d36a2
parent4acd5ac67b76d683a944bc03891c52759546841d
P2PS: Add channel policy to PD Request

Add operating channel selection and channel list processing similar to
that done when building GO Negotiation Request, i.e., consider the
currently used channels, configured channels, etc.

P2PS introduces a flow where a responder needs to provide channel data
without being previously aware of the current constraints, i.e., the
channels currently in use by other interfaces. To handle this, extend
the get_group_capability() callback to also handle channel selection
aspects of group capabilities.

In case there is an active P2P GO that is going to be used for the P2PS
PD, force its current operating frequency in the PD attributes.

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