Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp176486ybz; Wed, 15 Apr 2020 06:44:19 -0700 (PDT) X-Google-Smtp-Source: APiQypKaL5/5buXgeSM/4jx/Fp0JXFwlIotJcqpaLCwlM5vmsVSF7QMZvdZMcBtD3gG38DAJHXVC X-Received: by 2002:a05:6402:1503:: with SMTP id f3mr24236107edw.170.1586958259382; Wed, 15 Apr 2020 06:44:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586958259; cv=none; d=google.com; s=arc-20160816; b=Fx3rkiZa+4h/Rx79u0QJqgbbQgkFrrYpPNSbI3HVH46qt5EbnnRr0vcmMmP+6HxqDP 7kymi9tzaemp4dsBP51hZX3KNJtc4r4ek4aO8QOfw74Rkinw8EmDRlU9Sb2oCaC7LrHr qX2El6oSuQWQ4sxxa0UHNrmq1YBm9aa9HXwzbGmJ8WMBjBjDlN63tTB7LQ58fPHv6Wec cil5MhMltEdMRoTUZsEgZz6fIc3mL3WBXCtY9sZhpZ9fftyQrkKDYd16nfCpkxgxuJsn nBRMIljsk2Mze5mB8KSJ3ZNhZmG1YBdioauz2gIjSHgh7YsR3gqr9VXOGxh1+0g0kh1Q efSg== 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=FU4fnFK6FjATZkPgOccxNKSpbEJPY03LnfTBWhP01rs=; b=YDR5aRU06N+JTrwp27Ep3gmLVMgx3bkmbrirGCAXllIjZ3si1AiNZMJ85bE83kgiTB pdFpwKFey0mjHWs8ozzox2PXtF1OzNZSurXj2ql7vy6szy6fGJxzCdJn6XllKzpcBmvG fFTfN51SWerDMIwkDsz8eoqncySG738YMScoSxp2cXCZwygPPAbQJh/6laldgg5OTZ6r PAdZwfnVA/rCtVQxjhlM1aJKF1OhYqqwfGlw60pNTprHi7gwB3n5kGSpf7qwEsjS18Y+ z/sZ9+U7XNdjlPTJp0vkVWljyudOVOUreQFsiJhMrcFfizQjgWSsgWOeguIh+ZgTRuTW tnaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=C56tt4dD; spf=pass (google.com: best guess record for 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 j12si7025984ejs.153.2020.04.15.06.43.54; Wed, 15 Apr 2020 06:44:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for 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=C56tt4dD; spf=pass (google.com: best guess record for 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 S2633608AbgDNVDA (ORCPT + 99 others); Tue, 14 Apr 2020 17:03:00 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:47633 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2633572AbgDNVBz (ORCPT ); Tue, 14 Apr 2020 17:01:55 -0400 X-UUID: 785d2694023443bc94f564ff5e75bd3a-20200415 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=FU4fnFK6FjATZkPgOccxNKSpbEJPY03LnfTBWhP01rs=; b=C56tt4dDAGcS6vGLmjslm0F5k7j2P1m9eKMwfyLLCm/P312dU/u4KA3WWLViO7/yKffpKg+sk0X9cKQ1SIsGSOO4OmuFuO20KU+KiV5iIfsZTSeRDRQuKqK6yEr1mmFgbcxifGdOgcnYGf6nphu+Hmy/T8zvXEyH6qcRSX+Gaf0=; X-UUID: 785d2694023443bc94f564ff5e75bd3a-20200415 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 768372044; Wed, 15 Apr 2020 05:01:36 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs02n1.mediatek.inc (172.21.101.77) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 15 Apr 2020 05:01:35 +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.1497.2 via Frontend Transport; Wed, 15 Apr 2020 05:01:33 +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 v2 13/18] mt76: mt7915: add .sta_add_debugfs support Date: Wed, 15 Apr 2020 05:01:11 +0800 Message-ID: <14ea40af9346cbd3964d56756e298e2dde172b2d.1586895593.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-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 VGhpcyBpcyBjb252ZW5pZW50IHR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