Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2778793pxk; Tue, 15 Sep 2020 02:01:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzGBU1+LBx1e4dukp02VkroPB9PoOt3Zb9w3W6ua+l4ulUBnWKfbisM9Jo6IUPqJjOQTf3P X-Received: by 2002:a05:6402:7d2:: with SMTP id u18mr21569529edy.69.1600160487122; Tue, 15 Sep 2020 02:01:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600160487; cv=none; d=google.com; s=arc-20160816; b=GMO6w//3vMcKmIimjkuBQxNxrP+Cy9KQmhr6pNkZHLDAy66Z8/Sf3oXcQSESbX+7Zu 7uP31z4OnpCdoGAwyUPT0ch0k/tOu9BqExv6l7KLYCTJf40E/llYf37jCDcduXjll8Il bP9gSeJvbIbVBUfDaOgaAfj3HVnQHZgotXHBo9E1F4F0qCpGIbBDHDxY5oeZANG5l8z8 fn2PDr9VOhpYmS+HuFKJzayhm4eOTpwuHe0KJHNr8MZj2xvZCz8zgOBrySjm/2NPipl7 gGJJYlPN0fWsNcrbJaFk9QtTpaKfZXusbQ5AIqzDAhpTxUcajnmBk0X41sw5uu6kp79M P93Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=S3W/Lj5seWBSHQmGwrH1oj7Gg/MLfvXUG7iE1G9mPIM=; b=pZ+Q88tzqI8FqUpoOym6Jq1YHXXEDpH8OOjDOPzIptjEHvtUUE2BxBIqiK4lI9UIkU QlyRnISdYSHZoooplRS3vbjQTlg+EZEDo/IpnH8DWHVmLN/0xlmJpzQ0AV9TGuf5Pi4B 01hy0uTb+eMi43BGijy8lRgMl7eLRqPM691tNiMC/k1rra0vlTKOy5lkMELo313/52KQ zeufezF73gqvzo8lRpB0Egl69ib87qk17vrp5mUnvLDe3HRgtgD1qF2A6iCUt3YLQPx0 Qo/ENx15huyNEyV9PbKOKm1Y9d6CsB7rAb5JloEas+VaQBdb2apw7jT2YQJHmRCvYuc3 tHUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=WGAJ2Kbf; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x24si8801313eju.477.2020.09.15.02.01.03; Tue, 15 Sep 2020 02:01:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=WGAJ2Kbf; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726347AbgIOI7w (ORCPT + 99 others); Tue, 15 Sep 2020 04:59:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726157AbgIOI7u (ORCPT ); Tue, 15 Sep 2020 04:59:50 -0400 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61242C061788 for ; Tue, 15 Sep 2020 01:59:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=S3W/Lj5seWBSHQmGwrH1oj7Gg/MLfvXUG7iE1G9mPIM=; b=WGAJ2KbfwpfMhHpnfv2vj74O1N dZEzw547Wd6gVTWezUKwO16ZZWy2es1IBo7FIEN4kEKhEMytp0Az6IJDGoKhkRwbE6HSZ9VjO802x IMLpJWSt2dLdBCFKUnEYzZ91uMrbwwRSYiYYr5mzn1gMQWJlNcFk4wFOK4j5JKBI8yXM=; Received: from p4ff134da.dip0.t-ipconnect.de ([79.241.52.218] helo=localhost.localdomain) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.89) (envelope-from ) id 1kI6oV-00064H-2V; Tue, 15 Sep 2020 10:59:47 +0200 From: Felix Fietkau To: linux-wireless@vger.kernel.org Cc: johannes@sipsolutions.net, toke@redhat.com Subject: [PATCH 5.9 v2 2/2] mac80211: add AQL support for VHT160 tx rates Date: Tue, 15 Sep 2020 10:59:45 +0200 Message-Id: <20200915085945.3782-2-nbd@nbd.name> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200915085945.3782-1-nbd@nbd.name> References: <20200915085945.3782-1-nbd@nbd.name> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org When converting from struct ieee80211_tx_rate to ieee80211_rx_status, there was one check missing to fill in the bandwidth for 160 MHz Signed-off-by: Felix Fietkau --- net/mac80211/airtime.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net/mac80211/airtime.c b/net/mac80211/airtime.c index 45140e535151..26d2f8ba7029 100644 --- a/net/mac80211/airtime.c +++ b/net/mac80211/airtime.c @@ -560,7 +560,9 @@ static int ieee80211_fill_rx_status(struct ieee80211_rx_status *stat, if (rate->idx < 0 || !rate->count) return -1; - if (rate->flags & IEEE80211_TX_RC_80_MHZ_WIDTH) + if (rate->flags & IEEE80211_TX_RC_160_MHZ_WIDTH) + stat->bw = RATE_INFO_BW_160; + else if (rate->flags & IEEE80211_TX_RC_80_MHZ_WIDTH) stat->bw = RATE_INFO_BW_80; else if (rate->flags & IEEE80211_TX_RC_40_MHZ_WIDTH) stat->bw = RATE_INFO_BW_40; -- 2.28.0