Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1575222iog; Thu, 16 Jun 2022 09:05:56 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tzXce0PLOyZHpmrQohEEmLFfLrHwDRPCG1M/NSjeT0uEuseuC7iiptTHpd1Hu6qLOKXQ++ X-Received: by 2002:a63:89c1:0:b0:3fc:6001:e871 with SMTP id v184-20020a6389c1000000b003fc6001e871mr5188050pgd.14.1655395556188; Thu, 16 Jun 2022 09:05:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655395556; cv=none; d=google.com; s=arc-20160816; b=B9776gpEijjFS3E2hFCh+KTTPxU3MtP0TmuB06UrBbJcg0VN8qsdZXtvPe3O00CQXF znRVsnRmeXw2vUAFTwLYg0b0vlAW41xxdVLXWtHYpN5jsZUDXmobHe2TF/4RqL9oHZ44 0zJdkBEBH9QuNjA4xG8CszR1/Y/woMSwMOcPILW7C2oRpL2vPwmA3EKQCdeRJvgFGrC2 PRWvPSrh6lO9QgsK4cCA+MvJ6G9WvwKg4pqQ4lEaEdv9LNPxB9vhURzNWWXzYnRAsNKN tpeGDkmL667FlrfoUwo1My+8gV/84LfQPPQaIR4LKSfqQ3SIOYibZVFBpm3IdmIrlSuc aWuQ== 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=WIN8hXMndbXOrePxCEgHXi78LrHqL3k2XKGAYtdZ0Gg=; b=zksk77b4vixZ9g5qXid4o46NirSE1NxVpNagYHJvwCrroO+a7ybsLc0/5irsEYj6mp jSCtAaB1MiLsgPIEa9dm+udC33T/64hxMTINXwT1940q3GI6G4+3nzHOx+HSUb2SB8bo ORILHIlrAJp05DMV/smxW6zqKY6FjQTwVB5+UrxDCACf2fNQNMfhHAI2ta3lH+GVjl3F opx705/NkqMWvaA7mh4VgL4VC6Xns+iX2ustwsigC8cHYhoeAyXBJ9/lYchDdFvHAxlL BjjWYHmbUsG+qeay7zhz/eaDi9+fRT1wkGWjZwGUzQOqOUIvH39aCU2dA9wXe/GoeYUq UVpw== 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 f10-20020a056a00228a00b00518be006107si3510205pfe.116.2022.06.16.09.05.41; Thu, 16 Jun 2022 09:05:56 -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 S1378028AbiFPP7Y (ORCPT + 65 others); Thu, 16 Jun 2022 11:59:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377849AbiFPP7P (ORCPT ); Thu, 16 Jun 2022 11:59:15 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82CB04476E for ; Thu, 16 Jun 2022 08:59:07 -0700 (PDT) X-UUID: 453eb64f936d4c65b503a9ff8ba2f61b-20220616 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.6,REQID:649caeb3-e6dd-40f3-b9e2-822b9e96e526,OB:0,LO B:0,IP:0,URL:5,TC:0,Content:0,EDM:0,RT:0,SF:95,FILE:0,RULE:Release_Ham,ACT ION:release,TS:100 X-CID-INFO: VERSION:1.1.6,REQID:649caeb3-e6dd-40f3-b9e2-822b9e96e526,OB:0,LOB: 0,IP:0,URL:5,TC:0,Content:0,EDM:0,RT:0,SF:95,FILE:0,RULE:Spam_GS981B3D,ACT ION:quarantine,TS:100 X-CID-META: VersionHash:b14ad71,CLOUDID:ff6fc648-4c92-421c-ad91-b806c0f58b2a,C OID:274bb5bdba26,Recheck:0,SF:28|17|19|48,TC:nil,Content:0,EDM:-3,IP:nil,U RL:1,File:nil,QS:nil,BEC:nil,COL:0 X-UUID: 453eb64f936d4c65b503a9ff8ba2f61b-20220616 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1233452603; Thu, 16 Jun 2022 23:59:01 +0800 Received: from mtkmbs11n1.mediatek.inc (172.21.101.185) by mtkmbs11n1.mediatek.inc (172.21.101.185) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.3; Thu, 16 Jun 2022 23:59:00 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs11n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.3 via Frontend Transport; Thu, 16 Jun 2022 23:59:00 +0800 From: Deren Wu To: Felix Fietkau , Lorenzo Bianconi CC: Sean Wang , Soul Huang , YN Chen , Leon Yen , Eric-SY Chang , Deren Wu , KM Lin , Robin Chiu , CH Yeh , Posh Sun , Eric Liang , Stella Chang , Evelyn Tsai , Ryder Lee , Shayne Chen , linux-wireless , linux-mediatek , Deren Wu Subject: [PATCH] mt76: mt7921: fix aggregation subframes setting to HE max Date: Thu, 16 Jun 2022 23:57:43 +0800 Message-ID: <7f5145276d732cb4aebcbffd6fc4a5eb852dd3be.1655393246.git.deren.wu@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,T_SCC_BODY_TEXT_LINE, T_SPF_HELO_TEMPERROR,T_SPF_TEMPERROR,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: Deren Wu mt7921/mt7922 support HE max aggregation subframes 256 for both tx/rx. Get better throughput then before. Fixes: 94bb18b03d43 ("mt76: mt7921: fix max aggregation subframes setting") Tested-by: Ming Yen Hsieh Reviewed-by: Sean Wang Signed-off-by: Deren Wu --- drivers/net/wireless/mediatek/mt76/mt7921/init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7921/init.c b/drivers/net/wireless/mediatek/mt76/mt7921/init.c index 48a10aaecc62..7b4766ea55bc 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7921/init.c +++ b/drivers/net/wireless/mediatek/mt76/mt7921/init.c @@ -52,8 +52,8 @@ mt7921_init_wiphy(struct ieee80211_hw *hw) struct wiphy *wiphy = hw->wiphy; hw->queues = 4; - hw->max_rx_aggregation_subframes = 64; - hw->max_tx_aggregation_subframes = 128; + hw->max_rx_aggregation_subframes = IEEE80211_MAX_AMPDU_BUF_HE; + hw->max_tx_aggregation_subframes = IEEE80211_MAX_AMPDU_BUF_HE; hw->netdev_features = NETIF_F_RXCSUM; hw->radiotap_timestamp.units_pos = -- 2.18.0