aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wps_supplicant.c
diff options
context:
space:
mode:
authorBharat Chakravarty <bchakrav@qca.qualcomm.com>2011-09-01 12:24:45 (GMT)
committerJouni Malinen <j@w1.fi>2011-09-01 12:24:45 (GMT)
commita9355fac5fe76b48d11bc57787f12d74370ed64a (patch)
treebfd1b97993261cfc2de2454f2c610554d4fc673e /wpa_supplicant/wps_supplicant.c
parent6fb6d842bba34ce9579ca2f5f9406e00254030f2 (diff)
downloadhostap-a9355fac5fe76b48d11bc57787f12d74370ed64a.zip
hostap-a9355fac5fe76b48d11bc57787f12d74370ed64a.tar.gz
hostap-a9355fac5fe76b48d11bc57787f12d74370ed64a.tar.bz2
WPS: Set Probe Request config methods based on configuration
Instead of hardcoding the Config Methods attribute value in Probe Request frames, set this based on the configured parameter config_methods to allow correct set of methods to be advertised.
Diffstat (limited to 'wpa_supplicant/wps_supplicant.c')
-rw-r--r--wpa_supplicant/wps_supplicant.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wpa_supplicant/wps_supplicant.c b/wpa_supplicant/wps_supplicant.c
index 222c8fc..3400365 100644
--- a/wpa_supplicant/wps_supplicant.c
+++ b/wpa_supplicant/wps_supplicant.c
@@ -1142,6 +1142,7 @@ int wpas_wps_init(struct wpa_supplicant *wpa_s)
return -1;
}
wps->config_methods = wps_fix_config_methods(wps->config_methods);
+ wps->dev.config_methods = wps->config_methods;
os_memcpy(wps->dev.pri_dev_type, wpa_s->conf->device_type,
WPS_DEV_TYPE_LEN);