Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3201137ybb; Mon, 30 Mar 2020 23:54:52 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvnkJhSOfNzO6VIjxdnpfW/9MEXxfql0ma+tUp1UtUlt8Nx48I6OTTDXcNs1LXfdIAUSnqm X-Received: by 2002:aca:5057:: with SMTP id e84mr1180759oib.120.1585637692142; 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=VxRAo9vddlyitDQaJsbGa3pBuM87fIkIoj/un1Vt0TamkkmMF2dT+ZjnosE1n7B1AS 8fqHDoQkfrvjH559XCHFnifkjwJOPbd1J0n03a9hL3raRVUj1K20PTUZyMtRUDR5CGH1 /S7eCTX1e7zEa7uJIfNOagdNnDEXFep1rRM6zkYZpjIt+o3XZSubvljj9iEb0PE5l4tU wlBH6vHm/McqPo7gLh9XKJQ2b1KNJ+LYmsuJC0KPuryaOvFgw7xdm6Cj39Dduv39/+OK x5S/mzcwZ3fbwUUK48AX0XAQsDbDQ8QHjKWzR8SDIFUVmxFKazvVtHe4W1GM4Ey2LQ0J lB9w== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=u13/otOsZwQRNSYopzBCUAzrteMoNJLZU3KM9kEkgXI=; b=IMzquvktCwd4oTK2sgcSSBd+N614O153KsYoGg8fKtzYmkzcJ1KBkSUH0XLbHUfLvO xZehSQcjlqw/aWkqkmy/++O6M6lBlnROWDjwmgcFtmPiNOdcNTnONsRZ9ot3EM+T/dFj of0+fcfU6vIb3e6WiqH7XO9XYB5gLJa0oRWbTlUH/4A82eXW07oQSgxknrH4DBiK1OoN 6wsad3sGPKcdT2nnsbLadMOeMe1bLYj0w362IHrFONqbYxegZPG3x4s9KvsHkqsBvyj0 6oauAB8wN4/88u9CFrnECaWVzPcebBllcsk/rnxhQoDOLmoBtDmkOUZJ8zXUEEvQaWOf 2AdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=tuQugvTR; 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 a19si8758735otk.60.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=tuQugvTR; 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 S1729834AbgCaGvt (ORCPT + 99 others); Tue, 31 Mar 2020 02:51:49 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:19038 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726299AbgCaGvt (ORCPT ); Tue, 31 Mar 2020 02:51:49 -0400 X-UUID: e0a15d4555984197a1dbd54ca4458438-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:Message-ID:Date:Subject:CC:To:From; bh=u13/otOsZwQRNSYopzBCUAzrteMoNJLZU3KM9kEkgXI=; b=tuQugvTRNlpEBYwK7607rkL/75D+tLtPgynY0DeE9qLED17rLnHRThAQFZ9SnbtFoV9CnLsAmxvaKsiYaxfTH/cKaj2Jk7I4mTNf9jiOVosBg47Bkhnzafjttqby9rc7OwR9iaYV2byHJTHzKej4Zl5pIIovQIlGeSFPih4plU8=; X-UUID: e0a15d4555984197a1dbd54ca4458438-20200331 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 729634148; Tue, 31 Mar 2020 14:51:39 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs06n1.mediatek.inc (172.21.101.129) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 31 Mar 2020 14:51:39 +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:37 +0800 From: Ryder Lee To: Felix Fietkau , Lorenzo Bianconi CC: Shayne Chen , Sean Wang , , , Ryder Lee Subject: [PATCH 1/4] mt76: mt7615: modify mt7615_ampdu_stat_read for each phy Date: Tue, 31 Mar 2020 14:51:35 +0800 Message-ID: <1fc90ec2a64d062ac7264aaa3dd158f2282ad7b8.1585636614.git.ryder.lee@mediatek.com> X-Mailer: git-send-email 2.18.0 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 VGhpcyBpcyBhIHByZWxpbWluYXJ5IHBhdGNoIHRvIGFkZCBtb3JlIFR4IGNvdW50ZXJzLg0KDQpT aWduZWQtb2ZmLWJ5OiBSeWRlciBMZWUgPHJ5ZGVyLmxlZUBtZWRpYXRlay5jb20+DQotLS0NCiAu Li4vd2lyZWxlc3MvbWVkaWF0ZWsvbXQ3Ni9tdDc2MTUvZGVidWdmcy5jICAgfCAyMCArKysrKysr KysrKysrKysrKy0tD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