]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Additional connection information in control interface STATUS command
authorJouni Malinen <jouni.malinen@oss.qualcomm.com>
Mon, 8 Dec 2025 11:12:24 +0000 (13:12 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 9 Dec 2025 14:04:07 +0000 (16:04 +0200)
Add the maximum NSS and channel band information for the current
connection into the output of the STATUS command.

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

index 750b476b9acee8b2c8f0e8cf6571ba88fe2c73df..fa53e8ce3ad1760acb578cf843ff8be93ac3ad80 100644 (file)
@@ -2388,6 +2388,20 @@ static int wpa_supplicant_ctrl_iface_status(struct wpa_supplicant *wpa_s,
                                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->connection_max_nss_rx,
+                               wpa_s->connection_max_nss_tx,
+                               channel_width_to_int(
+                                       wpa_s->connection_channel_bandwidth));
+                       if (os_snprintf_error(end - pos, ret))
+                               return pos - buf;
+                       pos += ret;
+               }
 
 #ifdef CONFIG_AP
                if (wpa_s->ap_iface) {