Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3653908iog; Mon, 27 Jun 2022 23:04:19 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tSO2h9uSezlHubsIRGv2un4L8L2lkUeC8/y4zgoG9sjGpmmuOQctu/gT++oC0hhAJQFZCo X-Received: by 2002:a17:902:7792:b0:16a:463e:296c with SMTP id o18-20020a170902779200b0016a463e296cmr3353931pll.138.1656396259454; Mon, 27 Jun 2022 23:04:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656396259; cv=none; d=google.com; s=arc-20160816; b=xIsLO0tIAiKC9ZKGHYKMEeBicZOx+R4k10ls9aXzFZBBE1Es2jhnaHXDZiv2FeRH1m UO+O+bPp4+nppUTyqTJ0yNLxMorDerThKCjPXkm6GMDUJEdBXBXaIBl1ur/RVnjVelmB HAZtJA+Cb9BKhPAffNVWCKkxdE3ljy9Tcv3ggi++LDHYWbkbJHwuKuV2iDxiGG+c/HMw LnjnKwjdfnLW16CnBcI5q/xRTZnm15A8eFoqlK2BRF3Hs2BcWkAdcDHlKMUkbNecGTKy o22Tz/7csH+bx84AUm6frDix3J/IdBKydTcgWmHm5/N6YSNBamgeT7eCFA2lp8xu8W17 3ARA== 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=ctHwlI4ll4R7jGiLqeP++wn1NG99R558ZX0Jp7DLk7w=; b=EyvT/Cw+K73Wq5/IGgkEzdyU757cb27hOkyF+ZC2m9wVShKB2rSHLx1YJ5ZYc10NRd 7ymNRmvNddw1CXeMgfofRq8RBNlcpGu5ZrPatLyXub0BlWT+bCBklvK1l50ByRsbKv9c Z0UrvoiAGN9BXKzJRhzVEwPz8nVwdUI55kiAzwM5T+HEmm7Uv3H1PKyyBWfISAGjVmTm +BvRNMOQ6I2LD4C6pZVSRaWc50mDUzJnHFk0W65++ZxCAtoN3B1hBc2joSQefsdjov/r PwvRLGnhSGa2SUgo1LBG6t+yumB5opPBEmI79YNNuWiTQY2b5FcMkZ+9a0am4UXp5Ojq BJiQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e12-20020a170902f10c00b00163f5028fe7si12886887plb.365.2022.06.27.23.04.05; Mon, 27 Jun 2022 23:04:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239866AbiF1Fz7 (ORCPT + 64 others); Tue, 28 Jun 2022 01:55:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232779AbiF1Fz6 (ORCPT ); Tue, 28 Jun 2022 01:55:58 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79A3D27B15 for ; Mon, 27 Jun 2022 22:55:57 -0700 (PDT) X-UUID: 4eb8ad9389f04fed90acc73f1d64a985-20220628 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.7,REQID:ab428c2d-b4f0-4029-807a-cc8350e3e41c,OB:0,LO B:0,IP:0,URL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,RULE:Release_Ham,ACTI ON:release,TS:0 X-CID-META: VersionHash:87442a2,CLOUDID:dd0df585-57f0-47ca-ba27-fe8c57fbf305,C OID:IGNORED,Recheck:0,SF:nil,TC:nil,Content:0,EDM:-3,IP:nil,URL:0,File:nil ,QS:nil,BEC:nil,COL:0 X-UUID: 4eb8ad9389f04fed90acc73f1d64a985-20220628 Received: from mtkmbs11n1.mediatek.inc [(172.21.101.185)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 650246329; Tue, 28 Jun 2022 13:55:50 +0800 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.3; Tue, 28 Jun 2022 13:55:49 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs11n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.3 via Frontend Transport; Tue, 28 Jun 2022 13:55:49 +0800 From: MeiChia Chiu To: Felix Fietkau CC: Lorenzo Bianconi , Shayne Chen , Evelyn Tsai , Ryder Lee , , , MeiChia Chiu , MeiChia Chiu Subject: [PATCH] mt76: mt7915 add ht mpdu density Date: Tue, 28 Jun 2022 13:55:28 +0800 Message-ID: <20220628055528.19804-1-MeiChia.Chiu@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: MeiChia Chiu set ht mpdu density to 4 usec. Reviewed-by: Ryder Lee Signed-off-by: MeiChia Chiu --- drivers/net/wireless/mediatek/mt76/mt7915/init.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/init.c b/drivers/net/wireless/mediatek/mt76/mt7915/init.c index c0f4f2053738..8521f7b2cff8 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7915/init.c +++ b/drivers/net/wireless/mediatek/mt76/mt7915/init.c @@ -369,15 +369,20 @@ mt7915_init_wiphy(struct ieee80211_hw *hw) hw->max_tx_fragments = 4; - if (phy->mt76->cap.has_2ghz) + if (phy->mt76->cap.has_2ghz) { phy->mt76->sband_2g.sband.ht_cap.cap |= IEEE80211_HT_CAP_LDPC_CODING | IEEE80211_HT_CAP_MAX_AMSDU; + phy->mt76->sband_2g.sband.ht_cap.ampdu_density = + IEEE80211_HT_MPDU_DENSITY_4; + } if (phy->mt76->cap.has_5ghz) { phy->mt76->sband_5g.sband.ht_cap.cap |= IEEE80211_HT_CAP_LDPC_CODING | IEEE80211_HT_CAP_MAX_AMSDU; + phy->mt76->sband_5g.sband.ht_cap.ampdu_density = + IEEE80211_HT_MPDU_DENSITY_4; if (is_mt7915(&dev->mt76)) { phy->mt76->sband_5g.sband.vht_cap.cap |= -- 2.36.1