Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3081875rwb; Mon, 15 Aug 2022 17:40:50 -0700 (PDT) X-Google-Smtp-Source: AA6agR5jJEXhGvPXcByaevKt9zRaywEm16L++Tm7+vtEEd/XlWt0943J/y0zz394U662kaMUvLQZ X-Received: by 2002:a17:907:7349:b0:730:61c8:d80d with SMTP id dq9-20020a170907734900b0073061c8d80dmr11264782ejc.699.1660610450686; Mon, 15 Aug 2022 17:40:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660610450; cv=none; d=google.com; s=arc-20160816; b=A6UTpeaDjKUMe4FLTwjEnOTkoMw79pWScG+jSlhqqggNOzjvVcikGHgd0yP6vkkb+9 oZfCG1bkNOgB1H3YTlDn7JQCJOnLnI2jekSyf3WQgaZJK6Gnc1jJvTJZku6W/jHSaNMT 2Zg812Q6G/2rAwSqFxuYef4X5sdxepDWV55yrGI15PVd6dPwg8bcIf0ZzDgiLOVHQax6 tl+u9vbFFyKCTQiJGvqwp9T7Z247lNkWjjLeGnL4SxqU+hyVTTgo8sctpIsIA28WXne0 zD9qSce2jczwdkEaCkfXzZn8Lgg9QJL0h/Jf1zau44PWUCUz2ztytAn7Nm0t0qCndzoo LwmQ== 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=uy5r17IfoDjqqVq0v+OXkwpd8P5pbJJS+EHa1Xe9q8I=; b=MZfjIJrqtLfpKwf715nHldVt4swkTELW9nwkMGyEk7X9H+UsXSEWm8oxTsYiANncpd +zTA5NdQkM5NHHfADVlG05UcMoJhf/ejpa6uR//8I3nMgIwnf1au6A/X577FLyI2R9yu l/FWUVBbE3MLo1AbIkTqmi5k2okhMoPmhAOdC8oV2+g1ALQ+lsai1SJySXtHkplC/7KM AZ8AfK4HqggICdXgCm18RAAXuhyF+o8BH7rk/6oJYFubFL/xJcenlJps7lkNtl0sYFnp V+bi6V2+QZWd3eFOhIPMN36UmmbEJKRmPe0b0w9wYMHDbjS+zl7nePHgsBZkWRQWkADZ Ta7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=kIdzWI+h; 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 p27-20020a1709060e9b00b00730d106e832si7493189ejf.248.2022.08.15.17.40.25; Mon, 15 Aug 2022 17:40:50 -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=kIdzWI+h; 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 S1351829AbiHOX7M (ORCPT + 99 others); Mon, 15 Aug 2022 19:59:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355485AbiHOXwO (ORCPT ); Mon, 15 Aug 2022 19:52:14 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94E761585A4; Mon, 15 Aug 2022 13:17:05 -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 A4D55B80EA8; Mon, 15 Aug 2022 20:17:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EF84AC4314D; Mon, 15 Aug 2022 20:17:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660594622; bh=3pXLPGM7WMAvz3LI86wQyaKVWIuXwjg4FDfmCZ479Nc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kIdzWI+hcm5cluEAKlVZ2Ubx6Z2JZYdEysaYD9j8862YwUUk6XdxN4l7gHv4fF+7y ds+k52f3lPq2BJM5syn8v3SL7uJAI+U2RR+t11OFNAWj9gfkdESc7jUyVmtbIdUJ5I D+Lt9cjVTNujnyl6bh+L3FUal9Ssmqu1/s3QdgEg= 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.19 0479/1157] mt76: mt7921: fix aggregation subframes setting to HE max Date: Mon, 15 Aug 2022 19:57:15 +0200 Message-Id: <20220815180458.787076728@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@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 4a8675634f80..dd19835313ed 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7921/init.c +++ b/drivers/net/wireless/mediatek/mt76/mt7921/init.c @@ -53,8 +53,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