[PATCH] hostapd: output BSS Color (he_bss_color) when using STATUS
Antonio Prcela
antonio.prcela at gmail.com
Tue Jun 13 07:29:14 PDT 2023
>From b68f1f04819236d8135d0ac5897bb4b413ebdec2 Mon Sep 17 00:00:00 2001
From: Antonio Prcela <antonio.prcela at gmail.com>
Date: Tue, 13 Jun 2023 16:20:29 +0200
Subject: [PATCH] hostapd: output BSS Color (he_bss_color) when using STATUS
WNM event only reports BSS color if a stations is associated with access-point.
This prints it always if BSS color set and if AX radio standard.
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 | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/ap/ctrl_iface_ap.c b/src/ap/ctrl_iface_ap.c
index 6934a732a..630f00919 100644
--- a/src/ap/ctrl_iface_ap.c
+++ b/src/ap/ctrl_iface_ap.c
@@ -845,6 +845,15 @@ 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.41.0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-hostapd-output-BSS-Color-he_bss_color-when-using-STA.patch
Type: text/x-patch
Size: 1209 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/hostap/attachments/20230613/73e6b71a/attachment.bin>
More information about the Hostap
mailing list