Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1287398pxb; Thu, 4 Mar 2021 07:48:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJzdNInnnyW5nWWKTi+oQPxLkShY/XM3/ZUiVSCafuLaf49ackszmHECJJc2JrVqWXIClAeX X-Received: by 2002:a17:906:a099:: with SMTP id q25mr4861615ejy.549.1614872924970; Thu, 04 Mar 2021 07:48:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614872924; cv=none; d=google.com; s=arc-20160816; b=J6yIE+7DsS6Ke2krjK1ZNuqCNdjQRfeNSm70ZkdSlUwAvu799yRY7/h2s6SGEOPOeO 2lOD2SyjmjGSaL4jNnD5zydMF44fA6PtoqQRgiCLTyv3/dCZa5HA5Teypo/7n02mmoUH pGFnWwcVCrJvcTIIPK5YVpAZUY+LvC9gZloBaFjg6VvCwMfD7qVACgxX4VhD6s0zmSuI L16T0WXjm826yQtoArRxAaQ9Nl2wt6ErzCfvTWC/dK3gSF5nSvPNbg1LQSWZWJdDlKyU ayHmvg9HSOGOYxX55hyUqKskveqQU35gBV5GwadFRrwHYrQrvpo+4SGFlrkJIySmMe41 HwQg== 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=D2CUvOlEGG78pbWvGTJEa7jBj5GHsyRTO2eFgzcERIM=; b=sV5Opj6OWEk4iZNn6GaGIyG2sRywc1+cTSdIHqSbz3C+8tLqoui9kFulw+yQLdw+7F OFPyIJ/RurTec7oy68XMdR1nTzosKZt2FTXsaef0PDrChhPbZ5xMuu8PfdbhQKBWb/We vzvyvsA9znfGcMVIDxFsUV/aNZXLOaAkP893qSSaV3cLtdTEUHtrBuCaXEt/0bRJfVoO c5Djl3meVJX5rxwdcMCXp1tejH/+QN8iPjXYNqzlkkkcJgMr3LkEyPNk6wge0BcORDHC 4gccHZX3hvDKyh8HsL/DSmgplFdYJTk2T8JujWoWz/la7jaosac4Dx6CTfes7cmnnP8a iQWA== 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 y23si18317004eds.278.2021.03.04.07.48.20; Thu, 04 Mar 2021 07:48:44 -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 S231585AbhCDJD5 (ORCPT + 99 others); Thu, 4 Mar 2021 04:03:57 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:36366 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S237264AbhCDJDb (ORCPT ); Thu, 4 Mar 2021 04:03:31 -0500 X-UUID: 9679b7cff3b14b269bcb494dabc073fd-20210304 X-UUID: 9679b7cff3b14b269bcb494dabc073fd-20210304 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] 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 1959357008; Thu, 04 Mar 2021 17:02:47 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs06n2.mediatek.inc (172.21.101.130) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 4 Mar 2021 17:02:44 +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; Thu, 4 Mar 2021 17:02:44 +0800 From: Ryder Lee To: Felix Fietkau , Lorenzo Bianconi CC: Shayne Chen , , , Ryder Lee Subject: [PATCH v4] mt76: mt7615: add missing capabilities for DBDC Date: Thu, 4 Mar 2021 16:55:05 +0800 Message-ID: <0573b06759c90309b5a6a6e2b6b95796e7db60c7.1614843966.git.ryder.lee@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 963A089E76DA1727F5AD6D7B82587DDEB008139ED7B7D853073BDBB8C5E468822000:8 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 v4 - fix init order. change since v3 - none. change since v2 - adjust setup sequence. --- drivers/net/wireless/mediatek/mt76/mt7615/init.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/init.c b/drivers/net/wireless/mediatek/mt76/mt7615/init.c index 88a2ee7e7143..e70e852c1af8 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7615/init.c +++ b/drivers/net/wireless/mediatek/mt76/mt7615/init.c @@ -448,6 +448,9 @@ int mt7615_register_ext_phy(struct mt7615_dev *dev) /* second phy can only handle 5 GHz */ mphy->cap.has_5ghz = true; + mphy->sband_5g.sband.ht_cap.cap |= IEEE80211_HT_CAP_LDPC_CODING; + mphy->sband_5g.sband.vht_cap.cap |= + IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK; /* mt7615 second phy shares the same hw queues with the primary one */ for (i = 0; i <= MT_TXQ_PSD ; i++) -- 2.18.0