Patchwork WPS : update dev.config_methods in wps_update_config.

login
register
mail settings
Submitter jim1_lin
Date June 26, 2012, 3:04 a.m.
Message ID <20120731173453.2C9E138360@ushik.mtv.corp.google.com>
Download mbox | patch
Permalink /patch/174295/
State Accepted
Commit c8b245b6a413c427e94486221489eebaad719739
Headers show

Comments

jim1_lin - June 26, 2012, 3:04 a.m.
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(-)
Jouni Malinen - Aug. 4, 2012, 5:16 p.m.
On Tue, Jun 26, 2012 at 11:04:38AM +0800, jim1_lin wrote:
> 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.

Thanks, applied.

Patch

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,