P2PS: Add CPT parameter to P2PS_PROVISION and P2PS_PROVISION_RESP
authorMax Stepanov <Max.Stepanov@intel.com>
Thu, 2 Jul 2015 13:21:21 +0000 (16:21 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 26 Jul 2015 21:47:19 +0000 (00:47 +0300)
commit0670de74ae1b842712b09f48af2e33547d2f34a2
tree6735aac7454c375d8cf82a59f0729c497a7c8f15
parente2b7fbf2fb3491ce828da7079244196ce03c3fd4
P2PS: Add CPT parameter to P2PS_PROVISION and P2PS_PROVISION_RESP

Add a parameter allowing to specify a value of Coordination
Protocol Transport to P2PS_PROVISION and P2PS_PROVISION_RESP commands.

Extend the p2ps_provision structure to contain cpt_priority and
cpt_mask properties and initialize them on a P2PS PD request command.

The format of the parameter:
    cpt=<cpt>[:cpt]

where <cpt> is CPT name e.g. UDP or MAC. The CPT names are listed
according to their preferences to be used for a specific P2PS session.

Signed-off-by: Max Stepanov <Max.Stepanov@intel.com>
Reviewed-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
Reviewed-by: Ilan Peer <ilan.peer@intel.com>
src/p2p/p2p.h
wpa_supplicant/ctrl_iface.c