Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp151653pxk; Tue, 22 Sep 2020 22:25:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwt0VKT/53olkCuYfhg/GUcLcJ9eBkED0lIEaCpYEnzE+OvN35VlTuBInCwpKsSvzkl9Rje X-Received: by 2002:a17:906:d8cd:: with SMTP id re13mr8322126ejb.140.1600838737485; Tue, 22 Sep 2020 22:25:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600838737; cv=none; d=google.com; s=arc-20160816; b=amSP1+YFYghhbnhadbzgn1BWNbcvraCdAtikdVnJrpiuIalSMamU0N153li2cDmprE dTsQ1CJOQZQD3F0Bpa1HD8s7D6pe0mzPC0579pjWvxE3eG35opsSYFtxl4DFhdK6d2jM qI6UXShoewwBdjMrGryjcBZOBG/7NHPp3Swfo+Mjp0cfrnWo+wseJrI3XQNGlax4wZi9 /D3w60HmD0PQcMnDhJ9HInEIm5SFr6kvv9hGiM7JMD6c14auXOdicjfILoRxXZv6wstj Yl8jJAMKySM3yGth6TakPEXFUd8yDTADOfB8Oqlz8ibqG+lLMN7op89wwsl+9zrnzxNe 9Ozw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=eZQndTKmWa1+HW0hulSBu7t3uE7Q/NqfAYN9ighJEPI=; b=pa6ZuHGrjLVb8+D5Ij9DAJP3ZhY6CwxO3kxB4egZsUYWSZuwhgSVZAOAoc9O6V7VNL 7n7YnlKvb4zl5L4EpbK8dcTeOtJhLX2i67B+YASZppsmhhLtWJ44qW9O/aDVJtJVA+Cm SMsC6VA8OQZpqQXH+vDTpr9o7h483aPKrmoueTltooNt17FvRO3Wt7BZBGM73HIstzXG wFNQfOKJO1vABQCtJsI3Dr/Vi8L938YK6Ztt8qXL90JGCmtABWNEnisnkeMBr7uULsli n5Di2gbP0ZlU/mYdV3dzkLv1H309CLVCbOblUMc/tjOtgEYbJE9ZwWrzR5wJxJzpZnnp DpHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=Xt1Ex9uG; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t27si12156338edc.436.2020.09.22.22.24.57; Tue, 22 Sep 2020 22:25:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=Xt1Ex9uG; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726882AbgIWFYq (ORCPT + 99 others); Wed, 23 Sep 2020 01:24:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726834AbgIWFYq (ORCPT ); Wed, 23 Sep 2020 01:24:46 -0400 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89EDCC061755 for ; Tue, 22 Sep 2020 22:24:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject :Cc:To:From:Sender:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=eZQndTKmWa1+HW0hulSBu7t3uE7Q/NqfAYN9ighJEPI=; b=Xt1Ex9uGlFEnI8CS4OJUPzE/FR ElV0pjUl7zGjrvjPsG1HK10Y5qm+qFg24kLv8sTzaLkbIKlvxQVS2Xe1lEGjb0/JoQOjcMnafU8DA JeEPl9OQh3iMzsEW7JfsIglNZLMe30k8Ul+Jo7LNx2xhj9nHfAbp52L3yUeCfluKOyAQ=; Received: from [80.255.7.109] (helo=localhost.localdomain) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.89) (envelope-from ) id 1kKxGl-0006Zz-NV; Wed, 23 Sep 2020 07:24:43 +0200 From: Felix Fietkau To: linux-wireless@vger.kernel.org Cc: kvalo@codeaurora.org Subject: [PATCH 5.9] mt76: mt7615: reduce maximum VHT MPDU length to 7991 Date: Wed, 23 Sep 2020 07:24:42 +0200 Message-Id: <20200923052442.24141-1-nbd@nbd.name> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org After fixing mac80211 to allow larger A-MSDUs in some cases, there have been reports of performance regressions and packet loss with some clients. It appears that the issue occurs when the hardware is transmitting A-MSDUs bigger than 8k. Limit the local VHT MPDU size capability to 7991, matching the value used for MT7915 as well. Signed-off-by: Felix Fietkau --- drivers/net/wireless/mediatek/mt76/mt7615/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/init.c b/drivers/net/wireless/mediatek/mt76/mt7615/init.c index 2a4db46727fb..e194259c84e9 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7615/init.c +++ b/drivers/net/wireless/mediatek/mt76/mt7615/init.c @@ -481,7 +481,7 @@ void mt7615_init_device(struct mt7615_dev *dev) dev->mphy.sband_2g.sband.ht_cap.cap |= IEEE80211_HT_CAP_LDPC_CODING; dev->mphy.sband_5g.sband.ht_cap.cap |= IEEE80211_HT_CAP_LDPC_CODING; dev->mphy.sband_5g.sband.vht_cap.cap |= - IEEE80211_VHT_CAP_MAX_MPDU_LENGTH_11454 | + IEEE80211_VHT_CAP_MAX_MPDU_LENGTH_7991 | IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK; mt7615_cap_dbdc_disable(dev); dev->phy.dfs_state = -1; -- 2.28.0