Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1040892ybb; Fri, 10 Apr 2020 15:53:01 -0700 (PDT) X-Google-Smtp-Source: APiQypJHc6BfO5SVG/63mU1rKE8ZYNyG+Fx7Q9HnBwFm1aA6j0h8HOUTJOTPphEOgiQNpjq3OMOh X-Received: by 2002:a37:2e01:: with SMTP id u1mr6267816qkh.331.1586559181658; Fri, 10 Apr 2020 15:53:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586559181; cv=none; d=google.com; s=arc-20160816; b=0W5W/D7BEGrL6Gqho8cKqcQTuuv1/zDK4/FzXaM8j+VPWDcIdAmditKxPyaK/hcRmz wDQN1OYQGz4PpFSRDOsylSwr1FBAS4BepgiG33OyAh439VGhDVSVRKzYL0vo4SfmHzvN h77h8r9zPzzMW8rxkqHaFK3oVRrNBtWvPtJU9MCTUTSLcHbUAfAzSwy7bzXuyr1ahLYw nVd8i/m4hL89GDxGM/Xw7uv0JKcE8STuQPlK3njG1e4k2btoibeN4TU8J8Wks0Vynjc9 lffYzPOZUea/xEMqRbHwycZiM+str7wL06h0caBnaiG5geqAYKWB+497Joxr2O8Dfx3U aCEw== 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=a2mkPT8ABx7ThKpfSdXFFfhU4+0IzcxIoV1MskHXhBovcTc4v9/toeVvpw1kvpBmgN IqOZGvA3+DTlf/+2Ssv2CE5YGQxyy/tusLEUNFMYz0GgonZ5bPF2xz+mTuK2NjUwn7V7 X2v9yTVTTFKNox71OSZmoEG3R3XzSV45u3bpilnLHNGoVT5qOLNdL8eVx+yxleTYEIm9 USfeLvZP3c7zBzv77Rak++ji0uGRituW87TaycztZHwIpojz5PN6dIvCx7JdQVnnd+dS ZuGBhpfP/v9GZR0o1W5NtVJX4cW022U8i9nVaPOVqJgGvqYd+NPT2na+ZBT5hlr8SRJK ktAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=KSjCrkon; 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 q67si2105152qkb.102.2020.04.10.15.52.47; Fri, 10 Apr 2020 15:53:01 -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=KSjCrkon; 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 S1726765AbgDJWwA (ORCPT + 99 others); Fri, 10 Apr 2020 18:52:00 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:7473 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726687AbgDJWwA (ORCPT ); Fri, 10 Apr 2020 18:52:00 -0400 X-UUID: f56ab82d774245a5a03b9f1eccd03563-20200411 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=KSjCrkonnzp1ETmZQ1xMlFwSatBTnBf5DWKwcSqDiOaVpXK0Y3DXJ2lzlePMV69i+xxoy4xvYD+PfpeEnGl6ASxGKErjf7v2NRovWKZs7/MFEfxkI27LzqqCWNDwEpLD8037ayeP8zb3Q1xro99bXOVfPVIWjZ0NKMUy8jR6jAM=; X-UUID: f56ab82d774245a5a03b9f1eccd03563-20200411 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 523062821; Sat, 11 Apr 2020 06:51:56 +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; Sat, 11 Apr 2020 06:51:55 +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; Sat, 11 Apr 2020 06:51:50 +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 v1 13/16] mt76: mt7915: add .sta_add_debugfs support Date: Sat, 11 Apr 2020 06:51:28 +0800 Message-ID: <69e27b40a6fcff8cb705455d7a9ed57cdb0983cf.1586558901.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: A3AC37CD68751AB5FD974D295ECFCDA46AA5F5B330282B601BFF88250786632E2000: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 YW4gbGVnYWN5IG9uZXMsDQpzbyBhZGQg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