Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp188663pxb; Wed, 24 Feb 2021 23:04:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJwaLgENigWS4xtJBveopec/UhgKGI8s/HUua9YSHC40d+CbGNQjivgYGjc4lnPLdNBHi4W1 X-Received: by 2002:a50:fc0e:: with SMTP id i14mr1484317edr.91.1614236690759; Wed, 24 Feb 2021 23:04:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614236690; cv=none; d=google.com; s=arc-20160816; b=uKW2cKImScXl0S2K5363TUzSJ3rB3Xk/s2paa+RVwHQBQMVQHkw+YsHX3kM0k/eSE0 6/+N8E4MkZokSGRmActx7MRgq1wmq6H14iaqACu/9sYhRJFJ7ywAQcHd8kHESefJ4Gxj mbAfD59/HblkFua0wG71lflG/RMr7xoSy4fhGP++mF7ihlqaEuSHdGMxnvofF8ldGj8X 4R5gLT2AzKObyhi77EptvQYgEMK1zq9+ulRAEitv02RG1qeHR6OArq66Q+gPiXICDQwY 6pwGd+SPDsBGAvb0v8ftAq1KQHXwr0DUe519qfkkigJqIq0XMcmilrat4oCq2omJ6/XA Infw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=4OFKVLC+HnT96nhUzgbL007AtW5MbK5hCo4xMBECZDs=; b=gJtXxdc8t7neWVoSi9MCMoySGQR0mUCvWIi0lPyPxBJdboOh+WUt+VpgsfDWg2IVZb WFkm0zF5h2jt92DcGp63daK2eKAFZNbzw5rtmttO3lz5iBMoAQQuN5+fRb9melcSHG2K 75GAVvb5sWx35/VTUm8hkTmT9zuNZgfKievCme9RUbc2caXM8jXIpfjiCupav5TUhy3X fkArqvWvxTqrOTJo3+ZnK8wXC/uWJ13XJ2kVyBbSl45305XfZ37Vn+aeExHbO5+WUA/y eW0vFvCi+KiTxCt2GHAzOryu6rYO2eguFOcChxF7F+FwRDaywZCa2FmT5tfEx07uegz4 1c8A== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f7si2793718eja.553.2021.02.24.23.04.27; Wed, 24 Feb 2021 23:04:50 -0800 (PST) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232982AbhBYG4m (ORCPT + 99 others); Thu, 25 Feb 2021 01:56:42 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:36820 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S232429AbhBYG4k (ORCPT ); Thu, 25 Feb 2021 01:56:40 -0500 X-UUID: cd16b42e45084b0396e63f7a149c83bc-20210225 X-UUID: cd16b42e45084b0396e63f7a149c83bc-20210225 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1416992479; Thu, 25 Feb 2021 14:55:51 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs06n2.mediatek.inc (172.21.101.130) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 25 Feb 2021 14:55:50 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 25 Feb 2021 14:55:50 +0800 From: Ryder Lee To: Felix Fietkau , Lorenzo Bianconi CC: Shayne Chen , , , Ryder Lee Subject: [PATCH 2/2] mt76: mt7615: add missing capabilities for DBDC Date: Thu, 25 Feb 2021 14:55:48 +0800 Message-ID: <6db470fc868e6215f969690ce04d50a595d7fe4c.1614235992.git.ryder.lee@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: B9272D57C3D5D59240B9C754354933433CC29B38BD304882B8575962BEFA927B2000:8 X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Same as mt7915, this should improve performance. Signed-off-by: Ryder Lee --- drivers/net/wireless/mediatek/mt76/mt7615/init.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/init.c b/drivers/net/wireless/mediatek/mt76/mt7615/init.c index 88a2ee7e7143..fced902d11bc 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7615/init.c +++ b/drivers/net/wireless/mediatek/mt76/mt7615/init.c @@ -368,6 +368,17 @@ mt7615_init_wiphy(struct ieee80211_hw *hw) hw->max_tx_fragments = MT_TXP_MAX_BUF_NUM; else hw->max_tx_fragments = MT_HW_TXP_MAX_BUF_NUM; + + if (phy->mt76->cap.has_2ghz) + phy->mt76->sband_2g.sband.ht_cap.cap |= + IEEE80211_HT_CAP_LDPC_CODING; + + if (phy->mt76->cap.has_5ghz) { + phy->mt76->sband_5g.sband.ht_cap.cap |= + IEEE80211_HT_CAP_LDPC_CODING; + phy->mt76->sband_5g.sband.vht_cap.cap |= + IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK; + } } static void @@ -505,10 +516,6 @@ void mt7615_init_device(struct mt7615_dev *dev) mt7615_init_wiphy(hw); dev->pm.idle_timeout = MT7615_PM_TIMEOUT; - dev->mphy.sband_2g.sband.ht_cap.cap |= IEEE80211_HT_CAP_LDPC_CODING; - dev->mphy.sband_5g.sband.ht_cap.cap |= IEEE80211_HT_CAP_LDPC_CODING; - dev->mphy.sband_5g.sband.vht_cap.cap |= - IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK; mt7615_cap_dbdc_disable(dev); dev->phy.dfs_state = -1; -- 2.18.0