Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp11661998ybl; Fri, 27 Dec 2019 19:09:55 -0800 (PST) X-Google-Smtp-Source: APXvYqwxWza3juUqu8k4KcBlqHxlEU7rfh/wrFBK6CXKkI+YFnSsqt2S4qKEANba02HGpywJkORY X-Received: by 2002:a05:6830:139a:: with SMTP id d26mr62015816otq.75.1577502595637; Fri, 27 Dec 2019 19:09:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577502595; cv=none; d=google.com; s=arc-20160816; b=R7T4IfH7K5e2ZayzFUptebu12Wu7LclXmz9xjsixZxgfR6f/xvkPMHg96odcKMano8 sE4rGIAlVkdFAr3tZvdRWWdE7+Hd0We98s1XeiJQuXhTHp9wRki+eZDXaBYEh8QWqdRi mJrsUvjIfR/VtkrfVE3qaUJ9Ku85ArPNQH0AXFnWH4dF8UFq63RhZwfEMsFzNw7pwzA2 C2/bjVKQwUvTvf+3ds6WpAWCN/LVBE23pmRDGl0qmnWZf6wMeavjMP4okEGrOhVJ8BsL 6gznDFRk3peIl7X1D216yxCuDTf8Wtb0ha+VPEbws0NTVsqvRStty3uj9CXj6sjHRFqI nquA== 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=ij959lRItOwY5+DCQXFnh/qX3GVtKszFINCfTg2rMt0=; b=PLO+XpvRPrNS9hmmkCLhebp21VIX6uj9IGfzYO2VCqrMadVryiwfFgNPjJK/8v1z0y wwf/DyPcvIasxNpkIfioA6MLPGZTyh9d5EF8xbqEpt7hwUjPtq/r/tRqxCLGOZJ0HBMI euNetyNVS7SpXpo9mAa6lIXcY3meVWhGp00Va7ZvaXkjLeStkqdEk4qMREJpjtPUSiP8 tM+6JmcuKH3PYU4+kNtyNk8HZNzEXUUR8xojKjmbS0TooM2RAc3Q0opzpoMOnHWtEHcz aKJ3ICx6I5CjsG3cjoL4FnZdgJwjEVEP7hGlUDqrBAXuPY2a1DzT40bwXT1IQsWDksWQ mM6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=cOcFuJqe; 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 w131si16413067oie.47.2019.12.27.19.09.45; Fri, 27 Dec 2019 19:09:55 -0800 (PST) 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=cOcFuJqe; 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 S1726088AbfL1DGc (ORCPT + 99 others); Fri, 27 Dec 2019 22:06:32 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:7575 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726044AbfL1DGc (ORCPT ); Fri, 27 Dec 2019 22:06:32 -0500 X-UUID: 5cbc3f8681d24474b03547c3bba3cf04-20191228 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=ij959lRItOwY5+DCQXFnh/qX3GVtKszFINCfTg2rMt0=; b=cOcFuJqeNqJzsxEgXG0pEyElfAwG+mNT6edzRkGVUhUMcrIJTeR45dYM2Nvi8B6gnb5GmTxnurXqGnzNThjEGcXudf60Ysd3HAfVODm0peL3SjTtNW3p8BPVJkNJz7wwMSncmk464g8+pmLZvnsLGKDVlox1+LITRSQwB71bf5c=; X-UUID: 5cbc3f8681d24474b03547c3bba3cf04-20191228 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1336383943; Sat, 28 Dec 2019 11:06:29 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Sat, 28 Dec 2019 11:05:52 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Sat, 28 Dec 2019 11:05:52 +0800 From: Ryder Lee To: Felix Fietkau , Lorenzo Bianconi CC: Shayne Chen , Roy Luo , Sean Wang , , , Ryder Lee Subject: [PATCH v1 3/3] mt76: mt7615: add a get_stats() callback Date: Sat, 28 Dec 2019 11:05:12 +0800 Message-ID: <294f99d401beeee1e7f1e65bf32d580d1568aa24.1577501739.git.ryder.lee@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <769aba6e014b8e7650c3909d6adb8427c1d5c5ae.1577501739.git.ryder.lee@mediatek.com> References: <769aba6e014b8e7650c3909d6adb8427c1d5c5ae.1577501739.git.ryder.lee@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: C67F8ACB24958420C070F8DC06EF8CBC01D642FFE0CBF873142BF4F0890688832000: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 QWRkIGEgZ2V0X3N0YXRzKCkgY2FsbGJhY2sgZm9yIG1pYi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