Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp381311ybb; Fri, 10 Apr 2020 01:55:46 -0700 (PDT) X-Google-Smtp-Source: APiQypJ+Zc4f7wH/Tu+JghiAlhzqg13O2b9LBY9HTF4XXBx42eB9ttjIzYlUdfMlvSTGGAa1dG2X X-Received: by 2002:aed:33a4:: with SMTP id v33mr3258037qtd.289.1586508945908; Fri, 10 Apr 2020 01:55:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586508945; cv=none; d=google.com; s=arc-20160816; b=AlDtbR/kKD1G+3uBs7fsQDAk0usdSI2qZJgXqUhKRdb91mvdDffwichQ6QtZqTMWGF ANwAqUm5B+jbtgFFEcfI6W7vwx6ncIN/kRdSmEkKYy2A3qEMu9PkXtAlEUlRNo7zKxk0 B1o1QhGrebhWPxvpvXu6eLc8Bkp4xwzTFknuPw6kqTtcwEcmKFuek0fCavjUS6QnA8i1 vX0byKFLYUpqAFLSg4Gj1rNKadseaDTTMyyFFtMgVLQU16RCn2Pa8UMgqF4xkvasI0/6 ZR03NUHvpz5OPi37zkx5qUFpcT4aK4Rrsop7LeBLrFUzdcQcpNcA579sA3EQOCZcu6kJ KEjw== 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=nW/NV1pIIOrJcF7prBbOwV+wY/ThykW7kN/HlpS+3tU=; b=RsSPC8XHlzZvA3nyPV0/+1OdAU6IH6+4c01DcHmxngIJaK9lEx8B6D46YA0nSq7cF7 5nt8i3IxrB0ZCAICDc6/3PCHN1GgMF9WpACaQUDnh/9WWv3bNLGz0dzn5QZ6uSG9cOwm H81qsheHB+YXoiBZ7tAOJTxpDM1ytnadw4LhfvMNblgtbOUrq6hG6R36FEgSVvvULdRh EqTlBMMvsukwkg/qMUk0vCi3PaDGI9m8t1Ff/U8u0PJNRp6z5w9Wby4HZmD2MwuKz01q L493TeLwoj/eaVnP6tdSjNd7eRvsepqr9ujgwK2YjdWVyM2Oa2j76zWIQ65Vjo/Zn1X0 wn8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=Gz0BZody; 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 p17si1010929qkg.49.2020.04.10.01.55.32; Fri, 10 Apr 2020 01:55:45 -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=Gz0BZody; 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 S1726648AbgDJIzN (ORCPT + 99 others); Fri, 10 Apr 2020 04:55:13 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:51888 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726598AbgDJIzM (ORCPT ); Fri, 10 Apr 2020 04:55:12 -0400 X-UUID: d4f7428b8a84494790236c2329df7451-20200410 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=nW/NV1pIIOrJcF7prBbOwV+wY/ThykW7kN/HlpS+3tU=; b=Gz0BZody6QDscxeA1hAune+JTbGpe8wvJmExF5MDcUFHENqK8lzduFLuK2vQhU4GC1YhryLmPzyFLeYZXvK0JsrEs+DC7J+K1nfKPCXiYAYY3rZ8YrWjWb9NQeQj5YvXiLfEY9cj1j1XyZ/XqKHxWW+hd8iCDiVmfQG6/TdSmy0=; X-UUID: d4f7428b8a84494790236c2329df7451-20200410 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1133052055; Fri, 10 Apr 2020 16:55:08 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs06n2.mediatek.inc (172.21.101.130) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 10 Apr 2020 16:55:06 +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; Fri, 10 Apr 2020 16:55:04 +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 14/16] mt76: mt7915: add .sta_statistics support Date: Fri, 10 Apr 2020 16:54:51 +0800 Message-ID: <8e434a52755b926cc88cd0aebce59772e82e2793.1586507878.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: 93091D0F029E1C74F961ACB7DC442DC6CC9073155BC58DBAB5C9203A520543762000: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 QWRkIHVzZWZ1bCBkZWJ1ZyBjb3VudGVycyBzaW5jZSB0aGlzIGdlbmVyYXRpb24gdXNlcyBzdHJ1 Y3QgcmF0ZV9pbmZvDQp0byByZXB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