WPS: Update dev.config_methods in wps_update_config
authorjim1_lin <jim1_lin@asus.com>
Sat, 4 Aug 2012 17:14:59 +0000 (20:14 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 4 Aug 2012 17:14:59 +0000 (20:14 +0300)
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

index 5dcfd2a..87cfa84 100644 (file)
@@ -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,