2020-02-04 15:48:12

by John Crispin

[permalink] [raw]
Subject: [PATCH] iw: print ru-alloc values when dumping stations

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 <[email protected]>
---
station.c | 3 +++
1 file changed, 3 insertions(+)

diff --git a/station.c b/station.c
index 1be3974..f8600b7 100644
--- 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)
--
2.20.1