From c45f0b584b4b86f8250f90ea19afca271c114fa2 Mon Sep 17 00:00:00 2001 From: David Bauer Date: Sat, 17 Apr 2021 23:05:16 +0200 Subject: iwinfo: add 802.11ax HE rate information This adds 802.11ax HE specific rate information to iwinfo. Add fields for HE status of a STA as well as DCM and guard interval fields specific to HE operation. Signed-off-by: David Bauer --- iwinfo_nl80211.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'iwinfo_nl80211.c') diff --git a/iwinfo_nl80211.c b/iwinfo_nl80211.c index aeff778..eea521e 100644 --- a/iwinfo_nl80211.c +++ b/iwinfo_nl80211.c @@ -1869,7 +1869,19 @@ static void nl80211_parse_rateinfo(struct nlattr **ri, else if (ri[NL80211_RATE_INFO_BITRATE]) re->rate = nla_get_u16(ri[NL80211_RATE_INFO_BITRATE]) * 100; - if (ri[NL80211_RATE_INFO_VHT_MCS]) + if (ri[NL80211_RATE_INFO_HE_MCS]) + { + re->is_he = 1; + re->mcs = nla_get_u8(ri[NL80211_RATE_INFO_HE_MCS]); + + if (ri[NL80211_RATE_INFO_HE_NSS]) + re->nss = nla_get_u8(ri[NL80211_RATE_INFO_HE_NSS]); + if (ri[NL80211_RATE_INFO_HE_GI]) + re->he_gi = nla_get_u8(ri[NL80211_RATE_INFO_HE_GI]); + if (ri[NL80211_RATE_INFO_HE_DCM]) + re->he_dcm = nla_get_u8(ri[NL80211_RATE_INFO_HE_DCM]); + } + else if (ri[NL80211_RATE_INFO_VHT_MCS]) { re->is_vht = 1; re->mcs = nla_get_u8(ri[NL80211_RATE_INFO_VHT_MCS]); -- cgit v1.2.1