]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Additional per-link connection information in control interface MLO_STATUS
authorJouni Malinen <jouni.malinen@oss.qualcomm.com>
Sat, 24 Jan 2026 17:46:41 +0000 (19:46 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 24 Jan 2026 17:46:41 +0000 (19:46 +0200)
Add the maximum NSS and channel band information for the current
connection into the output of the MLO_STATUS command.

Signed-off-by: Jouni Malinen <jouni.malinen@oss.qualcomm.com>
wpa_supplicant/ctrl_iface.c

index 729e16ac144647eeb42407786f18077941ab2909..4426d45f69ddd647796c93c3abfa63b2523eb0ae 100644 (file)
@@ -12620,6 +12620,21 @@ static int wpas_ctrl_iface_mlo_status(struct wpa_supplicant *wpa_s,
                if (os_snprintf_error(end - pos, ret))
                        return pos - buf;
                pos += ret;
+
+               if (wpa_s->connection_set) {
+                       ret = os_snprintf(
+                               pos, end - pos,
+                               "max_nss_rx=%u\n"
+                               "max_nss_tx=%u\n"
+                               "channel_width=%u\n",
+                               wpa_s->links[i].max_nss_rx,
+                               wpa_s->links[i].max_nss_tx,
+                               channel_width_to_int(
+                                       wpa_s->links[i].channel_bandwidth));
+                       if (os_snprintf_error(end - pos, ret))
+                               return pos - buf;
+                       pos += ret;
+               }
        }
 
        return pos - buf;