Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp630458pxv; Thu, 15 Jul 2021 11:59:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwF840IdYKM83xN4nZGrBBFJieJYSKAJyouYTABNaBRaZHpqolvsh8u/VPu2NUWLWGcvIpk X-Received: by 2002:a17:906:b10e:: with SMTP id u14mr7217642ejy.522.1626375570113; Thu, 15 Jul 2021 11:59:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626375570; cv=none; d=google.com; s=arc-20160816; b=ZWZ0DUYeIZ2xvB4GRO/TfSQFq3N1DJTvwAj4vD8rHtOvAAhF6kcjPdWFP9FtPptOcV TsLJu2dnaAw8nsZwwOhau1VdlAsT8ek725KFhsE+10IK4NOq9rSdpbmjOSQce9TdMNLP S7pwOGYy3zpZeQJqMDT8c6tAVyorS8TOwtjZ5vggSq0w4WDZbdEdwX0p8abikSwZGLIR DlrFw1JnkQudgkP4E2JgmcLm/4YRQjeKWo7OnEgYEmgxwtEsxLLVKbBqF3h0hQw/Y4Hw P1aQ0moUkhcCYuKPKFmJsjA1mwIQeutIs7c/kFq3rlL9qfWTSi/tA56rZzLKN4MgTCNJ rUEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=K3Et/0qNB/dOUsJjiKjvSoPJBx8JN56m6dFQZTXFX0c=; b=BnlMFIJHD07K9iUkjb7QFa9tEZUt5jGiD5m9eRp3uMt/FVraQTAURDjR3V5eW/cfrJ 2M95WNQsNxrmeMB5qmHMsLQHlZuxkBCBIrDVNRp6RVoxgRpFDT2NTHjK2Ennat0TOJvi jWVNHxSSyHeBd971rNl5QGEZ4sso4LiU6Z3a9GHHCBrXb8YjnuQ7L+Ja++1N8OGXn+UA 6e79kbq0bRF1kbMoW7pmwFOkIHkaAqEkNAqJ5M8BUDEKmT5iTGsg269WaJgWSVAVBSf3 JKDihlJUOzQEyNmWhuXn1v1gBkj0dFQ/D6lVnj3Xf5/JeTKCDmcgHmQNK3DoMgI+9T3A Av2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=F4As5mhX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id zm10si8230413ejb.633.2021.07.15.11.59.07; Thu, 15 Jul 2021 11:59:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=F4As5mhX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242106AbhGOS6X (ORCPT + 99 others); Thu, 15 Jul 2021 14:58:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:53770 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238947AbhGOSwD (ORCPT ); Thu, 15 Jul 2021 14:52:03 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id BBF88613D9; Thu, 15 Jul 2021 18:49:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626374950; bh=ZxhQ/s8KZpLwV9wFhgLlnsSd4+04GTiheMdXUWADhsk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=F4As5mhXHR6Ocv02c9jFnB2CMZOOl7sIvVrP2aQrypEtTOrRsvXdhqnqluKWDY0nP wSpF9WRVJaX02VHGS6N1AcpAw4leVx7qa5vaMkgYqVvIksapQCijsoUxknMWTJb6Aa 8hz6a+nAbTIPKUBoCjXxHNeaWdciNRsCGRqt64DI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ryder Lee , Felix Fietkau , Sasha Levin Subject: [PATCH 5.10 094/215] mt76: mt7915: fix IEEE80211_HE_PHY_CAP7_MAX_NC for station mode Date: Thu, 15 Jul 2021 20:37:46 +0200 Message-Id: <20210715182615.963490150@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182558.381078833@linuxfoundation.org> References: <20210715182558.381078833@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ryder Lee [ Upstream commit 2707ff4dd7b1479dbd44ebb3c74788084cc95245 ] The value of station mode is always 0. Fixed: 00b2e16e0063 ("mt76: mt7915: add TxBF capabilities") Signed-off-by: Ryder Lee Signed-off-by: Felix Fietkau Signed-off-by: Sasha Levin --- drivers/net/wireless/mediatek/mt76/mt7915/init.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/init.c b/drivers/net/wireless/mediatek/mt76/mt7915/init.c index 0232b66acb4f..8f01ca1694bc 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7915/init.c +++ b/drivers/net/wireless/mediatek/mt76/mt7915/init.c @@ -335,6 +335,9 @@ mt7915_set_stream_he_txbf_caps(struct ieee80211_sta_he_cap *he_cap, if (nss < 2) return; + /* the maximum cap is 4 x 3, (Nr, Nc) = (3, 2) */ + elem->phy_cap_info[7] |= min_t(int, nss - 1, 2) << 3; + if (vif != NL80211_IFTYPE_AP) return; @@ -348,9 +351,6 @@ mt7915_set_stream_he_txbf_caps(struct ieee80211_sta_he_cap *he_cap, c = IEEE80211_HE_PHY_CAP6_TRIG_SU_BEAMFORMER_FB | IEEE80211_HE_PHY_CAP6_TRIG_MU_BEAMFORMER_FB; elem->phy_cap_info[6] |= c; - - /* the maximum cap is 4 x 3, (Nr, Nc) = (3, 2) */ - elem->phy_cap_info[7] |= min_t(int, nss - 1, 2) << 3; } static void -- 2.30.2