From: Antonio Prcela Date: Tue, 13 Jun 2023 14:20:29 +0000 (+0200) Subject: hostapd: Output BSS Color (he_bss_color) when using STATUS X-Git-Tag: hostap_2_11~908 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c84709c59d58fe3950c974ee6380a45cde50c7ea;p=thirdparty%2Fhostap.git 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 --- 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 */