Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp176556ybz; Wed, 15 Apr 2020 06:44:23 -0700 (PDT) X-Google-Smtp-Source: APiQypJ4IH+2ZIE04W6HTnzfBxJbsefFEnsBKoSCHvvTRxPo2IyCjz0RQ88/pJCFfZwXQjY3Ixv+ X-Received: by 2002:a05:6402:609:: with SMTP id n9mr21145796edv.352.1586958263136; Wed, 15 Apr 2020 06:44:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586958263; cv=none; d=google.com; s=arc-20160816; b=pnzg0UNYG/KaCiwG12tSjjLm/jN8m0Jwys1vMSkZdyBsyH1f3nGMUxDh8i4qQT7iD1 /JERSyb91F8WsLc7ppW26c40oOSuccrBSOcqB6c7Tjh1fDvJpz0KTrqPZr+eOF3hoXvG zlJnH/oBE/Qv/+wney6D4MQIjYSDPg+ZaU6J8ToxdW6We+yl13qRhkCiM/nOLi03dnVI r1OAYm3DXXYCWEnQmB6QvKycSIDKb03D34Uu5y2r/u4rrRdKtx0/YXfDGbkj1MAm8v2e J8/V5IQTkvYBamkJUVK6YB4swqRau/nTJRKOo27Ge57/2t9FO8vG1scNCH6XHSgYManK VaTg== 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=PM/tnHF829ngtHOTKKrhyuy84EmR7mXqLZMyji6w4Dc=; b=wwXCeNlfM4pMOat+WYMKHNiRUg+dX2XX1fmTU/ELbr1GGKilYww/MNLS4VGTZi5+BC xpMI0NJ4bwwN3SNhcBJnYxITxrrnZLCyYM2bRB4QNS3syy7pBLVDDMThlHAUVekxSo3p bEXeA/rkVqRrYVmGlAs8qzUteapjiVi76m9dSidUHQpnYqnI4MaQVdwPNzRlG0sC1dcS L5asZtDoODalqMSSe4Ze7xSQVtt6/OHrkwnloFELhDI+9ubamrIw81nIstXsEIBQEXK1 M4kPuN4wfoVuxeLof+JIrRqDJY3PJgIFgGdZ6rNwvCRxYmDpgMWspCuA/evxVDqcwomn 0wrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=PAyIR8gK; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id d9si8632387edr.94.2020.04.15.06.43.59; Wed, 15 Apr 2020 06:44:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-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=@mediatek.com header.s=dk header.b=PAyIR8gK; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 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 S2633616AbgDNVDV (ORCPT + 99 others); Tue, 14 Apr 2020 17:03:21 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:47633 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2633577AbgDNVB6 (ORCPT ); Tue, 14 Apr 2020 17:01:58 -0400 X-UUID: 6473e73ba054408fa701a964886644a7-20200415 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=PM/tnHF829ngtHOTKKrhyuy84EmR7mXqLZMyji6w4Dc=; b=PAyIR8gK6P5vW5aT5tuDn+7FEVwn7IwhC3lGo8sFzCQqWeBPXSYrN5u1UmufNjRK5TzdXz35394NgMJvoAddwBykmWquYeQwXF96b8pQn0Wlm0uQbOrqJ6u2pzCTl79hVo9ZTyOiwnL0pmyifk0GUhG8cQ8GATG0QeYRqOaf+Fw=; X-UUID: 6473e73ba054408fa701a964886644a7-20200415 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1794876372; Wed, 15 Apr 2020 05:01:40 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs02n2.mediatek.inc (172.21.101.101) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 15 Apr 2020 05:01:36 +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.1497.2 via Frontend Transport; Wed, 15 Apr 2020 05:01:34 +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 v2 14/18] mt76: mt7915: add .sta_statistics support Date: Wed, 15 Apr 2020 05:01:12 +0800 Message-ID: <6967f8287d60624c6ee60534d5ca728f40ca36f8.1586895593.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-TM-SNTS-SMTP: 70F7F362F65DEAF895BD02E56CBE2F74B256E9802EA8ABC7EFBE4357A203808B2000: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 QWRkIHVzZWZ1bCBkZWJ1ZyBjb3VudGVycyBzaW5jZSB0aGlzIGdlbmVyYXRpb24gdXNlcyBzdHJ1 Y3QgcmF0ZV9pbmZvDQp0byByZXBvcnQgSEUg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