Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3201136ybb; Mon, 30 Mar 2020 23:54:52 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtf+8qAwGyLpPlojwAKLwHYDGiy2/HFGAx7iZfyEABKOPBfbWVEkcfb9Bg9qZs9iwSiQc7d X-Received: by 2002:a9d:4e3:: with SMTP id 90mr12517103otm.261.1585637692144; Mon, 30 Mar 2020 23:54:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585637692; cv=none; d=google.com; s=arc-20160816; b=0cqCrBlTtlHot2tL8hV1PNNmkV0v0+aDXOXZbNLAgMsO8wpIGYeLxyL2hchqRNXD3P SOEKRHvM8dNgHGdo+ZjMsfeokSi0swAM3Gj0cZgIQd4G4y5xx0WipEjECRXmiGOJ31xT stLhavr49eMX+28eXtez6j4gfishwl9g+qOoVLUHVTZ63QW37SoAZqQ4061k0t6UVIC6 wEy5ILtk7GS06uz4nyn9z1InMLrE+1RObdtTOvo6mEEqxGODxo2GJBZrAb1q9WRCw5vY 7tc1J+ZYhnDw7ulzVUjFT4kLgsICpqTkIwIov0osiRrPnCy+Yf7SmIdIizh1/KmyKiVZ XNoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=BEGm8TOdfxoqxw2nTZ7/51DdBklePLir3Hb8tr9Ohts=; b=QHndLuHrYp5YOAK5xdvwXeoO4AZUiUfFIF38lImzI/aAbCmvi6FncXgasUOSGq7ALx +uYqxMtBSO4VSWYDkOF87xtv0px8T5QU3EvBvyD8l/xTWvtG3ldSgxHW/KD6QsVBL8wn cYT5fFLgcLKaJUN7MGcgE/PS2mhB6FtFHDND0qJh/WFXXiHSScIa3afD/ZKRyU4u0luR b3/rt8JV/pI9p0TLe606XdVuVqp8Dg48Slw78bEy/ZIkN62Pwl/Pwph0HvfbDd80X7fB zRHlYUFJCe4P39RsrhBvz9tJiYz4/P+IDDCN7OB0QXpp63qyTStUnhPbuYgI52XuD4EU 3vrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="G95y/rz9"; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w23si7491436oti.18.2020.03.30.23.54.40; Mon, 30 Mar 2020 23:54:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="G95y/rz9"; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729950AbgCaGvx (ORCPT + 99 others); Tue, 31 Mar 2020 02:51:53 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:19038 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729894AbgCaGvx (ORCPT ); Tue, 31 Mar 2020 02:51:53 -0400 X-UUID: f96a06c592ec4bf490eccf4997795cb4-20200331 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=BEGm8TOdfxoqxw2nTZ7/51DdBklePLir3Hb8tr9Ohts=; b=G95y/rz9f0eyxNUTCYjzKuCZWZXUq7Gq9FHmm0pacprzfm+MErTbv7Oh2Uv1VjtIiH43/39NEB29cBotK+FX/g2C5KLbjk8wnQdm2UnJCRJuCuqwPArCI3irZyawLZxChTymUpboZVIsfmoTKGTILNLtVm959cq9Q0pFePi5po0=; X-UUID: f96a06c592ec4bf490eccf4997795cb4-20200331 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1905343760; Tue, 31 Mar 2020 14:51:42 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 31 Mar 2020 14:51:40 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Tue, 31 Mar 2020 14:51:39 +0800 From: Ryder Lee To: Felix Fietkau , Lorenzo Bianconi CC: Shayne Chen , Sean Wang , , , Ryder Lee Subject: [PATCH 4/4] mt76: mt7615: add more useful Tx mib counters Date: Tue, 31 Mar 2020 14:51:38 +0800 Message-ID: <68061edaaf2ce7040c776b72baf4ea49ece2f4fe.1585636614.git.ryder.lee@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <1fc90ec2a64d062ac7264aaa3dd158f2282ad7b8.1585636614.git.ryder.lee@mediatek.com> References: <1fc90ec2a64d062ac7264aaa3dd158f2282ad7b8.1585636614.git.ryder.lee@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 2FFE9D262EE1C7BC71824A48A7D94EB7465B25DF7BD6B4CB822FE229BF026FE12000:8 X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org QWRkIGJhX21pc3NfY250IGFuZCBhbXBkdV9wZXIg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