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.
This commit is contained in:
jim1_lin 2012-08-04 20:14:59 +03:00 committed by Jouni Malinen
parent 21270bb4b3
commit c8b245b6a4
1 changed files with 1 additions and 0 deletions

View 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,