Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2374060lqp; Sun, 24 Mar 2024 16:28:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVZ/HpiWZa0JkqjqHKoYYlrfqrlsLwpGLw0zUUr+3i8o7vhxohlNn+CC5m74uLsFB8rdn9yK/SuXJ5q/H5qPBq+55QTIZcrbcd+BAh8Zw== X-Google-Smtp-Source: AGHT+IGhnTIT+xDUooURlraSCVmTvBGQZeE/vXC5k8iK5raIqrmUj2/x54gBF46/sFymDTY30bu0 X-Received: by 2002:a50:8d42:0:b0:56b:b0f9:b7bb with SMTP id t2-20020a508d42000000b0056bb0f9b7bbmr2961268edt.41.1711322894610; Sun, 24 Mar 2024 16:28:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711322894; cv=pass; d=google.com; s=arc-20160816; b=itAO4FBQi1gOiokVRX5Rf+TlpNLuGyRtOSUrN1N9NkQhsXV51pf5FAxRtwmYccqhB4 gehDi5k8Bf4xKi+IVrHjJ/FivjoptKq8Pi6atvJj2sZgCoBdPbFSbHB40tCspDYMhFw0 TNR6qGpZ1AFYZp3Y8V4xXQicWJTJWPunXIuJC0wOvXpAjYARw4z3W400x6vvlQoYuFpU xri8Jl2tH+MQCf7s5L9Q7S7KeyrjU2EdSRbxYf+A0WvtO+mchnjJbA+sq3yDLuNtPC5o cPwLLxC7S4varLv9E4fIawMbqU9ErnLK/RLUwakKpwNwaDtfKvKUfvJMi55zIwRlqj8j wWmA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=bXdixnBtjHqL24wnOeL2Zu+5qLQ27N0CCXP/tQZMOKo=; fh=dLI4rMHDqjD4Maei+LtG9hn+Ti9m+KioxfZrjN0JXms=; b=PvcipZ/D/OD17uplQwwqgzzT/Go7mIBgfyqvotR1FhvWHjk5VaFOP9gvNhf8E8RK5A 8MA22Phytx/8Oh5nLvNX3bPzPQPwfsQMEbU1/IwN0RiH8JwUcp4Y4z223OW3L5b8XPxn Fg6KM/f9f6Z1qHUh3V0G/EJnc1IA8LJPdW83ApntlgUboZ+v/RGPXG0/rF8/wP54PwYM UAvKZXyA1bmNGgHIlhrsTvMIy4DqM8Nfb5PCsWH/NoZ+O84gPRZ5NkVsDbitShZgJTE0 C/xbAzRWQtsO4iMkSqs8yAF2jO0Vb8NjF+8kML4fAchJnjLXxqO97iBcz6Hu1SBN12dl KCig==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="VvEdY1/M"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113134-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113134-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id bo28-20020a0564020b3c00b0056a2dd6fc7esi2009974edb.647.2024.03.24.16.28.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 16:28:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113134-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="VvEdY1/M"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113134-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113134-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 57F881F21823 for ; Sun, 24 Mar 2024 23:28:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8526816FF59; Sun, 24 Mar 2024 22:39:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="VvEdY1/M" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 90D8D16FF3B; Sun, 24 Mar 2024 22:39:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711319941; cv=none; b=VLXqk6gAlfutGtyk7PxlYNe1w1UbenvQNxAUqTWXTcjpR21JGj4iXX+zWIE0+Rl7Q0hL63Sg4Ynt3yiZV1QyrZ52L6YGDPUdEgnLT9kRGtW6PklXzs3wP1P8vTe4OeaPzdwJEhp2K2qcKyLDFMyS8t395DvOsC4GjG2FpTez+4c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711319941; c=relaxed/simple; bh=c+3EJWvAEmgGLHgnQsMuUKcHVuSIgMWz435MQegGdok=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=POBOK73JgXX6iV4jt0O0ocVlKMYTkEWUC4ywNcctCf57ruN+Vk4A7XTo2iPvAci01sheR8q3X8DK+xipe7/yGOZ4d+wLPY4xKPJoik8Tl+NZpjfc1QFWuqYXPpzid5OnU/JoovSvSwbPc5eUNqYeO6UI3uWtskQu+B+VlsDKPQQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=VvEdY1/M; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B291AC433B1; Sun, 24 Mar 2024 22:39:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711319941; bh=c+3EJWvAEmgGLHgnQsMuUKcHVuSIgMWz435MQegGdok=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VvEdY1/MuqEJFDEV435SZ8KWwAZaWof1oQdh/OB1ch00WFgU30rgz5sQhRswqBV+J gF/8670fqh69q/kkfLfUPSNHR0Lt0i0JzL02cjjlXY7bCWfH/3guLBNuEX2CJFf4hs hSW73iBNiRvK+vjlS5U56xExZQqFNzVSM12OveXe2XomaiScCPIS0Efz0z+8goVmef 7tVAUHdVNU10x6q0zIPq2NFWD6ofgaiRcQRWrTMe838T5RDxl7l9IkyE9ymb7Q4c62 2y0UwpTzGyUQ7XeaKoRrcUkm7wt/eBb76BUL6d7L+dFXO0NvmjBCnJpQcth/q5+LaC oq4TMHwOnsarQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Howard Hsu , Shayne Chen , Felix Fietkau , Sasha Levin Subject: [PATCH 6.8 247/715] wifi: mt76: mt7996: fix HE beamformer phy cap for station vif Date: Sun, 24 Mar 2024 18:27:06 -0400 Message-ID: <20240324223455.1342824-248-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Howard Hsu [ Upstream commit e1a491e856a8a36c46b39ecd07f3bba5a119d83a ] Set correct beamformer capabilities for station vif in HE PHY capability IE. Fixes: 98686cd21624 ("wifi: mt76: mt7996: add driver for MediaTek Wi-Fi 7 (802.11be) devices") Signed-off-by: Howard Hsu Signed-off-by: Shayne Chen Signed-off-by: Felix Fietkau Signed-off-by: Sasha Levin --- drivers/net/wireless/mediatek/mt76/mt7996/init.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7996/init.c b/drivers/net/wireless/mediatek/mt76/mt7996/init.c index 0cf0d1fe420a2..1a1a60744272d 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7996/init.c +++ b/drivers/net/wireless/mediatek/mt76/mt7996/init.c @@ -1012,11 +1012,12 @@ mt7996_set_stream_he_txbf_caps(struct mt7996_phy *phy, /* the maximum cap is 4 x 3, (Nr, Nc) = (3, 2) */ elem->phy_cap_info[7] |= min_t(int, sts - 1, 2) << 3; - if (vif != NL80211_IFTYPE_AP) + if (!(vif == NL80211_IFTYPE_AP || vif == NL80211_IFTYPE_STATION)) return; elem->phy_cap_info[3] |= IEEE80211_HE_PHY_CAP3_SU_BEAMFORMER; - elem->phy_cap_info[4] |= IEEE80211_HE_PHY_CAP4_MU_BEAMFORMER; + if (vif == NL80211_IFTYPE_AP) + elem->phy_cap_info[4] |= IEEE80211_HE_PHY_CAP4_MU_BEAMFORMER; c = FIELD_PREP(IEEE80211_HE_PHY_CAP5_BEAMFORMEE_NUM_SND_DIM_UNDER_80MHZ_MASK, sts - 1) | -- 2.43.0