[PATCH] hostapd: output ap_isolate for each bss when using STATUS

Antonio Prcela antonio.prcela at gmail.com
Tue Nov 7 02:52:19 PST 2023


updated .patch file

On 29. 10. 2023. 12:56, Antonio Prcela wrote:
> Adding the ap_isolate config parameter to the STATUS output to determine
> the current ap_isolate config of an hostapd access-point. Currently neither STATUS,
> GET ap_isolate, 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>
> 
> ---
>  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 c7504ad2b..034d791aa 100644
> --- a/src/ap/ctrl_iface_ap.c
> +++ b/src/ap/ctrl_iface_ap.c
> @@ -928,13 +928,15 @@ int hostapd_ctrl_iface_status(struct hostapd_data *hapd, char *buf,
>  				  "bss[%d]=%s\n"
>  				  "bssid[%d]=" MACSTR "\n"
>  				  "ssid[%d]=%s\n"
> -				  "num_sta[%d]=%d\n",
> +				  "num_sta[%d]=%d\n"
> +				  "ap_isolate[%d]=%d\n",
>  				  (int) i, bss->conf->iface,
>  				  (int) i, MAC2STR(bss->own_addr),
>  				  (int) i,
>  				  wpa_ssid_txt(bss->conf->ssid.ssid,
>  					       bss->conf->ssid.ssid_len),
> -				  (int) i, bss->num_sta);
> +				  (int) i, bss->num_sta,
> +				  (int) i, bss->conf->isolate);
>  		if (os_snprintf_error(buflen - len, ret))
>  			return len;
>  		len += ret;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-hostapd-output-ap_isolate-for-each-bss-when-using-ST.patch
Type: text/x-patch
Size: 1530 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/hostap/attachments/20231107/6ef26924/attachment-0001.bin>


More information about the Hostap mailing list