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>
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) {