aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/config_winreg.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2009-12-21 13:59:25 (GMT)
committerJouni Malinen <j@w1.fi>2009-12-21 13:59:25 (GMT)
commitc0e4dd9eeb96fa39cc8bd6151fbf5a7a9cc46a97 (patch)
treed376612ff9471a2b92ec23ef32a710d22a4435ca /wpa_supplicant/config_winreg.c
parentb64576fcf511dc7f705708e6640bbef76ead4b7b (diff)
downloadhostap-c0e4dd9eeb96fa39cc8bd6151fbf5a7a9cc46a97.zip
hostap-c0e4dd9eeb96fa39cc8bd6151fbf5a7a9cc46a97.tar.gz
hostap-c0e4dd9eeb96fa39cc8bd6151fbf5a7a9cc46a97.tar.bz2
WPS: Make Config Methods configurable for wpa_supplicant
This adds config_methods configuration option for wpa_supplicant following the design used in hostapd. In addition, the string is now parsed in common code from src/wps/wps_common.c and the list of configurable methods include all the defined methods from WPS 1.0h spec.
Diffstat (limited to 'wpa_supplicant/config_winreg.c')
-rw-r--r--wpa_supplicant/config_winreg.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/wpa_supplicant/config_winreg.c b/wpa_supplicant/config_winreg.c
index 456d417..6bd003b 100644
--- a/wpa_supplicant/config_winreg.c
+++ b/wpa_supplicant/config_winreg.c
@@ -249,6 +249,8 @@ static int wpa_config_read_global(struct wpa_config *config, HKEY hk)
hk, TEXT("serial_number"));
config->device_type = wpa_config_read_reg_string(
hk, TEXT("device_type"));
+ config->config_methods = wpa_config_read_reg_string(
+ hk, TEXT("config_methods"));
if (wpa_config_read_global_os_version(config, hk))
errors++;
wpa_config_read_reg_dword(hk, TEXT("wps_cred_processing"),
@@ -569,6 +571,8 @@ static int wpa_config_write_global(struct wpa_config *config, HKEY hk)
wpa_config_write_reg_string(hk, "serial_number",
config->serial_number);
wpa_config_write_reg_string(hk, "device_type", config->device_type);
+ wpa_config_write_reg_string(hk, "config_methods",
+ config->config_methods);
if (WPA_GET_BE32(config->os_version)) {
char vbuf[10];
os_snprintf(vbuf, sizeof(vbuf), "%08x",