Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1040918ybb; Fri, 10 Apr 2020 15:53:06 -0700 (PDT) X-Google-Smtp-Source: APiQypKHx9gegCtwD6qCvPG0EKeVe2Sp+2A2KzItDF0XeGXi85y/kiU6OsQJr0qkuwy7ZZ3vQ5wp X-Received: by 2002:aed:253c:: with SMTP id v57mr1390725qtc.63.1586559186176; Fri, 10 Apr 2020 15:53:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586559186; cv=none; d=google.com; s=arc-20160816; b=kY7dKE79ivroTzkXls1lA1PLkVBGqWSPRx0oOH8njDlUi8Z1PxY1g7ZaSzc2zMhgcW BuikKHrF5b2cFCOdmfX5WJ0Ty3/CgvuibkO0Xbo5s27WmDC6X6K+35VFpgyNhGlDNMr+ nqeeSttlK8vdSFjCZoLe9RI3OJlxLaWyJXaYIzksVPnzl2J5fw307b6Slh5QKm/KtRwU TZfvBCNYY8u1nBp1zyEJ1DqkCqkvSFpkFT3NNCAAlYip+zIgs8Tao8clPIl0Ck8A5Z5y ByvdR0jIxKUO2MsUK2WKhyHU6xTRtT3qhI72CU1T5P3IH1R4jbvmcmflmIXLcIy0+MDJ 8hEA== 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=nW/NV1pIIOrJcF7prBbOwV+wY/ThykW7kN/HlpS+3tU=; b=G7N1Z14CKEodfAmT9rMaG4zIWVCi1R3n59XR6hVQ4uSwkRfhrrLIg+OXe++L0k4km+ PhQrQ3xU+EVir+iYMUupvbRyE9PDBsUrT2HQ3x5nPYEavGP5cktv80Xnd7j6z4xxdQRb +ZmKMOTAEiJHHpiFvfBBA2xMQiifEFx6PM+ZDki3DESgmi0yBtWRzh+DMhhHskOmzI+X LPjy+4KaiCSsJCKud8TvqCq0C+bKMcIaspj9AaTtSS8oggK9slgizUs4Uq/wsOa/hwwL 4HAjR4FNYrbwLe6IQ0xOVda1HtvXF6UXoj81ZgWV6qDK1wzN/JbrbKWl5HRA5P1heh73 O6Vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=HHT+RS0x; 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 r2si1822227qte.140.2020.04.10.15.52.51; Fri, 10 Apr 2020 15:53:06 -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=HHT+RS0x; 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 S1726780AbgDJWwD (ORCPT + 99 others); Fri, 10 Apr 2020 18:52:03 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:36971 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726687AbgDJWwC (ORCPT ); Fri, 10 Apr 2020 18:52:02 -0400 X-UUID: 3315af88cca6420c84fac4cc6804ec3b-20200411 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=nW/NV1pIIOrJcF7prBbOwV+wY/ThykW7kN/HlpS+3tU=; b=HHT+RS0xBUKfQho1vpqXc7foriIuIwVy7E29XJeEDad/nzshVaAozui+qtEUZddXSzOL0IL1a57f+r8H5otAZZg2TK63glCdEa2oEnJK0WfG6AoYfOMji6wbXHJBmNkMg+6vWN06b3Lqr+Mu0ADjiqmDeriBMLHeWIZUD+UMrN8=; X-UUID: 3315af88cca6420c84fac4cc6804ec3b-20200411 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1119122550; Sat, 11 Apr 2020 06:51:57 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 11 Apr 2020 06:51:51 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 11 Apr 2020 06:51:51 +0800 From: Ryder Lee To: Felix Fietkau , Lorenzo Bianconi CC: Shayne Chen , YF Luo , Yiwei Chung , Chih-Min Chen , Evelyn Tsai , Sean Wang , , , Ryder Lee Subject: [PATCH v1 14/16] mt76: mt7915: add .sta_statistics support Date: Sat, 11 Apr 2020 06:51:29 +0800 Message-ID: <84fc3b0e57f796f432e07eb94ad4b49310bcb7e1.1586558901.git.ryder.lee@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain 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 QWRkIHVzZWZ1bCBkZWJ1ZyBjb3VudGVycyBzaW5jZSB0aGlzIGdlbmVyYXRpb24gdXNlcyBzdHJ1 Y3QgcmF0ZV9pbmZvDQp0byByZXBvcnQgSEUgdHggcmF0ZS4NCg0KU2lnbmVkLW9mZi1ieTogUnlk Z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