From: John Crispin Date: Tue, 4 Feb 2020 15:45:34 +0000 (+0100) Subject: iw: print ru-alloc values when dumping stations X-Git-Tag: v5.8~48 X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fiw.git;a=commitdiff_plain;h=97dd4dad026366ae00cabce4cb370435407cff11 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 Link: https://lore.kernel.org/r/20200204154534.5177-1-john@phrozen.org Signed-off-by: Johannes Berg --- 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)