Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp468661pxk; Wed, 9 Sep 2020 09:57:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQUwLfav38ONp8qSiCuuPp/prbH4HnJYRX91knOX5Up8g2XhwSMY65fAgL0+2gdqpCIVka X-Received: by 2002:a17:906:5490:: with SMTP id r16mr4425062ejo.222.1599670677483; Wed, 09 Sep 2020 09:57:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599670677; cv=none; d=google.com; s=arc-20160816; b=GyFBNvpU36TWetMTT+NiEM8Dqx8MVE9QRHZr4J/KfvbpckuF8Ev5etiIbrC5ECEL76 PkzmPxwCLFJMiS79U2Ctxgi0+i2bzWaKLeWCEmof3vEmGBylD429aJhInHiW94Wu4X65 OLgMVKSbWOJPH21uSK4P7iZjwd1SfUGgGzKyqaWcc+nilOmtDGO9myyR34n4byuwlMMb 3tBnk7MaqwTTXVmzLbGzIrH7lLUKEfz3ulCr5/IDqBi+WQ7JWxSKYoi412P56f5MGZz4 HW2/JMGMC1783hszlnPPVmoG46blu0WiB18uPbhXpDoKnEkqUZ2mT6uCalaxLzQwpCUH O6LQ== 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=diCsJnKiBTT+ZImb7cEEqgGAC1/0YDgOZ6qVpOwQ9GC6DsF61oXnWIBs/vg967sDXf 5wSljSWBJ62wfS4q9+SkbhUoq6hXLRUINTvE/PIX9DwXJ1WQHMuPS3587qiiLsG7irHH XYaeSb8llBOBJ7JkFwWy5kGj25mJiY0l7nO82kFIAhWFe7N3a84fRWURpDr+3QNBgU46 HCRhOrX6qRLJ/q/n4SISWmsfnahhXQuw4qvKef3OJZDujDmCUCnAn4E3iYbDkVNKx4sm Lb9ahxSFgoP7CBqMdkLnpojYxd/Ob/k42XEOq+mDdqD7BC0mXvqFH7Z7c/c6RiagNJFv AL/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=IxJax5gd; 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 a12si1913815eda.373.2020.09.09.09.57.33; Wed, 09 Sep 2020 09:57:57 -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=IxJax5gd; 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 S1731078AbgIIQzp (ORCPT + 99 others); Wed, 9 Sep 2020 12:55:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730599AbgIIPwb (ORCPT ); Wed, 9 Sep 2020 11:52:31 -0400 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71AE5C061798 for ; Wed, 9 Sep 2020 04:56:08 -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=IxJax5gdXCO4ohhf8pBOHJYIWR QKCJfhSwpYFfi9dLaD+5fZH4wanpD/0+zyQo4Fs3JLn5q/ofYSN6S0hifvNcOC5mYWd/tZ2mkyRLI GuRjSllrtHYZJ0OIDpZZ4Y6/a+u4PAxjYzusuwyjptiuLfcg9g1N0u4/Kgz/JjokWXPU=; Received: from p4ff13fcb.dip0.t-ipconnect.de ([79.241.63.203] helo=localhost.localdomain) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.89) (envelope-from ) id 1kFyho-0006Ix-2b; Wed, 09 Sep 2020 13:56:04 +0200 From: Felix Fietkau To: linux-wireless@vger.kernel.org Cc: johannes@sipsolutions.net Subject: [PATCH 5.9 2/2] mac80211: add AQL support for VHT160 tx rates Date: Wed, 9 Sep 2020 13:56:02 +0200 Message-Id: <20200909115602.21783-2-nbd@nbd.name> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200909115602.21783-1-nbd@nbd.name> References: <20200909115602.21783-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