Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp14343860pxu; Mon, 4 Jan 2021 21:45:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJzZjePMrXonxUGjEGe41q4Sgph4g3Deso7JPfaghumGrwLzvVpj72Hjv/ioAr7dNSUeXP6+ X-Received: by 2002:a50:bac4:: with SMTP id x62mr73085286ede.59.1609825512408; Mon, 04 Jan 2021 21:45:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609825512; cv=none; d=google.com; s=arc-20160816; b=pKnWLq8eFxGby/zqGoH3rcj6O18XShXeLkZFUVSECLPIEkDNqAIPom9FHa34uvJVC/ ZBzwy0O+FHeM9ukwmFcH32OZQkwdrUBdW6dHYGTXN+jzuOcIm4JtCOgvzf+1TRgf1v6l xN6B1qkSbet91HvRRgbAPjEdweuB3H8i0CaTl7FCoEnI+0VQFfNBYa/uC8enicOC/rRq RGy1d3nR2FHcXPbX+7789slBrPWGHrjPBL9br6RmAQNFLZfwSYmyTTNAJQ9d/A+EpLkr dCSeYL85Ax365zrURl8ROZjr9Ohcj01qXk+kna2WGW+PZppzb7EZNnmbtjD1f0Jfv6pj J6NQ== 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=vjFhnDGaejrP9u6OuuJ++loZRWS5JeX8caqc/0wF9HI=; b=ZuVKF55CsmGqFIhMg8Jslw9z7t38hAjKQgJiEueLOakkaaHmHwG+quNuTpZLWJe7Nd 75GJOzHcHUlLAta3BeKgBr7bsugOByT2tk9ae2qi5y/Y8D5I3iIhVPE6XY9EG99XRxHm wS4zgR5+FxpuV5ID2YGX/ZIbq+1qm+XY0WL5Wao3vXYmfx0MlhyQXQXMXzHiN/Yf0G9s 2fbevAJO/X1dLOvoPjncpUghe+TxWOltYnT3hC5vNiudrUfdn1xlWsGJ37Vi0UkS92IG 3gj3XODmLmOA7rgbSwHgOJxGVVwRNyMaaMqCWUwpLkpiMBn5/ARjJA18DL0YMRWpLA/H MNSw== 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 k1si33629558eds.84.2021.01.04.21.44.50; Mon, 04 Jan 2021 21:45:12 -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 S1725860AbhAEFmD (ORCPT + 99 others); Tue, 5 Jan 2021 00:42:03 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:48595 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725298AbhAEFmD (ORCPT ); Tue, 5 Jan 2021 00:42:03 -0500 X-UUID: 8adb03f8b2104378908320709ffaf947-20210105 X-UUID: 8adb03f8b2104378908320709ffaf947-20210105 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] 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 690612232; Tue, 05 Jan 2021 13:41:20 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs02n2.mediatek.inc (172.21.101.101) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 5 Jan 2021 13:41:06 +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; Tue, 5 Jan 2021 13:41:07 +0800 From: Shayne Chen To: Felix Fietkau CC: linux-wireless , Lorenzo Bianconi , Ryder Lee , Evelyn Tsai , linux-mediatek , Shayne Chen Subject: [PATCH] mt76: mt7915: force ldpc for bw larger than 20MHz in testmode Date: Tue, 5 Jan 2021 13:41:00 +0800 Message-ID: <20210105054100.5905-1-shayne.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 88B7FD876DFEA7D8934A83C7DA8550940EC305058A3E12EC643712A684710EB92000:8 X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org LDPC should be set when bw is larger than 20MHz to make testmode tx work normally. Signed-off-by: Shayne Chen --- drivers/net/wireless/mediatek/mt76/mt7915/mac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/mac.c b/drivers/net/wireless/mediatek/mt76/mt7915/mac.c index dc1f56fb823d..e8787c336a55 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7915/mac.c +++ b/drivers/net/wireless/mediatek/mt76/mt7915/mac.c @@ -700,7 +700,7 @@ mt7915_mac_write_txwi_tm(struct mt7915_phy *phy, __le32 *txwi, if (mode >= MT_PHY_TYPE_HE_SU) val |= FIELD_PREP(MT_TXD6_HELTF, td->tx_ltf); - if (td->tx_rate_ldpc) + if (td->tx_rate_ldpc || bw > 0) val |= MT_TXD6_LDPC; txwi[6] |= cpu_to_le32(val); -- 2.29.2