]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
hostapd: Add config_id to GET_CONFIG output
authorRaphaël Mélotte <raphael.melotte@mind.be>
Mon, 1 Aug 2022 11:08:23 +0000 (13:08 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 27 Nov 2022 13:42:23 +0000 (15:42 +0200)
Signed-off-by: Raphaël Mélotte <raphael.melotte@mind.be>
hostapd/ctrl_iface.c

index 30c44f1a8ccddb95f5ac4df1eec33fe780ee1dc9..35a899600a780b926685c7b4227c561cdcf1a6da 100644 (file)
@@ -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" :