hostapd: Add config_id to GET_CONFIG output

Signed-off-by: Raphaël Mélotte <raphael.melotte@mind.be>
This commit is contained in:
Raphaël Mélotte 2022-08-01 13:08:23 +02:00 committed by Jouni Malinen
parent b37c3fbad4
commit bc2b88b253

View file

@ -983,6 +983,14 @@ static int hostapd_ctrl_iface_get_config(struct hostapd_data *hapd,
return pos - buf; return pos - buf;
pos += ret; pos += ret;
if ((hapd->conf->config_id)) {
ret = os_snprintf(pos, end - pos, "config_id=%s\n",
hapd->conf->config_id);
if (os_snprintf_error(end - pos, ret))
return pos - buf;
pos += ret;
}
#ifdef CONFIG_WPS #ifdef CONFIG_WPS
ret = os_snprintf(pos, end - pos, "wps_state=%s\n", ret = os_snprintf(pos, end - pos, "wps_state=%s\n",
hapd->conf->wps_state == 0 ? "disabled" : hapd->conf->wps_state == 0 ? "disabled" :