Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2927293rwb; Mon, 15 Aug 2022 14:12:42 -0700 (PDT) X-Google-Smtp-Source: AA6agR54KdALesd4f4Ou9io/xIO34j3jHB0WrOpEdJEY1CHHAnLVc5oKrnAqdBQ0XdN70yRFn7FU X-Received: by 2002:a17:90b:1e08:b0:1f5:1f0d:3736 with SMTP id pg8-20020a17090b1e0800b001f51f0d3736mr29859079pjb.58.1660597962363; Mon, 15 Aug 2022 14:12:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660597962; cv=none; d=google.com; s=arc-20160816; b=W9v/w3uyUpSLNiERrT1A6hfrP5A+PYkL+iy2JqA0S5etHgqK1J/xC1UoFv1tKWlx8P TcAmxsHIvnSkSil7vVHOUfgepq1SJy6CaISB/qRcUPMfmbsIXm5JKCmZ4IDXcCHHIs6r MEW88hMYsD2cGFHA6GrqS8P+gVk21ksCVdiAoywndIngOljMrL2Btj+DZRmXgPy6mUMQ 5vaP0en3GsC9nIpYkCIZtQlW+E3WJUgF1M2R3zVc7ZJr9kOm3vBpjR/AItNdUg51uYWE spP++S3xlFCo9qwEyyuN/otslBMdYB0SpNxMWBkgNl2Y6LCjK56inJ4Bmyf1NTMA0kns u7IA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Y1BKwd9G0M2J0lWZxhuqV57aCu4CZJkJxThDxILLPIY=; b=X/Dc8ZoZxYf1TxLubuG6iaSYxHJnLsJ0lTZFRlBKH79eXqV+wcz6kUr5/wauFpfeSu bmDPfS6OISO493zFpdKWw/lDP1On2B8pjqEoLFgdDMYiA/NU5PmNY56D42+mLl6Wvua3 Wu+LgA8HvBGvm64DHWlJYlVwizuRcHrRmrCr5TnPwpbxszmNc6wSMiD49zTlGeTMQRKm CCKaRMUEajiy6O/jYhmNkGcCHxIuhrfwwknGta5E7Ifxu1Q47wH+X8qMGK2qJqMeAH54 RD/JZPb6UC2EDfaCDaXQNcD5iLhT5Jtwd+GFiPSM+bmzBRzpYXFX3kNFeacmc/s6aoJV AUvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LNlYtFzA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d1-20020a170902e14100b0016d5cfc6fd8si9982298pla.32.2022.08.15.14.12.31; Mon, 15 Aug 2022 14:12:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LNlYtFzA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245177AbiHOTB2 (ORCPT + 99 others); Mon, 15 Aug 2022 15:01:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245123AbiHOS4t (ORCPT ); Mon, 15 Aug 2022 14:56:49 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 723B932B80; Mon, 15 Aug 2022 11:31:45 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 2F0DAB81074; Mon, 15 Aug 2022 18:31:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7F33AC433C1; Mon, 15 Aug 2022 18:31:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660588303; bh=wyiVrrGdycrYaIwarSvQnWljLCRKuXVgDXQDnpxxn+s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LNlYtFzA5tAhb/VtnpGNUPORWT49hn/H0XvCOIM0CthSBTmSseWay/PNqZ4+M5+4i l8iGIwpWP2V3BVqpNUAaqRBLDclDHakecbxinq2+ZG/JhYMLFZ9/NaJrZlA4rQV3sI SahnO6WxjYOgCTX3TrE1tRhq4tAbBqSG4LVt0ovE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ming Yen Hsieh , Sean Wang , Deren Wu , Felix Fietkau , Sasha Levin Subject: [PATCH 5.15 329/779] mt76: mt7921: fix aggregation subframes setting to HE max Date: Mon, 15 Aug 2022 19:59:33 +0200 Message-Id: <20220815180351.353510538@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180337.130757997@linuxfoundation.org> References: <20220815180337.130757997@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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-kernel@vger.kernel.org From: Deren Wu [ Upstream commit d5a50e6bd1972c481f82befa846dce0b9866f025 ] 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 Signed-off-by: Felix Fietkau Signed-off-by: Sasha Levin --- 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 78a00028137b..a8998e6bfb6f 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7921/init.c +++ b/drivers/net/wireless/mediatek/mt76/mt7921/init.c @@ -49,8 +49,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.35.1