]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
iw: station: print S1G MCS/NSS values main master
authorLachlan Hodges <lachlan.hodges@morsemicro.com>
Tue, 2 Jun 2026 06:24:17 +0000 (16:24 +1000)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 3 Jun 2026 11:59:31 +0000 (13:59 +0200)
Signed-off-by: Lachlan Hodges <lachlan.hodges@morsemicro.com>
Link: https://patch.msgid.link/20260602062417.1830662-1-lachlan.hodges@morsemicro.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
station.c

index 0f992d5b913471d1876b17a09df78b3b6083056d..6a143ac22cfb40556dc92d7b0508be477c9162e5 100644 (file)
--- a/station.c
+++ b/station.c
@@ -231,6 +231,9 @@ void parse_bitrate(struct nlattr *bitrate_attr, char *buf, int buflen)
        if (rinfo[NL80211_RATE_INFO_VHT_MCS])
                pos += snprintf(pos, buflen - (pos - buf),
                                " VHT-MCS %d", nla_get_u8(rinfo[NL80211_RATE_INFO_VHT_MCS]));
+       if (rinfo[NL80211_RATE_INFO_S1G_MCS])
+               pos += snprintf(pos, buflen - (pos - buf),
+                               " S1G-MCS %d", nla_get_u8(rinfo[NL80211_RATE_INFO_S1G_MCS]));
        if (rinfo[NL80211_RATE_INFO_40_MHZ_WIDTH])
                pos += snprintf(pos, buflen - (pos - buf), " 40MHz");
        if (rinfo[NL80211_RATE_INFO_80_MHZ_WIDTH])
@@ -256,6 +259,9 @@ void parse_bitrate(struct nlattr *bitrate_attr, char *buf, int buflen)
        if (rinfo[NL80211_RATE_INFO_VHT_NSS])
                pos += snprintf(pos, buflen - (pos - buf),
                                " VHT-NSS %d", nla_get_u8(rinfo[NL80211_RATE_INFO_VHT_NSS]));
+       if (rinfo[NL80211_RATE_INFO_S1G_NSS])
+               pos += snprintf(pos, buflen - (pos - buf),
+                               " S1G-NSS %d", nla_get_u8(rinfo[NL80211_RATE_INFO_S1G_NSS]));
        if (rinfo[NL80211_RATE_INFO_HE_MCS])
                pos += snprintf(pos, buflen - (pos - buf),
                                " HE-MCS %d", nla_get_u8(rinfo[NL80211_RATE_INFO_HE_MCS]));