Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2168721iof; Tue, 7 Jun 2022 22:01:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdl9zIQ+ZB1qz8hQ0VupjIxNF9fcavTTIjMW04p9FQCkOsv6f3reTcS3L5Y7Sf8zz6816F X-Received: by 2002:a17:90b:33cd:b0:1e2:a03c:a4b1 with SMTP id lk13-20020a17090b33cd00b001e2a03ca4b1mr61180585pjb.49.1654664514224; Tue, 07 Jun 2022 22:01:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654664514; cv=none; d=google.com; s=arc-20160816; b=beGkCS2J9vHSgo/oEYEpA3OqFhvC78Ekx69h8C1lJQLbfDKMKdlNSQVdMukrczTsbE Bad101b3OoAMfAuNdBsmQx7W/dRF0agVFhsWYakBFet+iCYLYPP7nhvbdt4++xAsuISA rdTeveGkhUqhuNmubIgyvPjQJjk1b0ltidb5Kr/D1aQOLuB+vHriiuB+POOhbIzHzNHt fn1gDh6kN8Tsrlwon0rwrc4AoBG37ZwdSZR06VZBgd7Z26fFD4oHL5azwljY78fk3Xkb t1ghFPsxIaVSmzNUHtwfnNbMp+5sHiiggZItUlg/qgSTE7MW++Fa99pF327KDZw6XLiC hmKw== 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=R0vLSSaLt5r5ifuS5wMq7v/9gykp2ggwQbscggvKvNI=; b=ClTlq75QjByWHhw6YpPjNH4ehNRXNdXoSKYZzjx2luVNdx3qgVTkis0dOyeC/vw0ZW +3XB+hAOg1hgsVf3QubwKYPwKjICzpDP8exyp0pUwqkhQQb17i5Mxs8wZ/7+0uCYguKv QZk2065+0f/Gm7ERmx3PEjQ/MuwPiwChibJvYjMTFi/NUWgd+74EhAcBTkP3sNwNkSdh eyPkxbfE9TuCkGIwnHuvmPxJLzx2PKnh9WCT7yfzMx5fk1l5XC8UIq3Eh6hoHkZ5w2KD bxZ9kCyUQRSIT7fMqCw92B0lKoZGKdlmcYoPJF7ELBa48Lyh+RtPRpwPkBCo+KDf0sYo w1pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=OyZBzEgc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id w15-20020a170902a70f00b00161558a437fsi24737082plq.160.2022.06.07.22.01.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 22:01:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=OyZBzEgc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D356A3DEB54; Tue, 7 Jun 2022 21:29:52 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1386132AbiFGWsB (ORCPT + 99 others); Tue, 7 Jun 2022 18:48:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380822AbiFGViz (ORCPT ); Tue, 7 Jun 2022 17:38:55 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 518E233E39; Tue, 7 Jun 2022 12:05:40 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 7931BCE249F; Tue, 7 Jun 2022 19:05:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 62816C341C4; Tue, 7 Jun 2022 19:05:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654628736; bh=VvEMwFTsWdTGPEoYmkCgqck1dH6F3jcTrr8S+0Olq6o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OyZBzEgcsOdHoec92xQZXNvGZmJfRaSVX/INX6tc6Z6mHzgY6hZCHZR5NQ8jIaTSW rYpp9xjf4M45wJVuyxMKSsbN4uxDUvpYkqAd/iVALLyi4L07vL4zGIvH/z/0YHX8Ak k64Q+P+XfXmapEU1zZ3+MEpSk8ogzmpo1m7z6Tfk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Deren Wu , Felix Fietkau , Sasha Levin Subject: [PATCH 5.18 437/879] mt76: fix antenna config missing in 6G cap Date: Tue, 7 Jun 2022 18:59:15 +0200 Message-Id: <20220607165015.554653307@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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-kernel@vger.kernel.org From: Deren Wu [ Upstream commit abba345311a740d9dca1b5eb293b3b1c296715dd ] 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: edf9dab8ba27 ("mt76: add 6GHz support") Signed-off-by: Deren Wu Signed-off-by: Felix Fietkau Signed-off-by: Sasha Levin --- 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 5b53d008eb66..917ea20c026b 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.35.1