aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim1_lin <jim1_lin@asus.com>2012-08-04 20:14:59 +0300
committerArik Nemtsov <arik@wizery.com>2012-08-08 23:48:08 +0300
commit69d01c69ff11a0d03efd8363f1790942c96f94ab (patch)
treefda0322d2298a21bd4abc638eb4979e614bff380
parentf2f1caae16829f02fd000188bd696d5247f97442 (diff)
downloadexternal_wpa_supplicant_8_ti-69d01c69ff11a0d03efd8363f1790942c96f94ab.zip
external_wpa_supplicant_8_ti-69d01c69ff11a0d03efd8363f1790942c96f94ab.tar.gz
external_wpa_supplicant_8_ti-69d01c69ff11a0d03efd8363f1790942c96f94ab.tar.bz2
WPS: Update dev.config_methods in wps_update_config
dev.config_methods was not updated when wps_update_config was called. This could lead to mismatching config methods between Probe Request and M1 packets. Add missing part for it.
-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 38de877..2c4f3d6 100644
--- a/wpa_supplicant/wps_supplicant.c
+++ b/wpa_supplicant/wps_supplicant.c
@@ -1769,6 +1769,7 @@ void wpas_wps_update_config(struct wpa_supplicant *wpa_s)
}
}
wps->config_methods = wps_fix_config_methods(wps->config_methods);
+ wps->dev.config_methods = wps->config_methods;
if (wpa_s->conf->changed_parameters & CFG_CHANGED_DEVICE_TYPE)
os_memcpy(wps->dev.pri_dev_type, wpa_s->conf->device_type,