From: Jouni Malinen Date: Thu, 27 Nov 2008 19:23:43 +0000 (+0200) Subject: WPS: Update supplicant configuration when acting as an external Registrar X-Git-Tag: hostap_0_6_7~189 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9d695f3dd0bde7289ac583eee535986b7ffa0e2b;p=thirdparty%2Fhostap.git WPS: Update supplicant configuration when acting as an external Registrar This allows the network to be used after the Registrar configuration step. The local WPS network is replaced with a new network block similarly to the case of acting as an Enrollee. --- diff --git a/src/wps/wps_registrar.c b/src/wps/wps_registrar.c index be5b73fd0..d1eba8271 100644 --- a/src/wps/wps_registrar.c +++ b/src/wps/wps_registrar.c @@ -1983,6 +1983,13 @@ static enum wps_process_res wps_process_wsc_done(struct wps_data *wps, wps->new_psk = NULL; } + if (!wps->wps->ap) { + wpa_printf(MSG_DEBUG, "WPS: Update local configuration based " + "on the modified AP configuration"); + if (wps->wps_cred_cb) + wps->wps_cred_cb(wps->cb_ctx, &wps->cred); + } + if (wps->new_psk) { if (wps_cb_new_psk(wps->registrar, wps->mac_addr_e, wps->new_psk, wps->new_psk_len)) {