Received: by 2002:a05:6a10:144:0:0:0:0 with SMTP id 4csp1011087pxw; Sat, 9 Apr 2022 08:16:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/4qnyhnpC4wXplrRgD3hjBMUPZnT+bYDXtiefQF99h1e0PTZA/3P0NUSgmPCIsMpeo/I6 X-Received: by 2002:a63:f201:0:b0:399:2b10:3433 with SMTP id v1-20020a63f201000000b003992b103433mr19348929pgh.285.1649517400633; Sat, 09 Apr 2022 08:16:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649517400; cv=none; d=google.com; s=arc-20160816; b=z7j7MCMHs+oHFjNynucL0JwJweB71GpVb18XybDe/MSIqaSbyOE1ogwKaW5Anu2C4+ oEXBitCF9rR9vN3SLffU/s/PRch3K0jZ5Zx2a18eT+ffBTElVjPuqEqI8DBTN3yO3D97 CaBSickqrNZiDhRAOQZ+92fM4eo48AGjvHcUyglmW+8CJGhCUjCSMnDhm+eMOVtrbaH/ AlfZ7ujAFmQKsRB0XAwLDQaR6HL7BwtQbl0/dCe49SKKZlT/XKWlgKUdh0jShpWVEsqV 8cn/5pCyO7fqGPoPiC3Dd+lASrjLI5Ogp7quFmTJNCslGfZ3kyqVxs0NS3pEU7Erpp2n yx+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=zEO8acxWib3o3+iiSIy3i1T6q4wYkjULvsN977U8+tQ=; b=r2lAGXR6e2eo7myA9iuHowS0LExOgIeFrFhElAYu8W4kIGBq3WgFGvIGMKJLRiaPdQ nzIGUj2oSXLOiGVLX8Do+aSMawpzFNL6P4ssfN8BCGsd6ipAwcYruRv14CdCPYqyWLxN r7rTLPq3s7tTZ88NBowrwVawk/AHm6ohdLSPoRDHDLawgsCKhfeFBDEaJLYKj0rehkk3 6BErGClAoKzkkGf4gA08OOHrq6+Hwph/08Dj5BiH1PUp0OCD+m/IC6tZtkvqLZNPXoxs RkZ8yBo1ewlStVCn9DK13uk6wfRgXXJVbWGPofHzUjUPF3E0h8hb7PUr72T4YZ6INXl+ XTMA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l4-20020a63be04000000b00398178a11f3si4299392pgf.467.2022.04.09.08.16.15; Sat, 09 Apr 2022 08:16:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242228AbiDINrA (ORCPT + 69 others); Sat, 9 Apr 2022 09:47:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242234AbiDINq7 (ORCPT ); Sat, 9 Apr 2022 09:46:59 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E22279BAC4 for ; Sat, 9 Apr 2022 06:44:48 -0700 (PDT) X-UUID: 601a400f306a40849f43d1ef05bc5ac4-20220409 X-UUID: 601a400f306a40849f43d1ef05bc5ac4-20220409 Received: from mtkmbs10n2.mediatek.inc [(172.21.101.183)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1519573908; Sat, 09 Apr 2022 21:44:43 +0800 Received: from mtkexhb01.mediatek.inc (172.21.101.102) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.15; Sat, 9 Apr 2022 21:44:42 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkexhb01.mediatek.inc (172.21.101.102) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 9 Apr 2022 21:44:42 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 9 Apr 2022 21:44:41 +0800 From: Deren Wu To: Felix Fietkau , Lorenzo Bianconi CC: Sean Wang , Soul Huang , YN Chen , Leon Yen , "Eric-SY Chang" , Deren Wu , KM Lin , Robin Chiu , CH Yeh , Posh Sun , Eric Liang , Stella Chang , "Evelyn Tsai" , Ryder Lee , "Shayne Chen" , linux-wireless , linux-mediatek , Deren Wu Subject: [PATCH] mt76: fix antenna config missing in 6G cap Date: Sat, 9 Apr 2022 21:44:07 +0800 Message-ID: <357763fe0b112838d500422a27b114b4281adb9a.1649511465.git.deren.wu@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Deren Wu To make sure we have the proper antenna config in 6g cap, move IEEE80211_VHT_CAP_[T/R]X_ANTENNA_PATTERN to stream init. Fixes: f1103fa6b3492 ("mt76: add TX/RX antenna pattern capabilities") Signed-off-by: Deren Wu --- drivers/net/wireless/mediatek/mt76/mac80211.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mac80211.c b/drivers/net/wireless/mediatek/mt76/mac80211.c index 026ab1e16d45..2dd3ebd1863f 100644 --- a/drivers/net/wireless/mediatek/mt76/mac80211.c +++ b/drivers/net/wireless/mediatek/mt76/mac80211.c @@ -248,6 +248,8 @@ static void mt76_init_stream_cap(struct mt76_phy *phy, vht_cap->cap |= IEEE80211_VHT_CAP_TXSTBC; else vht_cap->cap &= ~IEEE80211_VHT_CAP_TXSTBC; + vht_cap->cap |= IEEE80211_VHT_CAP_TX_ANTENNA_PATTERN | + IEEE80211_VHT_CAP_RX_ANTENNA_PATTERN; for (i = 0; i < 8; i++) { if (i < nstream) @@ -323,8 +325,6 @@ mt76_init_sband(struct mt76_phy *phy, struct mt76_sband *msband, vht_cap->cap |= IEEE80211_VHT_CAP_RXLDPC | IEEE80211_VHT_CAP_RXSTBC_1 | IEEE80211_VHT_CAP_SHORT_GI_80 | - IEEE80211_VHT_CAP_RX_ANTENNA_PATTERN | - IEEE80211_VHT_CAP_TX_ANTENNA_PATTERN | (3 << IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_SHIFT); return 0; -- 2.18.0