aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2012-02-27 23:14:35 +0200
committerJouni Malinen <j@w1.fi>2012-02-27 23:14:35 +0200
commit360182ed7c0d1dd6807e6b6d8a84eeb595011cc2 (patch)
tree9a744c685636a2488e4960f96713b5c33ca7f908 /src/drivers
parent78db55b800f0fe48ad5afcb4c7e0c58636a56e39 (diff)
downloadexternal_wpa_supplicant_8_ti-360182ed7c0d1dd6807e6b6d8a84eeb595011cc2.zip
external_wpa_supplicant_8_ti-360182ed7c0d1dd6807e6b6d8a84eeb595011cc2.tar.gz
external_wpa_supplicant_8_ti-360182ed7c0d1dd6807e6b6d8a84eeb595011cc2.tar.bz2
P2P: Advertise immediate availability of WPS credential
Use Device Password ID in WSC IE of Probe Request and Probe Response frames to advertise immediate availability of WPS credentials per P2P specification sections 3.1.2.1.1 (Listen State), 3.1.2.1.2 (Scan Phase), and 3.1.2.1.3 (Find Phase). For now, the Device Password ID is set only for the case where we are active GO Negotiation with a specific peer. In practice, this means that the Probe Response frames during pending GO Negotiation (whenever in Listen state) indicate availability of the credential. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/driver_test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/drivers/driver_test.c b/src/drivers/driver_test.c
index 43b30e9..839bf74 100644
--- a/src/drivers/driver_test.c
+++ b/src/drivers/driver_test.c
@@ -2912,7 +2912,7 @@ static int wpa_driver_test_p2p_set_params(void *priv,
static int test_p2p_scan(void *ctx, enum p2p_scan_type type, int freq,
unsigned int num_req_dev_types,
- const u8 *req_dev_types, const u8 *dev_id)
+ const u8 *req_dev_types, const u8 *dev_id, u16 pw_id)
{
struct wpa_driver_test_data *drv = ctx;
struct wpa_driver_scan_params params;
@@ -2933,8 +2933,8 @@ static int test_p2p_scan(void *ctx, enum p2p_scan_type type, int freq,
#if 0 /* TODO: WPS IE */
wpa_s->wps->dev.p2p = 1;
- wps_ie = wps_build_probe_req_ie(0, &wpa_s->wps->dev, wpa_s->wps->uuid,
- WPS_REQ_ENROLLEE);
+ wps_ie = wps_build_probe_req_ie(pw_id, &wpa_s->wps->dev,
+ wpa_s->wps->uuid, WPS_REQ_ENROLLEE);
#else
wps_ie = wpabuf_alloc(1);
#endif