From: Shan Palanisamy Date: Mon, 18 Jun 2012 15:11:54 +0000 (+0300) Subject: Support no-config-file in WPS AP settings updates X-Git-Tag: hostap_2_0~336 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78c4ef21846ad44b0102e747b87b98cbb80e2592;p=thirdparty%2Fhostap.git Support no-config-file in WPS AP settings updates This is required for WPS open mode with control interface -based configuration. Signed-hostap: Jouni Malinen --- diff --git a/src/ap/wps_hostapd.c b/src/ap/wps_hostapd.c index 74b637e77..5e44c72c5 100644 --- a/src/ap/wps_hostapd.c +++ b/src/ap/wps_hostapd.c @@ -345,6 +345,8 @@ static int hapd_wps_cred_cb(struct hostapd_data *hapd, void *ctx) } hapd->wps->wps_state = WPS_STATE_CONFIGURED; + if (hapd->iface->config_fname == NULL) + return 0; len = os_strlen(hapd->iface->config_fname) + 5; tmp_fname = os_malloc(len); if (tmp_fname == NULL)