From c84709c59d58fe3950c974ee6380a45cde50c7ea Mon Sep 17 00:00:00 2001 From: Antonio Prcela Date: Tue, 13 Jun 2023 16:20:29 +0200 Subject: [PATCH] hostapd: Output BSS Color (he_bss_color) when using STATUS Make the current HE BSS color available in STATUS command output since this can change dynamically based on color collisions. Signed-off-by: Antonio Prcela Signed-off-by: Antonio Prcela --- src/ap/ctrl_iface_ap.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/ap/ctrl_iface_ap.c b/src/ap/ctrl_iface_ap.c index c7504ad2b..a6fcb7ee4 100644 --- a/src/ap/ctrl_iface_ap.c +++ b/src/ap/ctrl_iface_ap.c @@ -845,6 +845,16 @@ int hostapd_ctrl_iface_status(struct hostapd_data *hapd, char *buf, if (os_snprintf_error(buflen - len, ret)) return len; len += ret; + + if (!iconf->he_op.he_bss_color_disabled && + iconf->he_op.he_bss_color) { + ret = os_snprintf(buf + len, buflen - len, + "he_bss_color=%d\n", + iconf->he_op.he_bss_color); + if (os_snprintf_error(buflen - len, ret)) + return len; + len += ret; + } } #endif /* CONFIG_IEEE80211AX */ -- 2.47.2