[PATCH 30/50] AP: Print MLD info in STATUS command
Andrei Otcheretianski
andrei.otcheretianski at intel.com
Wed Feb 15 15:08:44 PST 2023
Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski at intel.com>
---
src/ap/ctrl_iface_ap.c | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/src/ap/ctrl_iface_ap.c b/src/ap/ctrl_iface_ap.c
index 168e5f507b..bd2716e4e5 100644
--- a/src/ap/ctrl_iface_ap.c
+++ b/src/ap/ctrl_iface_ap.c
@@ -899,6 +899,21 @@ int hostapd_ctrl_iface_status(struct hostapd_data *hapd, char *buf,
if (os_snprintf_error(buflen - len, ret))
return len;
len += ret;
+#ifdef CONFIG_IEEE80211BE
+ if (bss->conf->mld_ap) {
+ ret = os_snprintf(buf + len, buflen - len,
+ "mld_addr[%d]=" MACSTR "\n"
+ "mld_id[%d]=%d\n"
+ "mld_link_id[%d]=%d\n",
+ (int)i, MAC2STR(bss->mld_addr),
+ (int)i, bss->conf->mld_id,
+ (int)i, bss->conf->mld_link_id);
+ if (os_snprintf_error(buflen - len, ret))
+ return len;
+ len += ret;
+ }
+#endif /* CONFIG_IEEE80211BE */
+
}
if (hapd->conf->chan_util_avg_period) {
--
2.38.1
More information about the Hostap
mailing list