[PATCH] hostapd: output ignore_broadcast_ssid when using STATUS
Antonio Prcela
antonio.prcela at gmail.com
Tue Nov 21 01:01:15 PST 2023
Adding the ignore_broadcast_ssid config parameter to the STATUS output to determine
the current ignore_broadcast_ssid config of an hostapd access-point.
Currently neither STATUS, GET ignore_broadcast_ssid, nor GET_CONFIG output it.
Useful if the hostapd access point has been created with wpa_ctrl_request()
without using a *.conf file, for example hostapd.conf.
Signed-off-by: Antonio Prcela <antonio.prcela at gmail.com>
Signed-off-by: Antonio Prcela <antonio.prcela at sartura.hr>
From: Antonio Prcela <antonio.prcela at gmail.com>
Date: Tue, 21 Nov 2023 09:39:47 +0100
Subject: [PATCH] hostapd: output ignore_broadcast_ssid when using STATUS
---
src/ap/ctrl_iface_ap.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/ap/ctrl_iface_ap.c b/src/ap/ctrl_iface_ap.c
index a6fcb7ee4..ffe6c6bb2 100644
--- a/src/ap/ctrl_iface_ap.c
+++ b/src/ap/ctrl_iface_ap.c
@@ -801,7 +801,8 @@ int hostapd_ctrl_iface_status(struct hostapd_data *hapd, char *buf,
"ieee80211ax=%d\n"
"ieee80211be=%d\n"
"beacon_int=%u\n"
- "dtim_period=%d\n",
+ "dtim_period=%d\n"
+ "ignore_broadcast_ssid=%d\n",
iface->conf->channel,
iface->conf->enable_edmg,
iface->conf->edmg_channel,
@@ -815,7 +816,8 @@ int hostapd_ctrl_iface_status(struct hostapd_data *hapd, char *buf,
iface->conf->ieee80211be &&
!hapd->conf->disable_11be,
iface->conf->beacon_int,
- hapd->conf->dtim_period);
+ hapd->conf->dtim_period,
+ hapd->conf->ignore_broadcast_ssid);
if (os_snprintf_error(buflen - len, ret))
return len;
len += ret;
--
2.42.1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-hostapd-output-ignore_broadcast_ssid-when-using-STAT.patch
Type: text/x-patch
Size: 1120 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/hostap/attachments/20231121/6ead410c/attachment.bin>
More information about the Hostap
mailing list