[PATCH] hostapd: output ignore_broadcast_ssid when using STATUS

Antonio Prcela antonio.prcela at gmail.com
Tue Nov 21 01:05:04 PST 2023


BTW: I've already posted very similar patches in the past. Should I go trough
all of the parameters of an AP and add the missing ones to the STATUS output?
Currently I only add those that get noticed are missing.


On 21. 11. 2023. 10:01, Antonio Prcela wrote:
> 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;



More information about the Hostap mailing list