]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
AP: Print MLD info in STATUS command
authorAndrei Otcheretianski <andrei.otcheretianski@intel.com>
Mon, 22 May 2023 19:33:53 +0000 (22:33 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 12 Jun 2023 13:26:56 +0000 (16:26 +0300)
Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
src/ap/ctrl_iface_ap.c

index 6934a732a5d6d0ada2ba081b63c6f8a82a94725f..c7504ad2b419c9db44875264b7897edc0bdc0237 100644 (file)
@@ -938,6 +938,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->mld_link_id);
+                       if (os_snprintf_error(buflen - len, ret))
+                               return len;
+                       len += ret;
+               }
+#endif /* CONFIG_IEEE80211BE */
        }
 
        if (hapd->conf->chan_util_avg_period) {