From patchwork Tue Feb 4 15:45:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Crispin X-Patchwork-Id: 11364899 X-Patchwork-Delegate: johannes@sipsolutions.net Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 34B851398 for ; Tue, 4 Feb 2020 15:45:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1BD1B20674 for ; Tue, 4 Feb 2020 15:45:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727297AbgBDPpl (ORCPT ); Tue, 4 Feb 2020 10:45:41 -0500 Received: from nbd.name ([46.4.11.11]:43280 "EHLO nbd.name" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727221AbgBDPpl (ORCPT ); Tue, 4 Feb 2020 10:45:41 -0500 Received: from [149.224.158.146] (helo=bertha.datto.lan) by ds12 with esmtpa (Exim 4.89) (envelope-from ) id 1iz0OR-0000cr-Dy; Tue, 04 Feb 2020 16:45:39 +0100 From: John Crispin To: Johannes Berg Cc: linux-wireless@vger.kernel.org, John Crispin Subject: [PATCH] iw: print ru-alloc values when dumping stations Date: Tue, 4 Feb 2020 16:45:34 +0100 Message-Id: <20200204154534.5177-1-john@phrozen.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org 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 --- 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)