From: Jouni Malinen Date: Sat, 24 Jan 2026 17:46:41 +0000 (+0200) Subject: Additional per-link connection information in control interface MLO_STATUS X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5358dacdab486c40f73e6b6434f3e72fd031503c;p=thirdparty%2Fhostap.git Additional per-link connection information in control interface MLO_STATUS 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 --- diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c index 729e16ac1..4426d45f6 100644 --- a/wpa_supplicant/ctrl_iface.c +++ b/wpa_supplicant/ctrl_iface.c @@ -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;