Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4624175pxj; Wed, 12 May 2021 09:28:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHlt+WVpbc98F8KLK0VxLkNPsJPDr6QJYqLFY2ocl3sun/SDkDHRMGjFMX1qn+1m4Vt5C6 X-Received: by 2002:a17:906:980f:: with SMTP id lm15mr26986177ejb.337.1620836924129; Wed, 12 May 2021 09:28:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620836924; cv=none; d=google.com; s=arc-20160816; b=mcacUyU3GerunUK3TgM4Lv7eseiCZkSlBNdSJPEB+GWCypKlNAAgoCgevzAsc5i/ai gRUMcfaZEj3PtFCxeFX6ZyqLXKEekQ8u5BtVrcSxxJfdce+C9i2p0DwlVXINUAvMgY5e 5OrsBSyG9noyzQqGptVBoivJAPo2xTFt3aRr/gIO1LbhowBB1ViwpsZgTS5R8nFaug/E RXdKwO4J6x6aCrVsnLicHzCFzSuUoX/ck8Oeyd83EFEdSdSL8UYY2L7stmmWxNkScW8j vaOehc1DNSeMnIsqEc9h+SpsDQjnIoGqQ/R/BJNUKuPWLOP2xnccC4kqK4J7Q8Hm36dl pazA== 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=xqXsKsd7qHSbY5sE67Z+APwyEBjmxSMHMzA5LYe4QdE=; b=OwqjuNKE/tgkz9jb9wigG+H3ey66x7/mvoFKyXV/lsRhRuGrwVYXZNTcjIsFSLxhl3 IUpDAzOqALp6SXHKvdZj5O2dulkS09JBxgGBrQblU0EtTWWsPck21Xet5rL5A3hao/54 bUa55jUx4SKZ6r6ZXtTtIMqPxy9bxF7ofQlIg2jNJ53JJVIX5tTbUvjI+sokU+UmVzSV xSjeIqrmZTVfxJEQ4eQVRQBrH4lwrWHK/vuTQ5YYwCSugWVOlU+VLiyfyetejW0PFo/S dOkeHDQ6ybSZz9vZ4rcNoBIeiaIlKQYtQqPAcIMlRsGeg78Hci9jexjgAWxuBGd+dz0H ku2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ysKNx095; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s9si167734edc.296.2021.05.12.09.28.19; Wed, 12 May 2021 09:28:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ysKNx095; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S241136AbhELQ0b (ORCPT + 99 others); Wed, 12 May 2021 12:26:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:56820 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236365AbhELPhs (ORCPT ); Wed, 12 May 2021 11:37:48 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6824861985; Wed, 12 May 2021 15:19:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620832763; bh=8OysNHOcmDItcCwiRpkAbUuzGXsfpvzzDl8lh12nTsc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ysKNx095NN7HsA3M2RJynnuRVmTkWHbHTcN3wRJSmKsqmhMPZ5U1B/pH3WLVK2Tmd IA31cDbKcny9O0D3A8BQbnjQ3CPv9UD73xT1ytkniiT8g3hSyLPXZGLvjD0zUCjZR8 ZCoPr0HFppAgmjRYFO5qigjW0u0eZ5QUnfYBZSvM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Lorenzo Bianconi , Felix Fietkau , Sasha Levin Subject: [PATCH 5.10 414/530] mt76: mt7915: fix aggr len debugfs node Date: Wed, 12 May 2021 16:48:44 +0200 Message-Id: <20210512144833.373864568@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210512144819.664462530@linuxfoundation.org> References: <20210512144819.664462530@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lorenzo Bianconi [ Upstream commit 9fb9d755fae20b5ad62ef8b4e9289e5baea2c6fc ] Similar to mt7921, fix 802.11 aggr len debugfs reporting for mt7915 driver. Fixes: e57b7901469fc ("mt76: add mac80211 driver for MT7915 PCIe-based chipsets") Signed-off-by: Lorenzo Bianconi Signed-off-by: Felix Fietkau Signed-off-by: Sasha Levin --- drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c b/drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c index 8f2ad32ade18..e4d7eb33a9f4 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c +++ b/drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c @@ -124,7 +124,7 @@ mt7915_ampdu_stat_read_phy(struct mt7915_phy *phy, range[i] = mt76_rr(dev, MT_MIB_ARNG(ext_phy, i)); for (i = 0; i < ARRAY_SIZE(bound); i++) - bound[i] = MT_MIB_ARNCR_RANGE(range[i / 4], i) + 1; + bound[i] = MT_MIB_ARNCR_RANGE(range[i / 4], i % 4) + 1; seq_printf(file, "\nPhy %d\n", ext_phy); -- 2.30.2