Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp708742pxv; Thu, 15 Jul 2021 14:05:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvvM1uiNir66fz+2IUc8caDnB2LGBxE4J4ccAQcyOKi6Or7Zzt29C7Nj/tXcMMpr3BQjts X-Received: by 2002:a17:906:4c8c:: with SMTP id q12mr7646797eju.254.1626383118524; Thu, 15 Jul 2021 14:05:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626383118; cv=none; d=google.com; s=arc-20160816; b=pJSIHnrSbuWEAhbxOWnKpwMQRYYueNPSLoxgIYrGT2bxcegCOhKjQUGE00MmvkXm1D WbnSh3Lm4jJ0jypQYijWD0CiMHwJSqWTwqlaaW/aJHj0lp06TSuGOmPuQhvG7bcNNagn eCkYRvNh0swJg9BeOslkoGnCQiHyZZtoHvdRT6rfoxbl9q7WGcg+u4QnCIV/Ex25jTHY CagPHGnEGx4zfQpFIIUW2aqljNiqsXYU79zn+e7ea9Dcer7eWiRKCcPcFuZRJ0NVDCvF t6zL/uLVK3rSV69G50CJwxbVoStQ9nbjQujtMBsxb1VzZlLyhO5hxPht5WSsgtJPOHSt Fyww== 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=dGDxnfhGwuWLteWLMqaEmBtZMwOS3Pybvv8EAkD5fzA=; b=gu1E+sdtjP922wtze+QJc/fKwAdIW1wvvxe37Nxo1Uz6v+CUsyIf+EwhlbLsrVLGYI 0KGpvW02YIyReUv1wdPVXJ8DPenPlk/ROCIw18FkFUxsj4r7udHRZ3jOTFj5VeTNiHOK 6nUZtg29xgflVvMDAtHf2tHSD8Sa0S4WQlqbbsGX1s8w0lpFgdZStpVEIr0wo60YwftW RaCMvckY+D7Hd4h8bPHwdHzz+W8XClsp4HHGkvdlP4rsKPGOc0JwNShbmYoLzYtWCqp3 UVec1N7+zLcrPFuogmgmRnRYaIb6odYugGT2eGhfLgILfQUHMqi45hw2UgpfjPdbsg+M naaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=EEUVaqtk; 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 b94si8708116edf.23.2021.07.15.14.04.55; Thu, 15 Jul 2021 14:05:18 -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=EEUVaqtk; 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 S242564AbhGOTNn (ORCPT + 99 others); Thu, 15 Jul 2021 15:13:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:38918 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240761AbhGOTBP (ORCPT ); Thu, 15 Jul 2021 15:01:15 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 09F47613F9; Thu, 15 Jul 2021 18:58:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626375482; bh=PYndkoxT8VJSQCBBjAEcCYBPObdOP0m3A43bg4uEqJg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EEUVaqtkvH2D8yqpk2j+/ny/1gKjPGFb/+HS/qcDYLEPaKs/ll9U2g03JKfIJegl9 2YX0G0+J65DO27gNnprG1yn7E48rzoIuMRR1GTGGTYzO3y8HXCmcLaGOqG3KtGnu/R bij60WKAxAMxMJTB1DF24KLgOapdlexx4aYr2eN4= 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.12 105/242] mt76: mt7915: fix IEEE80211_HE_PHY_CAP7_MAX_NC for station mode Date: Thu, 15 Jul 2021 20:37:47 +0200 Message-Id: <20210715182611.509246996@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182551.731989182@linuxfoundation.org> References: <20210715182551.731989182@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 c7d4268d860a..5ab34606c021 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7915/init.c +++ b/drivers/net/wireless/mediatek/mt76/mt7915/init.c @@ -452,6 +452,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; @@ -465,9 +468,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