[PATCH] hostapd: output ignore_broadcast_ssid when using STATUS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
Signed-off-by: Antonio Prcela <antonio.prcela@xxxxxxxxxx>


From: Antonio Prcela <antonio.prcela@xxxxxxxxx>
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
From: Antonio Prcela <antonio.prcela@xxxxxxxxx>
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

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap

[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux