Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp498861rdb; Fri, 26 Jan 2024 02:00:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IGIii+dig2KfFMKyaXE8fanHA7C2eun8DETlQdPRPSnYtPTopef2+WCzZfeeGHD7uR6f71q X-Received: by 2002:aa7:c599:0:b0:558:251b:3bd1 with SMTP id g25-20020aa7c599000000b00558251b3bd1mr568083edq.37.1706263224929; Fri, 26 Jan 2024 02:00:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706263224; cv=pass; d=google.com; s=arc-20160816; b=UbQtGdjRL1YduBuTEKxfyMEjliVcDOF5TZL1f8MhqdRSIhRhOa5jSQ1sY9dlp1i5MS 4V1vAvGiJH628qr5zsRChENGLClC6C5kudOi2FHdlFqCF/6UTHapUrFufNKM8qQ5JPsf PW0SsUdrswUFRi5zn/XSo6VT1XY0eRhZABIdC2ENFHcuoTxjzmq9UjFrqB10Zw0AeBty BODgifDwAlgKB73aZ3S6Aj3gBpPn3HZOBwTtAlU/ct00VfoiOhw706JUG8RH0HuIxWE2 ched8vXBunQ82jP3DFUiPfslgCPV0Zl6dOZsIvIT2YLwts0H8V5nhaIOerYpw/lfrCsW f4xw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Sda5kZdyKKIJK2I43a9AKWlXy5NJNzHmEBQEBx80YOQ=; fh=tT3pVz2sFXWN1JRevyloDHRuH+o8iMm3Jb/5EQ+YNT0=; b=rBCakdqWLkltb8ccCXMZJI4IZTuqots7g53LOmJG7jC5dJqXluPKl47gO9GhSA+AN9 nBmPMsvP9SQvQDm3EiOan4vN0HW6PA3ogRFiyA2mr42Tm8Nm7oGFXYrhh0xYDukZQuG5 T7BZlfAxbvzQqUWW2X5/ujjAiT8X4liZFuzeSm/eT1yykLq7erjt1cs6j4NaS8/pWIK1 vss9kfZepzQ+5nBx1vRgLF32q6zgbBkkWZUUWUNjiKl5gzecQCNe21z3rAU5FcLTYME9 vxKYoE3qK9Da3s6rM9tGcxou/3EKpn2QbTWcfmDRQb6AZg570OcD+hF28K/NbbCE0DO2 kj4Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=h6e8eUkk; arc=pass (i=1 spf=pass spfdomain=mediatek.com dkim=pass dkdomain=mediatek.com dmarc=pass fromdomain=mediatek.com); spf=pass (google.com: domain of linux-wireless+bounces-2540-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2540-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id y20-20020a50e614000000b0055371b94b83si469745edm.53.2024.01.26.02.00.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 02:00:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-2540-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=h6e8eUkk; arc=pass (i=1 spf=pass spfdomain=mediatek.com dkim=pass dkdomain=mediatek.com dmarc=pass fromdomain=mediatek.com); spf=pass (google.com: domain of linux-wireless+bounces-2540-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2540-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com 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 D36761F236CD for ; Fri, 26 Jan 2024 10:00:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 371C8634F4; Fri, 26 Jan 2024 09:10:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="h6e8eUkk" X-Original-To: linux-wireless@vger.kernel.org Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) (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 793BC6341C for ; Fri, 26 Jan 2024 09:10:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.61.82.184 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706260209; cv=none; b=lCQyrm0jvLGGBqHVCS7tGcACmXLX6bqzXnP/Bbb4iPqCMy4ZCwhv7g+OgmnScCYVJCL6WWVfiHLOuZmyPtAoFZHIx1ZIHq0HBb1Zcx4DA6HbmWkBzc4uuyZzSccEVLuM/AxXkqiJ7Hc+fEki0UxFI6Fw92I7z4+weIwGP+FhZIU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706260209; c=relaxed/simple; bh=iQ50UnkfJ9pI/F2P/t14Iwlu+lRPaxoMbDXYBIB9DmA=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=rptO/VckHh32JKZsvgVkyjePHqo46xjYx11Mt5NZLLAyayiC+qVHxFQtF6mMy3KKl6dxXb+7oRErAhNnJSZehS3r71wLg95fDuAF3TGSF0QvaRPDqj2D/ezd2DW1V/ajZbMwSGRPcLRnkAQk2cfmNvoS8JRup4Rl8VHTP67+rrc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com; spf=pass smtp.mailfrom=mediatek.com; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b=h6e8eUkk; arc=none smtp.client-ip=210.61.82.184 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mediatek.com X-UUID: a91409c6bc2a11eea2298b7352fd921d-20240126 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=Sda5kZdyKKIJK2I43a9AKWlXy5NJNzHmEBQEBx80YOQ=; b=h6e8eUkkA0/+5HRFUVYRBrlQlycG6+aL1sWNgUwxA3kLWVDOO6C8mGF8cqOB7N0X4IEIChvWzp4gkT0wYCCoQghDRtIHaEDa9zn4AExDzzfmXOeDilsmziQ9qqCa0lQloBKovcoJGnKU8KvAK1dupDIjOPA7Vz7lkk4oPiWQUYw=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.36,REQID:ea83c1f0-465e-4022-9b6d-294f6f63ec51,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:6e16cf4,CLOUDID:f76e2efe-c16b-4159-a099-3b9d0558e447,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,RT:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES:1, SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0,NGT X-CID-BAS: 0,NGT,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-UUID: a91409c6bc2a11eea2298b7352fd921d-20240126 Received: from mtkmbs11n1.mediatek.inc [(172.21.101.185)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 193711143; Fri, 26 Jan 2024 17:09:50 +0800 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by mtkmbs13n2.mediatek.inc (172.21.101.108) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Fri, 26 Jan 2024 17:09:49 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs11n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Fri, 26 Jan 2024 17:09:49 +0800 From: Shayne Chen To: Felix Fietkau CC: linux-wireless , Lorenzo Bianconi , Ryder Lee , Evelyn Tsai , Bo Jiao , linux-mediatek , Howard Hsu , Shayne Chen Subject: [PATCH v2 06/12] wifi: mt76: mt7996: fix HE beamformer phy cap for station vif Date: Fri, 26 Jan 2024 17:09:17 +0800 Message-ID: <20240126090923.6357-6-shayne.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20240126090923.6357-1-shayne.chen@mediatek.com> References: <20240126090923.6357-1-shayne.chen@mediatek.com> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-MTK: N From: Howard Hsu 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 --- 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 0cf0d1fe420a..1a1a60744272 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.39.2