diff options
author | Jean-Michel Bachot <jean-michelx.bachot@linux.intel.com> | 2011-03-17 11:16:23 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2011-03-17 11:16:23 +0200 |
commit | 8e8c0df158b6ba7106d9f7e731b279fd2e7e418d (patch) | |
tree | 7a164b1ca82731458787a993ccf27e82614544a1 /src/p2p/p2p_build.c | |
parent | a9e86bfb74e1ce54f5ed350fd14f16f1e5885ca6 (diff) | |
download | external_wpa_supplicant_8_ti-8e8c0df158b6ba7106d9f7e731b279fd2e7e418d.zip external_wpa_supplicant_8_ti-8e8c0df158b6ba7106d9f7e731b279fd2e7e418d.tar.gz external_wpa_supplicant_8_ti-8e8c0df158b6ba7106d9f7e731b279fd2e7e418d.tar.bz2 |
P2P: Add Secondary Device Type list in Probe Response frames
Add Secondary Device Type List attribute in WSC IE for P2P
Probe Response frames if one or more secondary device types
are configured.
Signed-off-by: Jean-Michel Bachot <jean-michelx.bachot@linux.intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'src/p2p/p2p_build.c')
-rw-r--r-- | src/p2p/p2p_build.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/p2p/p2p_build.c b/src/p2p/p2p_build.c index 791809e..c582a31 100644 --- a/src/p2p/p2p_build.c +++ b/src/p2p/p2p_build.c @@ -385,5 +385,14 @@ void p2p_build_wps_ie(struct p2p_data *p2p, struct wpabuf *buf, u16 pw_id, wps_build_wfa_ext(buf, 0, NULL, 0); + if (all_attr && p2p->cfg->num_sec_dev_types) { + wpabuf_put_be16(buf, ATTR_SECONDARY_DEV_TYPE_LIST); + wpabuf_put_be16(buf, WPS_DEV_TYPE_LEN * + p2p->cfg->num_sec_dev_types); + wpabuf_put_data(buf, p2p->cfg->sec_dev_type, + WPS_DEV_TYPE_LEN * + p2p->cfg->num_sec_dev_types); + } + p2p_buf_update_ie_hdr(buf, len); } |