P2PS: Process channels in PD Request
authorIlan Peer <ilan.peer@intel.com>
Thu, 8 Oct 2015 09:35:59 +0000 (12:35 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 11 Oct 2015 18:42:03 +0000 (21:42 +0300)
commit23eef57018a72635e2545900d40a21360b566ed1
treec35f375e78ce22e58aa4a5986a262bba56048df6
parentebd32943cb986c4864a384ce4b9abf5a7d99bced
P2PS: Process channels in PD Request

In case the P2PS PD Request includes the P2P Channel List attribute,
update the peer device supported channels and check if we have common
channels with the peer that can be used for the connection establishment
based on the connection capabilities:

1. In case of P2PS PD Request with no common channels, defer
   the flow unless auto accept equals true and the connection
   capabilities equals NEW (in which case the channels would be
   negotiated in the GO Negotiation).

2. In case of Follow up P2PS PD Request with no common channels,
   reject the request unless the connection capability is NEW.

In addition, in case of a successful P2PS PD, save the device
operating frequency (so it can be later used for join flow, etc.).

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