From c8b245b6a413c427e94486221489eebaad719739 Mon Sep 17 00:00:00 2001 From: jim1_lin Date: Sat, 4 Aug 2012 20:14:59 +0300 Subject: [PATCH] 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. --- wpa_supplicant/wps_supplicant.c | 1 + 1 file changed, 1 insertion(+) diff --git a/wpa_supplicant/wps_supplicant.c b/wpa_supplicant/wps_supplicant.c index 5dcfd2ab9..87cfa84ee 100644 --- a/wpa_supplicant/wps_supplicant.c +++ b/wpa_supplicant/wps_supplicant.c @@ -1761,6 +1761,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,