P2PS: Add CPT parameter to P2P_SERVICE_ADD asp command
authorMax Stepanov <Max.Stepanov@intel.com>
Thu, 2 Jul 2015 13:21:20 +0000 (16:21 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 26 Jul 2015 21:47:19 +0000 (00:47 +0300)
commite2b7fbf2fb3491ce828da7079244196ce03c3fd4
treefcfff391aa6c23601513fe1396b2a9d86c6e629b
parentadd59757519aa8222c9c3b2f9ece60137a28b8e7
P2PS: Add CPT parameter to P2P_SERVICE_ADD asp command

Add Coordination Transport Protocol parameter to P2P_SERVICE_ADD
asp command.

Extend p2ps_advertisement structure to contain CPT priorities
and a supported CPT bitmask.

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

where <cpt> is a name of the Coordination Protocol Transport.
This implementation supports two CPT names: UDP and MAC.
The order of specified CPTs defines their priorities where
the first one has the highest priority.

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/common/ieee802_11_defs.h
src/p2p/p2p.c
src/p2p/p2p.h
wpa_supplicant/ctrl_iface.c
wpa_supplicant/p2p_supplicant.h
wpa_supplicant/p2p_supplicant_sd.c