Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp103050ybz; Fri, 24 Apr 2020 12:33:39 -0700 (PDT) X-Google-Smtp-Source: APiQypLWqdkIpTPgRLF8cBdYGXEgXuxgKqvmf1pZ16cpRQi+K9GLPUBp4AImUwWgYiCHptYEMGfD X-Received: by 2002:a17:906:4e02:: with SMTP id z2mr8464401eju.212.1587756819359; Fri, 24 Apr 2020 12:33:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587756819; cv=none; d=google.com; s=arc-20160816; b=phF3WoFsVAzCA2CRm2PPmJTLgzHkw+Xp+EWdP+ZZs8AMnNrjU3qTPcHp7PWrGstbr7 NcsKOCO2poEp5OmTYInk4PjgvwmyAS3W18PreBiSNg7DY4TEWr88OUij+XDkZ8Fz5I1y o40lI/ggYbeuK3YYsCOFcNUsETXooTkp1DgbrGpl0Am4Ls3Bbq0uGPHQV/N4dX94CL07 JTAZCK6PfRsHzk0BZWAtS6eTlo90jJ1QxvX6mb/7+1dAwUBX1v92hikb7H3M1m8g+T25 HYvgB6nhadlFC7K74Z4eX3TZfbvAEqSqi1LHZJL86QMab9/h+XHyfYPldFFOQxPWw7cI DBDQ== 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=28kyiWh+DJyUahYzVncxWTlfyCRoL0b/vSUBaKQXca8=; b=mC/c/OZzhkYJtQv/6+OseixKYjD5nna0JFsP/UUBjTrqp3NZx7smCoz3sz75RDjbSk Lt05hQ/b0LRLTjr8MlY/QpOHUCv+2ooIrJRdgkqGsHi8nta49NSAooiXZFrm0nmh9aI7 dFzSbrTvwBLDrT5LyYg/SxKu6ZoS2pBWEtFgl9z+o6/v4ejLt5unrRcJXSJMSEvzWT0G XuZyrnvSk72WosB0Amn/oTL4dMqbPtnlpJJSM8V4Hqs0YN1CnVdF2l8HWLGeSBT7TiXm eZcUp38FewJm+1FVGk2hvx2KpPVHXlLoni5CuWgicZ6+v1ZEjZV/fakc7m3MIQIezTxI dtDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="u8YBCN/9"; 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 h10si3647743edw.542.2020.04.24.12.33.09; Fri, 24 Apr 2020 12:33:39 -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="u8YBCN/9"; 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 S1729361AbgDXTc5 (ORCPT + 99 others); Fri, 24 Apr 2020 15:32:57 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:57369 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725970AbgDXTcz (ORCPT ); Fri, 24 Apr 2020 15:32:55 -0400 X-UUID: 2b906e80d0444ad0a2b18bc1052980e0-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=28kyiWh+DJyUahYzVncxWTlfyCRoL0b/vSUBaKQXca8=; b=u8YBCN/9pV035ApETabGjmU1qnn5eVeaAYrGBPU/TTRAi8w9cClf6Y7P/eUe8Wx50d+hK/lry/SrKh3BQIthL/rdXQFHyIvaYMS2/ws8Xy5PWesiO/uLOiNx8i0N/oWTyDQRqtwod5+bNnkJWtFp4bwEzcJzEni20j7fOQbOt4g=; X-UUID: 2b906e80d0444ad0a2b18bc1052980e0-20200425 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 388193277; Sat, 25 Apr 2020 03:32:52 +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, 25 Apr 2020 03:32:46 +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:49 +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 03/18] mt76: add Rx stats support for radiotap Date: Sat, 25 Apr 2020 03:32:24 +0800 Message-ID: X-Mailer: git-send-email 2.18.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 2FE1901E1305162641D7C11B72595574A4AF624437F882A3DDE5620F69FCF0D02000: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 Ynk6IFJ5ZGVyIExlZSA8cnlkZXIubGVlQG1lZGlhdGVrLmNvbT4NCi0tLQ0KIGRyaXZlcnMvbmV0 L3dpcmVsZXNz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