diff mbox series

iw: print ru-alloc values when dumping stations

Message ID 20200204154534.5177-1-john@phrozen.org (mailing list archive)
State Accepted
Delegated to: Johannes Berg
Headers show
Series iw: print ru-alloc values when dumping stations | expand

Commit Message

John Crispin Feb. 4, 2020, 3:45 p.m. UTC
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>
---
 station.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

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)