jim1_lin | 26 Jun 2012 05:04
Favicon

[PATCH] WPS : update dev.config_methods in wps_update_config.

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
 <at>  <at>  -1760,6 +1760,7  <at>  <at>  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
Jouni Malinen | 4 Aug 2012 19:16
Picon

Re: [PATCH] WPS : update dev.config_methods in wps_update_config.

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.

--

-- 
Jouni Malinen                                            PGP id EFC895FA

Gmane