Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3201139ybb; Mon, 30 Mar 2020 23:54:52 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsWBY37oGnkIIfG59kBUQUGF2T3wHFOwgmdGyt6GRJDCnsVF1gZcAS8IZrLRxZ8zrTb1GUc X-Received: by 2002:a4a:1ec3:: with SMTP id 186mr11879928ooq.66.1585637692127; Mon, 30 Mar 2020 23:54:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585637692; cv=none; d=google.com; s=arc-20160816; b=dCE/4xr8Y7mwNCbHg7DSU3K5UVf3lrBOqNkrqJVVFV7bNK3q4WFAu20fkb2XWHsCiV +Pc/OiLf91/EJmf3pj7wpICPusRhROJqBH2tjhVIPFGsrMzfs7W4kxnqRSX7m3vOWo21 y5lCc7vLhK+ZdzNE93XG6pY3XfUHIlfYojiktw9yjyIJQ0jlcHkKeiz2PFUakQZ/hNZd /Nv62zvdlwZR3Q8OAWnEv4QvSHMIGZAJi9qSWe4tZlXaOb+ws1piQ+rpqOVELsOE4L4Q /pq5OZyG2fz8kKayIo43i5MGBC6DkQxe0cuq4m/7rcYzm831RZHqqZLgEIBAQn6J8Sm2 bMQg== 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=X0OcyMvL4lbrg36Mk7oc4dDFTS47i4dhzRfE8BnWJPY=; b=FWp+sCnX2E6p5KPmqi4vH5qP9dzLCIKXif1IL08YVXOQHZ9douLZYULkvEEMfcbTtJ VDZ3q1XcVJ7ygpAu3I0iXPrKd+qp/cxEFBH4SXZWF2EKJpWgFexhonLz9jol+8LVSajb sTBeBAnZdaNOpSx1Ji5F7ZqN2OEqSXDosdyYRC2LH7Pv6XGxag72lc/XLQhzqAUdSAxR 1PzA135ynNOMR0qleKHHxhS5gJfJaROkxHoC5/Lq0SAZIyIqGmNY3x6jumO+sZadSr1q OEESwAINyjnH+iZHT1lXj/do403ajpSikb5PtoOsiFb6QHB29oLeg7SDiTxCV56DLkIA 2GkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=e0pjuefH; 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 p9si7136875oti.202.2020.03.30.23.54.40; Mon, 30 Mar 2020 23:54:52 -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=e0pjuefH; 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 S1729958AbgCaGvy (ORCPT + 99 others); Tue, 31 Mar 2020 02:51:54 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:15083 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729918AbgCaGvx (ORCPT ); Tue, 31 Mar 2020 02:51:53 -0400 X-UUID: 006bba34ee6e4058afd77f1a9cacc190-20200331 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=X0OcyMvL4lbrg36Mk7oc4dDFTS47i4dhzRfE8BnWJPY=; b=e0pjuefH4LBBOaf69KOvQC2jlL8ddbwbVAK2zY/rPkbPiDIwlTPLitU5ep5SyFascGU8WVl8BHFaj6JSUOs33kKirsnk2N5EArdjBURte9Xama95FVC90tn11lY4VB/6CaGxnMNgGntVqTnw5xgMQPoO/+LOunrgdyaUdHOr/5A=; X-UUID: 006bba34ee6e4058afd77f1a9cacc190-20200331 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 58095262; Tue, 31 Mar 2020 14:51:43 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 31 Mar 2020 14:51:38 +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.1395.4 via Frontend Transport; Tue, 31 Mar 2020 14:51:38 +0800 From: Ryder Lee To: Felix Fietkau , Lorenzo Bianconi CC: Shayne Chen , Sean Wang , , , Ryder Lee Subject: [PATCH 2/4] mt76: mt7615: enable aggr_stats for both phy Date: Tue, 31 Mar 2020 14:51:36 +0800 Message-ID: <5f658e6a42f653299db86244942618730ffb9926.1585636614.git.ryder.lee@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <1fc90ec2a64d062ac7264aaa3dd158f2282ad7b8.1585636614.git.ryder.lee@mediatek.com> References: <1fc90ec2a64d062ac7264aaa3dd158f2282ad7b8.1585636614.git.ryder.lee@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 07D14E5CF4D800D171A703094CC85C8C5D681E1C11756252B4BC06F32B9DEBC62000: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 VXNlIGJvdHRvbSBoYWxmIG9mIGFnZ3Jfc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