Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp382232ybb; Fri, 10 Apr 2020 01:57:31 -0700 (PDT) X-Google-Smtp-Source: APiQypLzxe5L2VTjQHbxMByPM/T1rIGcBaVueUzrnCSkgtsy9Qefyak6tjzxXo0PlppX/q5u7+xn X-Received: by 2002:aed:3edd:: with SMTP id o29mr3440687qtf.149.1586509051675; Fri, 10 Apr 2020 01:57:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586509051; cv=none; d=google.com; s=arc-20160816; b=JZ3RBzpu+W65V6hNoirQjCvv5k1mzQ4qM9IiPIbViJfj5GABgznkqI8aRE3yh3ujDv Aapeusf0ZrY53oDl/ANwp9IVY3THBLFLW2mtWTfoCAf/VHKRLau+pl3ZuR5G2vd5v7Z3 oXUy3Ajpq54PtLpeKxQyGr+RlxC8el8DbqUVgyHK1XnCR0rNR4S3dOUBG79NEcDWbsEt BIE9osm1UyKnR0r3vbxBdpA6pxaGN5/C8NWPBaqTZeKBJxyfYSHGhZbE8utFXYggVhzX cvhiLMI1PzePrLvL5OeglC3c4AWl5Y1xO9YATer2+f6ZAW8nsKpbcvkPS4a056jpO+wc WGrA== 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=qyWS56ORXuKTFt6R9fhAFtlmWFnqzyRElQ9sqHDEES4=; b=WxFedwLp83RdpltwLMcFCJvjaOxciwRMpGnlNLHUL0S60+kJ3S9prHWjMGyMw3JYdS I7prKHMv9RuTaA34rTzo4ieMBDiG1txw1dyg+WnaFRIzYm/8AzhwQlwFNomSOP+x1hNL lrogBJV3F77RMnE2j5KF4DiJOtTz2z10+QUBNmoqmA56dC4ywIa7cNUJSyPrJUJzkoQB mwPSc475wuLfVSy5BcgLlyr6QLoTUIVLqDHyRCsdT/NmY8GaaPuUMt61BCVXZd0qT8BZ woxpwvOUUawWt+5Itsu7ovQDYw4CG3IcV9uJOjIpgxsG40GXWIoIrJM3C65+Qb67s3UC UBXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=hak7bhfD; 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 j14si904453qtl.133.2020.04.10.01.57.17; Fri, 10 Apr 2020 01:57:31 -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=hak7bhfD; 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 S1726082AbgDJIzS (ORCPT + 99 others); Fri, 10 Apr 2020 04:55:18 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:15206 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726143AbgDJIzR (ORCPT ); Fri, 10 Apr 2020 04:55:17 -0400 X-UUID: e6a68ce20f814694bf7a32c6b776c1a3-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=qyWS56ORXuKTFt6R9fhAFtlmWFnqzyRElQ9sqHDEES4=; b=hak7bhfDeE6l/RqaFIc1ocW4kzwIIbt+DRKTvNeRO0j5wPCxMOzg/QFfTkRrnOAb0924/Enfa3jdMxpMfQOMsyBrqcmoxuPFILaLazjJgQvQuS1AxuwN6pMeDRMwwSEbDdmjbTaHdqvG/pj6q7H2JiuNcpUBTlPOyl2Wb3+z/BU=; X-UUID: e6a68ce20f814694bf7a32c6b776c1a3-20200410 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 97522466; Fri, 10 Apr 2020 16:55:07 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs02n2.mediatek.inc (172.21.101.101) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 10 Apr 2020 16:55:03 +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:03 +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 13/16] mt76: mt7915: add .sta_add_debugfs support Date: Fri, 10 Apr 2020 16:54:50 +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: F75D78E250F33A7F3C578D9689882F6ABDDA2236168E85009C32C6F6C073B0942000: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 VGhpcyBnZW5lcmF0aW9uIHN1cHBvcnRzIG11Y2ggbW9yZSBwZXItcGVlciBzdGF0aXN0aWNzIHRo YW4gbGVnYWN5IG9uZXMsDQpzbyBhZGQgLnN0YV9hZGRfZGVidWdmcyBhY2NvcmRpbmdseS4NCg0K VGhpcyBpcy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