Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2400441pxj; Sun, 6 Jun 2021 00:55:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyaa0DcS3YoOIJuxY51drxC18K25ijpLLVzYmEVFP8OaYGJ1gZdxivFPz/LgO9znwYgAXTp X-Received: by 2002:a17:906:13cb:: with SMTP id g11mr12438635ejc.169.1622966110708; Sun, 06 Jun 2021 00:55:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622966110; cv=none; d=google.com; s=arc-20160816; b=KNhcvqTRJ6z7LBuLUPZEWBySYmAbtshMeEcM6jQDkKvP5KqReYY6M4dYmWsEHT9i2I KSCPkLiJw/sA+zgm691FyNEE0eOVn6+wUdSw14zylQnUEoLGrQOg2RIoUFiIEGYrEbJ6 qBBPFeZjtSrY06iUYdyKrbl0iwqVsVXXznC9cQtAfBh7SeHtMI8W6J1Q9lWoBAmoyGhR 1Q3Hk6NKommYppS4Yh2R4aVLq4FZtd63H9d0uxv9B4EyRxTrxgHDfSoWZ/JFBeGIFdKt suKZlI5Gn4cTsGVq9p03mkEGXzy5Kl5rnLOjKGgxx2cSElROoH1Z/1DtWKEaDv22He/Y hvgw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=3TYLAwAr9BYAZhu8Z8iErL3tTOVG8cYhBABdtRu4tW4=; b=KeTF5DYzvlDeaefZ40MmDU4aB1pLiE93EsNrVd+AYHHob3t5IAcHi88VjUVRhN+aij WU09jkQG1cN19jeKSac28Lc42XTlwjdqtNSWF8i80QSZGizRENtlOeQ7P6jRG3PRIC/k cbctw5ep+7y15IY6D+sYFRxnLlQYHoB27lO/OXOKLSWmN9OzdI0T1Re0dMoAhrgeWyCA tONBzujcNOZSh2th7pEMude0EXdVjsMbWIrlth2z4696Q6AlkDBlrjpnacss9SrowaHo ciQd99h1eaZ31HQm78BdDMSxvqQfIWuw8NQl70RKUKW8/hZPM+CIl38I03yJsKd1cowT F1ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=PSzEVMHT; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y1si5740299edc.159.2021.06.06.00.54.39; Sun, 06 Jun 2021 00:55:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=PSzEVMHT; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230134AbhFFHxF (ORCPT + 99 others); Sun, 6 Jun 2021 03:53:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230131AbhFFHxF (ORCPT ); Sun, 6 Jun 2021 03:53:05 -0400 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77F4DC061766 for ; Sun, 6 Jun 2021 00:51:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject :Cc:To:From:Sender:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=3TYLAwAr9BYAZhu8Z8iErL3tTOVG8cYhBABdtRu4tW4=; b=PSzEVMHTtx07ROI7LUlVZzhzgX XclZ2buOs3xxMa0lIZtGIbPmmk9SUKBRVlNimSYfPzJQLYC3TR7fc5VFtd++/URKv2MQRp8mmGn1Y 11xBkHZTI6RQ1yFqIwbGXfnIgFsr12SsrSb/JOn4tIZ7DL9fhwQQhSZRzWhJCzcabLbg=; Received: from p54ae9ff2.dip0.t-ipconnect.de ([84.174.159.242] helo=localhost.localdomain) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1lpnYu-0007dP-IQ; Sun, 06 Jun 2021 09:51:12 +0200 From: Felix Fietkau To: linux-wireless@vger.kernel.org Cc: deren.wu@mediatek.com Subject: [PATCH v2] mt76: mt7921: enable VHT BFee capability Date: Sun, 6 Jun 2021 09:51:07 +0200 Message-Id: <20210606075107.343-1-nbd@nbd.name> X-Mailer: git-send-email 2.30.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Enables VHT beamformee functionality Signed-off-by: Leon Yen Signed-off-by: Deren Wu Signed-off-by: Felix Fietkau --- drivers/net/wireless/mediatek/mt76/mt7921/init.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7921/init.c b/drivers/net/wireless/mediatek/mt76/mt7921/init.c index 19ce9ca72542..021abd75e522 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7921/init.c +++ b/drivers/net/wireless/mediatek/mt76/mt7921/init.c @@ -215,7 +215,11 @@ int mt7921_register_device(struct mt7921_dev *dev) IEEE80211_HT_CAP_MAX_AMSDU; dev->mphy.sband_5g.sband.vht_cap.cap |= IEEE80211_VHT_CAP_MAX_MPDU_LENGTH_7991 | - IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK; + IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK | + IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE | + IEEE80211_VHT_CAP_MU_BEAMFORMEE_CAPABLE | + (3 << IEEE80211_VHT_CAP_BEAMFORMEE_STS_SHIFT); + dev->mphy.hw->wiphy->available_antennas_rx = dev->mphy.chainmask; dev->mphy.hw->wiphy->available_antennas_tx = dev->mphy.chainmask; -- 2.30.1