]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
iw: print ru-alloc values when dumping stations
authorJohn Crispin <john@phrozen.org>
Tue, 4 Feb 2020 15:45:34 +0000 (16:45 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 13 Feb 2020 18:08:44 +0000 (19:08 +0100)
In commit 2f74c59cf11e ("iw: add HE support to station dump call") we added
most of the HE values when parsing tx bitrates/dumping stations. The
ru-alloc value was missing. This patch adds that value.

Signed-off-by: John Crispin <john@phrozen.org>
Link: https://lore.kernel.org/r/20200204154534.5177-1-john@phrozen.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
station.c

index 1be3974042df3fc6085ad5103c542d19cfc39a5c..f8600b7196abc6be54992d87166c8d4f6d6d01bc 100644 (file)
--- a/station.c
+++ b/station.c
@@ -256,6 +256,9 @@ void parse_bitrate(struct nlattr *bitrate_attr, char *buf, int buflen)
        if (rinfo[NL80211_RATE_INFO_HE_DCM])
                pos += snprintf(pos, buflen - (pos - buf),
                                " HE-DCM %d", nla_get_u8(rinfo[NL80211_RATE_INFO_HE_DCM]));
+       if (rinfo[NL80211_RATE_INFO_HE_RU_ALLOC])
+               pos += snprintf(pos, buflen - (pos - buf),
+                               " HE-RU-ALLOC %d", nla_get_u8(rinfo[NL80211_RATE_INFO_HE_RU_ALLOC]));
 }
 
 static char *get_chain_signal(struct nlattr *attr_list)