Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp10730644ybl; Fri, 27 Dec 2019 01:00:42 -0800 (PST) X-Google-Smtp-Source: APXvYqy+ZzKVh8fsbDMtTdFFKwy20iP7xeYLg9BduE9SisB+X7Qz2K0J/V+HCN0NEh4HvfN9zGU/ X-Received: by 2002:a9d:6502:: with SMTP id i2mr27703936otl.206.1577437242801; Fri, 27 Dec 2019 01:00:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577437242; cv=none; d=google.com; s=arc-20160816; b=MgdwX6V1A2P5qm91oDMVSSePF4KI8eRNgn66n4DgHCRpacAQO64/Ml7jyFvZrxTAms qgCr9mE/kT9EaflZKI5yS86jHHHj6pKMSsFRbBaGzdlhkZn0tRf1jUCZG2CZfLP2XnIB S17EoBxrM6DpRCqcJh6iXY1Oy8sXSRYaP27iQBFbXxyToljVxxnzpUSoiVBEoO3JlFFy LqM0M9VxTJSVJ3oCIdtVbj5GAycBUgl6W/lmXtj+gRb4B84bOpiPWMj8SERGB05d1rug YsOkmvcy6pvtqdV3tPGuxXWWWIRKgEIui/K50Boqm8RvSDvG0hNQH+h/naR3NMN7qsae YAYw== 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=ay+ibNcB5NYuieSrDeYdH8wOhecnM0m+aMHmpuj+/+g=; b=eumlxSxfj3snIjQZLtZqZaq0hD/lRzEDC+1vicvABejq6U5V+Z4KNMEII/CKXitl7l wcYfsAzYN7Ki8Rps4KhpK0okkL8KkeQmQf8FXkYbaI1+BmFYd/XH45MORUVoFClLg23a FsBXl6OAgDxdXnjN7ryyUuMxD3SbC5kxJp75bz8m5a4Exqq6Gyz7tfQXn8sAwUY6dim5 266eFT5ruGkdzitY8Xx8DqytgOKhmK4jw1aQ2Rk+agZzPX7V2q4GxZMsCnNUQbwWNyrb HO6SO3EoyeC55Xvt2MvAq39uqu9mrH7pyGgOltiA8j0xP2PDLvObeNpOzAXggIG7QoFP 9AJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=EtXThFTM; 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 w4si17033675otl.214.2019.12.27.01.00.22; Fri, 27 Dec 2019 01:00:42 -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=EtXThFTM; 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 S1726293AbfL0JAV (ORCPT + 99 others); Fri, 27 Dec 2019 04:00:21 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:3598 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726169AbfL0JAV (ORCPT ); Fri, 27 Dec 2019 04:00:21 -0500 X-UUID: b9de2991da414af59d50dae5af12f267-20191227 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=ay+ibNcB5NYuieSrDeYdH8wOhecnM0m+aMHmpuj+/+g=; b=EtXThFTMb4P/nuUn0mAeVpVjxhxCg3venYqslp1vxLUCF/lfgY5YOeXQnb1a/1pPDcM90jLTnQxs6hI3vn1GCrWm1uZyLZv62IskeEEC2s7ZB6f9gT8sR5UmNJlaJXoF10ngkyaVa2mLRv0YSb1Q/cUpGhtoRRDX1Zl2pMXK2UE=; X-UUID: b9de2991da414af59d50dae5af12f267-20191227 Received: from mtkmrs01.mediatek.inc [(172.21.131.159)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1178422584; Fri, 27 Dec 2019 17:00:14 +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; Fri, 27 Dec 2019 16:59:38 +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; Fri, 27 Dec 2019 17:00:00 +0800 From: Ryder Lee To: Felix Fietkau , Lorenzo Bianconi CC: Shayne Chen , Roy Luo , Sean Wang , , , Ryder Lee Subject: [PATCH 3/3] mt76: mt7615: add a .get_stats callback Date: Fri, 27 Dec 2019 17:00:09 +0800 Message-ID: X-Mailer: git-send-email 2.18.0 In-Reply-To: <7d450f0c4fec3c7242804e47f9bce13255e7f28d.1577411732.git.ryder.lee@mediatek.com> References: <7d450f0c4fec3c7242804e47f9bce13255e7f28d.1577411732.git.ryder.lee@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: D8B3679B52C8892946EFCE5EE48E5DCE8D2162D8BAB16D665268CFBF2D8ACECB2000: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 QWRkIGEgLmdldF9zdGF0cyBjYWxsYmFjay4NCg0KU2lnbmVkLW9mZi1ieTogUnlkZXIgTGVlIDxy eWRlci5sZWVAbWVkaWF0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