Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp104177ybz; Fri, 24 Apr 2020 12:34:48 -0700 (PDT) X-Google-Smtp-Source: APiQypJ/GQNgPP0QrO/7deUci/EzcszTN76ADsbJQVEY69xu6gJ62Qd5NiC9fwecQfXq0fane8lj X-Received: by 2002:a17:906:3399:: with SMTP id v25mr8313994eja.217.1587756888468; Fri, 24 Apr 2020 12:34:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587756888; cv=none; d=google.com; s=arc-20160816; b=I8ZlDi3hs1hX0LFgdEnPmqxFsKTbG/h3HobNwJr3axmtwTWLLcl5olCjGXMR6WGWDZ FosTljjXQcLhRfr2txb3tkVj+8NSRjx05JnElwFzZ3v7eNUAZ+2xD3x/YfeBfT9MhmMp GHbamHx9GotJf+xN2rMpKAjNlOAX74ZqgpKiIRcOqrT3SNO6BQcUHiFjm1iN6TqYfI45 zkqXtcF2pnMaFpuRtCR6kKlZuEwJ5cowrPT5H9A+ynX7iMxwQLuW4rzMAoaEO+frPgBs rhJheVLUbJqcTxeM1a9D2jXuwo+CbkO7csC2w7oyHFVjm1k8mFcFTxEsTEodxazIHAVc m8rQ== 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=SuuhyC7tT6ClLluhXHxXNflytrrX+ufxFe1udb/DU/Ro/6f0OZ+WXgScVsVGwYYRrZ Lse4EkbW0IKH/kSafdRLSKrBdPIILkP5FTpc2q/5m/j5C1lY7hgH4HHgMb7T6J4soY3D UE1kQmkB3EY6I1xdBteel7cypqoJVrTLqPctf9r03FTE4i1IoQ4VYvv19/kQn4fEyJfT 0CDrVArpXluE+DXGB9weAulaLj/7azIC4VmfIWMLQSU1w6qqSx2c11fVNAeDYLG6hU6c x+ZtCt2lIFMuTDaoZWfYCXOTSiNJLqRE3n82MfZYF0xe2EADoj6zm8SkzSmYX7YHkpWh xR1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=meyNFn2s; spf=pass (google.com: 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 w7si3464793edr.309.2020.04.24.12.34.24; Fri, 24 Apr 2020 12:34:48 -0700 (PDT) Received-SPF: pass (google.com: 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=meyNFn2s; spf=pass (google.com: 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 S1729381AbgDXTdA (ORCPT + 99 others); Fri, 24 Apr 2020 15:33:00 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:24807 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729369AbgDXTc7 (ORCPT ); Fri, 24 Apr 2020 15:32:59 -0400 X-UUID: bc070601f1664a1289f7be9819272716-20200425 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=meyNFn2s3q5ux8jTYBVXFE+HJ8uDH1vCtQGjDEKwFyG0fJNJ2sJuaTAMBcR6/V8WQG735fT7pSDuurgkHSz9b4X66i8PSx9EWg/BVKZxa/m6pByAHPcbjH9hDsYt5KSyp4Saoy4PukZKx2p5ZxdSZDwyo6B2C8DyrDCI3vKzVBo=; X-UUID: bc070601f1664a1289f7be9819272716-20200425 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 652446989; Sat, 25 Apr 2020 03:32:58 +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, 25 Apr 2020 03:32:52 +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, 25 Apr 2020 03:32:55 +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 v3 14/18] mt76: mt7915: add .sta_statistics support Date: Sat, 25 Apr 2020 03:32:35 +0800 Message-ID: <3eb5f6555d9351aa9cf6ba551c806e025d9ec478.1587756404.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 ZXIgTGVlIDxyeWRlci5sZWVAbWVkaWF0ZWsuY29tP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