Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1634703pxb; Thu, 4 Mar 2021 17:04:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJy95Jl1pYjgxcOnDh/gYKJTHZcH/ok0lP9mlf7Kgo8N/05ymWO6MO06cuViE/H3/b22S2EI X-Received: by 2002:a92:611:: with SMTP id x17mr6702068ilg.261.1614906298888; Thu, 04 Mar 2021 17:04:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614906298; cv=none; d=google.com; s=arc-20160816; b=nHkVsu8iXq0Z2sFCp9F9FITVUt8fxc8lSI7mQem193J0yMtetiHRpPGgfWVr1MRsmQ isaJC1nKRGaTggb9yDZMgjALhKrs1V4n2R2Y1aTsqtBHFT4esAV4qrmdMxAKaHFiSHZC vQXm4qKKFTM8CftSPLKxc2Qv5gvMAJUBBCTL6gN3azmD5BrFrcLsW2YfONkgvObcUyGn OAq0qYM4DgCZByq3fEAGB65CPC7F/bvs7hppzz0RZUNgPn2sNL3Ab6HlRPQHbZY3wGve hfLCVIJ5xMrmRrhY/7olnAr3jYdQhaGBeZg3Ou/aFJe77KQj/2UjPjnqPARK20TjNZTB ZLvA== 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=QEVrlmsLggUDrflmHSHGotUWxm58/Ef3IyzzzWnXcJg=; b=PbqJcxc1STBA0BYRojr3P7YTHYDw4i3mcjQlR+sglNaD9qM4ROvv5JQEkYeqxowlM/ SeDb5B1HS6Z7UUu+K+VpycstlDmBZKfp/ONK5bjDNdN3dR0OOP71oFNbzqFI6xYzJIQu F2xeS7w/scmZr4Py/yaXX5qNNWei1KjYpnlDnYWLo26NepTJbIbWDgnQBe+0L4NoSF4y BOknFJP4fqOqKQQnGfJUaFD6cOO11BNYtTySYGBR63L9R5rsXhQEG6qW//7fklAsJHeO c8vFRcj7f4k6ZBSsKOE3uAODWTbwGtZaNRts4xasEwgYe5hPeo4BgY+gJE5tztQXu/Fg YMzA== 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 c5si822558jam.17.2021.03.04.17.04.45; Thu, 04 Mar 2021 17:04:58 -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 S230058AbhCEAWY (ORCPT + 99 others); Thu, 4 Mar 2021 19:22:24 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:53041 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S230135AbhCEAWU (ORCPT ); Thu, 4 Mar 2021 19:22:20 -0500 X-UUID: dfc1fef1f77d4d6387074c55aa30bc8b-20210305 X-UUID: dfc1fef1f77d4d6387074c55aa30bc8b-20210305 Received: from mtkmrs01.mediatek.inc [(172.21.131.159)] by mailgw01.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 2087061753; Fri, 05 Mar 2021 08:22:16 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs06n1.mediatek.inc (172.21.101.129) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 5 Mar 2021 08:22:15 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 5 Mar 2021 08:22:15 +0800 From: Ryder Lee To: Felix Fietkau , Lorenzo Bianconi CC: Shayne Chen , , , Ryder Lee Subject: [PATCH v5] mt76: mt7615: add missing capabilities for DBDC Date: Fri, 5 Mar 2021 08:22:14 +0800 Message-ID: <58c50d543644554898894b90538c392bf672f851.1614901979.git.ryder.lee@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org This improves performance for second phy. Signed-off-by: Ryder Lee --- change since v5 - drop cap.has_* checks to fix order issue. change since v4 - fix init order. change since v3 - none. change since v2 - adjust setup sequence. --- drivers/net/wireless/mediatek/mt76/mt7615/init.c | 9 +++++---- 1 file changed, 5 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..c59043195870 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7615/init.c +++ b/drivers/net/wireless/mediatek/mt76/mt7615/init.c @@ -368,6 +368,11 @@ 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; + + phy->mt76->sband_2g.sband.ht_cap.cap |= IEEE80211_HT_CAP_LDPC_CODING; + 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 +510,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