diff options
author | Max Stepanov <Max.Stepanov@intel.com> | 2015-07-02 13:21:20 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2015-07-26 21:47:19 (GMT) |
commit | e2b7fbf2fb3491ce828da7079244196ce03c3fd4 (patch) | |
tree | fcfff391aa6c23601513fe1396b2a9d86c6e629b /wpa_supplicant/p2p_supplicant_sd.c | |
parent | add59757519aa8222c9c3b2f9ece60137a28b8e7 (diff) | |
download | hostap-e2b7fbf2fb3491ce828da7079244196ce03c3fd4.zip hostap-e2b7fbf2fb3491ce828da7079244196ce03c3fd4.tar.gz hostap-e2b7fbf2fb3491ce828da7079244196ce03c3fd4.tar.bz2 |
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>
Diffstat (limited to 'wpa_supplicant/p2p_supplicant_sd.c')
-rw-r--r-- | wpa_supplicant/p2p_supplicant_sd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/wpa_supplicant/p2p_supplicant_sd.c b/wpa_supplicant/p2p_supplicant_sd.c index f4aa3e0..fc07b07 100644 --- a/wpa_supplicant/p2p_supplicant_sd.c +++ b/wpa_supplicant/p2p_supplicant_sd.c @@ -1185,13 +1185,14 @@ int wpas_p2p_service_del_asp(struct wpa_supplicant *wpa_s, u32 adv_id) int wpas_p2p_service_add_asp(struct wpa_supplicant *wpa_s, int auto_accept, u32 adv_id, const char *adv_str, u8 svc_state, - u16 config_methods, const char *svc_info) + u16 config_methods, const char *svc_info, + const u8 *cpt_priority) { int ret; ret = p2p_service_add_asp(wpa_s->global->p2p, auto_accept, adv_id, adv_str, svc_state, config_methods, - svc_info); + svc_info, cpt_priority); if (ret == 0) wpas_p2p_sd_service_update(wpa_s); return ret; |