Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp654610pxv; Thu, 15 Jul 2021 12:35:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwnEFG27ds32Kyj0uW7y57EEji2y6e+EMpAslN/kSl9i/CrJuqItqPLjGonREMyHEZpF4wl X-Received: by 2002:a17:906:72d9:: with SMTP id m25mr7440994ejl.58.1626377726593; Thu, 15 Jul 2021 12:35:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626377726; cv=none; d=google.com; s=arc-20160816; b=c3M5EQfSs8nZcRgPSvvHxqtxo6whcZPvdOTTmGHdCEq5lqkExHtPwSVsmtGmbCvqcE 4+UMY2dqXrZ+MlamGYn6bHKcxqonbQ6+ziV2t2TUXDSQ2xMaBVXzZc8xsgbWR3xc0R1I cyN53YPPHb/nRgCxFzUwex9ql5rql3qI7YjBBinZTbb5eQBTzsZzFqUh0HWSWCBBDoQE x7WWKVffkrMNEr6qum3Ci7PDXpNb1PcrU95MktqGKrQfzqvvd4py+2pB0QEjn4Zllspy U5QSjSa0X3rTg6oVtCphBuKZTHlE+pj44YNefQiMZmxwX63XR8dfp/ChJ3xjSqdegEhk mTqQ== 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=iTMbWyt7rRjIlGVtkFwoAq3xMA0neM0hYlq/ByueN1Y=; b=K3pS7wBKZca+dqjJPqXQpvuXSRcs+qkmIOpTuLoev5pg9suLyNisjfavt0wg6/Q5xw tNGW2XsqR0/6zIPmmkkykhEa8/pbeNzdAWApJzDRq1nTXVomoMtlmvMv4CB/Manur/OP shbjv7llb/7k505C98kBj2nRt0z927kF4UmuiI2pfveDPt6iliftdvYGW/pYEuDZviGX w9JEqyJtCV+EVegrP7/meuFQ/RnCQl8e6KddLKTwa5SUB24ChIedMUeECspvY7Z/pgU6 yALObzZhOKda64lvMru2PkrTYXYobCGwdM74axOPi6ZzUbTcdCfvjL78QV1Q7YOzeANR KBiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=aF0qdSH9; 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 y19si9371299edi.515.2021.07.15.12.35.04; Thu, 15 Jul 2021 12:35:26 -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=aF0qdSH9; 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 S244154AbhGOTdk (ORCPT + 99 others); Thu, 15 Jul 2021 15:33:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:50894 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243097AbhGOTLO (ORCPT ); Thu, 15 Jul 2021 15:11:14 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 67547601FE; Thu, 15 Jul 2021 19:08:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626376098; bh=SKgrW86FCTuQ2U8shcCjpqm/B2ijXEQ1rAZcVr4+KE0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aF0qdSH9DDlI8wGpOPahYZrAUMt0KO/sT4Y9UTwkAavAfJ2ppFWHvWPFu8/VGrpQp Hh2vKq9vDHJ2owpgMYso+Q8Nd81mc0yi8PH7VVhf9BHrtMCV2S76pZTAy90y6wuVQG Qot9CM8efxpDzhk3ibGRhl6EN4DpGzMubkk1r2eE= 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.13 127/266] mt76: mt7915: fix IEEE80211_HE_PHY_CAP7_MAX_NC for station mode Date: Thu, 15 Jul 2021 20:38:02 +0200 Message-Id: <20210715182636.332984523@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182613.933608881@linuxfoundation.org> References: <20210715182613.933608881@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 822f3aa6bb8b..feb2aa57ef22 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7915/init.c +++ b/drivers/net/wireless/mediatek/mt76/mt7915/init.c @@ -480,6 +480,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; @@ -493,9 +496,6 @@ mt7915_set_stream_he_txbf_caps(struct ieee80211_sta_he_cap *he_cap, c = IEEE80211_HE_PHY_CAP6_TRIG_SU_BEAMFORMING_FB | IEEE80211_HE_PHY_CAP6_TRIG_MU_BEAMFORMING_PARTIAL_BW_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