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 <jouni@qca.qualcomm.com>
This commit is contained in:
parent
268a499c08
commit
78c4ef2184
1 changed files with 2 additions and 0 deletions
|
@ -345,6 +345,8 @@ static int hapd_wps_cred_cb(struct hostapd_data *hapd, void *ctx)
|
||||||
}
|
}
|
||||||
hapd->wps->wps_state = WPS_STATE_CONFIGURED;
|
hapd->wps->wps_state = WPS_STATE_CONFIGURED;
|
||||||
|
|
||||||
|
if (hapd->iface->config_fname == NULL)
|
||||||
|
return 0;
|
||||||
len = os_strlen(hapd->iface->config_fname) + 5;
|
len = os_strlen(hapd->iface->config_fname) + 5;
|
||||||
tmp_fname = os_malloc(len);
|
tmp_fname = os_malloc(len);
|
||||||
if (tmp_fname == NULL)
|
if (tmp_fname == NULL)
|
||||||
|
|
Loading…
Reference in a new issue