Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2930299rwb; Mon, 15 Aug 2022 14:16:08 -0700 (PDT) X-Google-Smtp-Source: AA6agR6PZxRaFWnZmWFSUHMMvK6BlzHdbc/dysiYYz/n44CjXn0lxG18zh01StfUYmeKrTbtAywp X-Received: by 2002:a17:907:c07:b0:730:b91b:2cab with SMTP id ga7-20020a1709070c0700b00730b91b2cabmr11838749ejc.294.1660598167728; Mon, 15 Aug 2022 14:16:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660598167; cv=none; d=google.com; s=arc-20160816; b=r6hn4xJsbVTk9JOJ5DzZ8hIHhYrvnTa2tg5YWuf/FuD0LecNYaTHOmVa5mvoTAZcaa Smi0pL086dNS8+cPmbSzl05QujZSIgo7/g9E6YE4l1Qq33BJiFfxaLAyDrW4VpfZIcK4 0fwH9mvG6yINBGc3rVg1c0ZcMwDou5UBFbo/FtLilyOXz8bPeBFFU+1FE7JlS1f12ey2 sPdMu6QQBPk2rMgVskgwkYwEYJZvGPA9xulEzxMIaR/NyTDOjlUIHl7HJmt61ZiDnoBX lQ9XycaPV6Z1VOAAoi6asBe7ogEX3ctD+yti34oSfUFHwWZAF29rzgqWT0kKFgbBmPd7 FMMQ== 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=rOc7dCdqIDsGO06HWCNhgmc6dkDToWvs3oIy5DUYTeo=; b=nDNinjZIi9gr+MID1VUTQIpZNOUL1+eX1ZtQO/P/xjDIHS8WEWHwkPHUGxBdpqs9ib p2CArMmZhrmWVxCgkooBQHbQ87O/VYpboOqEg64IeQWfCtv7jwNycqVNxV+WAZrWA4Cw aOwk3GUzMVLelCiSW18L0aANh8TW53HIj2E3KUL6RiprcmafNePg/8CZbm5OGTXEx1O9 2+l8am4A2HBfc/Q86M5r5UPVTzghZqgsBQXY8o9HOtSViekzjwj3fxkIgj7O+9XimjOZ /CdJTPSTMz/OCPyaBGyzWow0tNxc9IFsawWGm+MrbYXZmmEv8pCYuB3+CesjRZSO5niM dwoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BgOd6ZBN; 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 gt34-20020a1709072da200b0073314be475fsi9059406ejc.763.2022.08.15.14.15.37; Mon, 15 Aug 2022 14:16:07 -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=BgOd6ZBN; 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 S242386AbiHOVOE (ORCPT + 99 others); Mon, 15 Aug 2022 17:14:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347947AbiHOVHs (ORCPT ); Mon, 15 Aug 2022 17:07:48 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 405723B948; Mon, 15 Aug 2022 12:16:59 -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 dfw.source.kernel.org (Postfix) with ESMTPS id D19E66009B; Mon, 15 Aug 2022 19:16:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D0C9AC433D6; Mon, 15 Aug 2022 19:16:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660591018; bh=ATE1cTmhzo7APlhk3egsok+n2wPA9FCysFJZ3kyQ6Hg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BgOd6ZBNG932AH47dswoXI7DhqyUJZlOeryx0ysKmtbn7VHEjZ66FGXeo/mostavi zTo01FWfy9ie5Z3L18Z934M5XF5PENXscvQqK4kd6Annt7dc9gqgun1VbRUHL+RgY+ /96e3tFZxkNY7jRurB1akpuGdPrwOFnDL6JsN9U4= 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.18 0446/1095] mt76: mt7921: fix aggregation subframes setting to HE max Date: Mon, 15 Aug 2022 19:57:25 +0200 Message-Id: <20220815180448.089520156@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@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 91fc41922d95..2fb2a6295c06 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