[PATCH] WPS : update dev.config_methods in wps_update_config.
jim1_lin
jim1_lin
Tue Jul 31 10:34:59 PDT 2012
dev.config_methods was not updated when wps_update_config was called.
Led to mismatch config methods between probe_request and M1 packets.
Add missing part for it.
Change-Id: I02bd016a35726c7cf05cd71840082edd677b04b8
---
wpa_supplicant/wps_supplicant.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/wpa_supplicant/wps_supplicant.c b/wpa_supplicant/wps_supplicant.c
index 7356d1a..0873b1a 100644
--- a/wpa_supplicant/wps_supplicant.c
+++ b/wpa_supplicant/wps_supplicant.c
@@ -1760,6 +1760,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,
--
1.7.7.3
More information about the Hostap
mailing list