Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1040709ybb; Fri, 10 Apr 2020 15:52:41 -0700 (PDT) X-Google-Smtp-Source: APiQypJYDxOC/AlLiI+PJ+EoYD01o+gtWTC/c/SW+yMiZeLR0d2b7jl5X5aDJCKiGubOwwEaf0/D X-Received: by 2002:a05:6214:1801:: with SMTP id o1mr7159674qvw.224.1586559161835; Fri, 10 Apr 2020 15:52:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586559161; cv=none; d=google.com; s=arc-20160816; b=xH+oJlLwFXW4FVema3oys1UIpiL5PwRIiuUIkgD7x0dRO00+j0yr4gjT+uZ6lMntT+ GoWrHx8WYl54+1x8b7hiEEGKw12BcSnd4kpeKfpSoVvjgCCz5qJ/va35jfJFalZGeSRo nfAKoJQ0alSAdfsCl+WFXbPh95sQSGVAPu+JKN2weJ83u/B5B4i/fD8cwH2FS++zz7ma NHsVGPY0dKn9K6aiO52YbNd5HrWFzWq/D7LlLqKzUaIYwkfTfJL9l1q49LcCXyoe6fKq MarJJ0K8w02v543ADGbUAeMwCjnMHrFN5OYmuBDTF+sCXbmHqbFDPMs+HAPrR+kKSC9z eReg== 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=R4UNxlS3PDE1UfNxbLRmAkrZkGkj9T94n61g04lPjas=; b=F2rn3Gi/pvvb0z5G2LjlryP+oZ5aFTuzVsNTkUmRqkGKv2Xz3kipse6GmD79bPfqqN e0a8V0JDeO8f0IFH/fixOZsFJPa3jASmukEjqSbcvuI8ibWrX7Fo0cEgs2ArTd5uuQIX AfYGo3cCN0LQUho9Ts31j9B2LugKzFFbrAJ0t+dMjd0LZby+OTaAysI7nrP2oMkcUpSw /4k0ofDtjG99ePCZ1NF6Jyw1lX7mDhVd5P6YpAZ0Eu2Yim7Ta2v48GZzvjxwrDIZS6eZ AVnBsU+ZUJprUFTu7kYIzliEMx+6onSbcusWiGOp3w8fsZpeQdyRM+CcJc6TgQN8lKFh wE6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=UnIgNZht; 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 f5si2124829qkb.108.2020.04.10.15.52.11; Fri, 10 Apr 2020 15:52:41 -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=UnIgNZht; 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 S1726720AbgDJWvx (ORCPT + 99 others); Fri, 10 Apr 2020 18:51:53 -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 S1726594AbgDJWvx (ORCPT ); Fri, 10 Apr 2020 18:51:53 -0400 X-UUID: 8a58ec278ea84da2b690dee0452f0bd5-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=R4UNxlS3PDE1UfNxbLRmAkrZkGkj9T94n61g04lPjas=; b=UnIgNZhtsYKJLSzealHsoBXcofzWWNLwJqQHc2tKy7TrEqCfUoitfHJN/1UkFqojIYyJ6viYsDW+XDAc0SOO5+JtOsOlKtDNIDTFYOCvfNeTFEbRf+DMoXCvkVWct7JGI9JAkH2xACDBWbpPIpBIjukq4TCA/QFK8yx5PkaMoAA=; X-UUID: 8a58ec278ea84da2b690dee0452f0bd5-20200411 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 314475904; Sat, 11 Apr 2020 06:51:47 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 11 Apr 2020 06:51:41 +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: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 v1 03/16] mt76: add Rx stats support for radiotap Date: Sat, 11 Apr 2020 06:51:18 +0800 Message-ID: <03f4b34864472f86aa5608fe08b4ca493e436140.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-TM-SNTS-SMTP: 4D25A72CFCD97A3650B65FE6D196F33E8C3524C93810EA45E138B238CD76C2952000: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 SEUgZGVpdmNlcyBuZWVkIHRvIGFkZCBSeCByYWRpb3RhcCBoZWFkZXIuDQoNClNpZ25lZC1vZmYt Ynk6IFJ5ZGVyIExlZSA8cnlkZXI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