From: Raphaël Mélotte Date: Mon, 1 Aug 2022 11:08:23 +0000 (+0200) Subject: hostapd: Add config_id to GET_CONFIG output X-Git-Tag: hostap_2_11~1466 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc2b88b253fb584305d41bbbf3713b954c04f0bf;p=thirdparty%2Fhostap.git hostapd: Add config_id to GET_CONFIG output Signed-off-by: Raphaël Mélotte --- diff --git a/hostapd/ctrl_iface.c b/hostapd/ctrl_iface.c index 30c44f1a8..35a899600 100644 --- a/hostapd/ctrl_iface.c +++ b/hostapd/ctrl_iface.c @@ -983,6 +983,14 @@ static int hostapd_ctrl_iface_get_config(struct hostapd_data *hapd, return pos - buf; 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 ret = os_snprintf(pos, end - pos, "wps_state=%s\n", hapd->conf->wps_state == 0 ? "disabled" :