aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndriy Tkachuk <andriy.tkachuk@inobject.com>2009-02-06 12:03:34 (GMT)
committerJouni Malinen <j@w1.fi>2009-02-08 10:36:08 (GMT)
commit8aab25828246f31411377fc91b2538d73e0ea1ce (patch)
treec3a834694a07acc7788d372a0b343bc51fccca92 /src
parentb112845c7f511fd073d962fa2eaee42e7759adde (diff)
downloadhostap-06-8aab25828246f31411377fc91b2538d73e0ea1ce.zip
hostap-06-8aab25828246f31411377fc91b2538d73e0ea1ce.tar.gz
hostap-06-8aab25828246f31411377fc91b2538d73e0ea1ce.tar.bz2
WPS: Set correct Device Password ID in M2
It looks like we don't set correspondent Device Password ID attribute in M2 message during PBC registration. Without it TG185n STA was not able to connect to our AP in PBC mode. Attached patch fixes this. (cherry picked from commit 25e31cccbe55c2b87d7496326f834e0d0cc0b23d)
Diffstat (limited to 'src')
-rw-r--r--src/wps/wps_registrar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wps/wps_registrar.c b/src/wps/wps_registrar.c
index 2490682..0fcc9ac 100644
--- a/src/wps/wps_registrar.c
+++ b/src/wps/wps_registrar.c
@@ -1117,7 +1117,7 @@ static struct wpabuf * wps_build_m2(struct wps_data *wps)
wps_build_rf_bands(&wps->wps->dev, msg) ||
wps_build_assoc_state(wps, msg) ||
wps_build_config_error(msg, WPS_CFG_NO_ERROR) ||
- wps_build_dev_password_id(msg, DEV_PW_DEFAULT) ||
+ wps_build_dev_password_id(msg, wps->dev_pw_id) ||
wps_build_os_version(&wps->wps->dev, msg) ||
wps_build_authenticator(wps, msg)) {
wpabuf_free(msg);