aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wpa_supplicant.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2008-11-29 11:38:03 (GMT)
committerJouni Malinen <j@w1.fi>2008-11-29 11:38:03 (GMT)
commitb01c18a8ef0c26e4390c05defc29123e82ca3b0a (patch)
treee0296d2c2fa5d4e131b47e16a399a4320fefc60a /wpa_supplicant/wpa_supplicant.c
parentb8a8c299c8ec0f24ec387794c104aefbef68caf3 (diff)
downloadhostap-06-b01c18a8ef0c26e4390c05defc29123e82ca3b0a.zip
hostap-06-b01c18a8ef0c26e4390c05defc29123e82ca3b0a.tar.gz
hostap-06-b01c18a8ef0c26e4390c05defc29123e82ca3b0a.tar.bz2
WPS: Set Request Type properly into WPS IE in ProbeReq/AssocReq
Diffstat (limited to 'wpa_supplicant/wpa_supplicant.c')
-rw-r--r--wpa_supplicant/wpa_supplicant.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c
index ffe6729..8494412 100644
--- a/wpa_supplicant/wpa_supplicant.c
+++ b/wpa_supplicant/wpa_supplicant.c
@@ -1012,7 +1012,8 @@ void wpa_supplicant_associate(struct wpa_supplicant *wpa_s,
}
#ifdef CONFIG_WPS
} else if (ssid->key_mgmt & WPA_KEY_MGMT_WPS) {
- struct wpabuf *wps_ie = wps_build_assoc_req_ie();
+ struct wpabuf *wps_ie;
+ wps_ie = wps_build_assoc_req_ie(wpas_wps_get_req_type(ssid));
if (wps_ie && wpabuf_len(wps_ie) <= sizeof(wpa_ie)) {
wpa_ie_len = wpabuf_len(wps_ie);
os_memcpy(wpa_ie, wpabuf_head(wps_ie), wpa_ie_len);