aboutsummaryrefslogtreecommitdiffstats
path: root/src/eap_peer
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2008-11-27 18:32:39 (GMT)
committerJouni Malinen <j@w1.fi>2008-11-27 18:32:39 (GMT)
commit96a2ed9f506fc8d9064e14f40f3bba7603fc455f (patch)
treeaf93216b948d1f4e26ecdbecbbdb9a8fc7fe645b /src/eap_peer
parentfced73755fae986b14f74038eb0151ffdb4b6094 (diff)
downloadhostap-06-96a2ed9f506fc8d9064e14f40f3bba7603fc455f.zip
hostap-06-96a2ed9f506fc8d9064e14f40f3bba7603fc455f.tar.gz
hostap-06-96a2ed9f506fc8d9064e14f40f3bba7603fc455f.tar.bz2
WPS: Process old AP Settings in M7 when registering as external Registrar
The old (i.e., currently used) AP Settings are processed. For now, they are copied as-is into M8 as new AP Settings to avoid changing configuration. This should be changed to allow external programs (e.g., GUI) to fetch the old AP settings over ctrl_iface and then allow settings to be changed before sending M8 with the new settings.
Diffstat (limited to 'src/eap_peer')
-rw-r--r--src/eap_peer/eap_wsc.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/eap_peer/eap_wsc.c b/src/eap_peer/eap_wsc.c
index 19b946a..f6e2400 100644
--- a/src/eap_peer/eap_wsc.c
+++ b/src/eap_peer/eap_wsc.c
@@ -142,11 +142,8 @@ static void * eap_wsc_init(struct eap_sm *sm)
wps->cb_ctx = data;
- /* TODO: configure.. */
- wps->auth_types = WPS_AUTH_WPA2PSK;
- wps->encr_types = WPS_ENCR_AES;
- os_memcpy(wps->ssid, "test", 4);
- wps->ssid_len = 4;
+ wps->auth_types = WPS_AUTH_WPA2PSK | WPS_AUTH_WPAPSK;
+ wps->encr_types = WPS_ENCR_AES | WPS_ENCR_TKIP;
os_memset(&rcfg, 0, sizeof(rcfg));
rcfg.new_psk_cb = eap_wsc_new_psk_cb;