Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp104160ybz; Fri, 24 Apr 2020 12:34:48 -0700 (PDT) X-Google-Smtp-Source: APiQypKqt9qBZ3d7uQttYMsj5ZtEN7M+ZKg2BoZkqirpQ3U9oPiv12zn3vRk4P6ZyFIpHJ3inskr X-Received: by 2002:a17:906:2b96:: with SMTP id m22mr8525781ejg.330.1587756887966; Fri, 24 Apr 2020 12:34:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587756887; cv=none; d=google.com; s=arc-20160816; b=SaiR2vbXLLI8u+dHvNwCU9kpfdYWYc6AiAznkr+65WDJxrj3jTbRmCsYcsTU6SbLEf A5UDV9dPbevC+ChlTPsXbJarble/BPz4ayVEIQu0Vib3rGs4ZIlMAAhA58Bo2nxqGDMR JBdEa6V1Dx1Qjr+6qUrLH9QZD2W4fjKf/UXEIs6xuyCqhMzGP6dkEm23yBISYgJ9uJxG k699I2tFM6xdy3Usk+ZkZ4OkFUKzuvBwe5QAACWtRd0fFXIWyLp+27SgB7v4TRhi29NZ 4xfEj8CKcXbPgTI8wIsYQL8zMtVxPE9xbEPXcxVeovwV9JPn65c8L6nKifl6JQ7T6HM8 Y0ww== 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=zdoBTVw53PlFFl70rmGSQ2nWeVQ0rRd4v5iB93LTI+H5xCtVQqj6PMWf4GY0QNSLdw lP+nFNi6DfUudqmYRUXogAxHdQhg5h4ogCDw6yMZzmeRUsr/KXXPg2VQQd3O+neblWoW 3YnMSVX7mwzU8iXz6wEfuAGt3kwmqB5ZVC5fVHukGvw/LqToIA9kVaAVcw7nx7licWna Hkwj4v3AnQ0nuAlunlZ/yci7UZU3ia5k0ayWxdy/FJ6pFjZDY/9S9RvcE1i2GJjsY8l9 tU673zR9iEOYgu8+ciQIDlUJbohYUi13or17zBIOGAd/5ksqQAzovL70ANgA523PN6Uv Jwsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=ImratJ3f; spf=pass (google.com: 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 t6si3258679edj.527.2020.04.24.12.34.24; Fri, 24 Apr 2020 12:34:47 -0700 (PDT) Received-SPF: pass (google.com: 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=ImratJ3f; spf=pass (google.com: 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 S1729418AbgDXTdJ (ORCPT + 99 others); Fri, 24 Apr 2020 15:33:09 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:38853 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729409AbgDXTdJ (ORCPT ); Fri, 24 Apr 2020 15:33:09 -0400 X-UUID: d43a6f3a9223463a85dfb57e4ac4337a-20200425 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=ImratJ3fT8WLivRtj6Px4LMooJMWaRYtC+prqoUZquGF1ybCl7ZctWNF7yMN4iPZ2vSc83svvxzAgC6XW0jFcAw7JtUTWVuhtQdWD9xoI48nfrujXUZwuJM9BPxQwb5EK7cAR1IHEQNeJ5IqcmJYy4LeOAmbgi8LbZ7PIQ9VFQU=; X-UUID: d43a6f3a9223463a85dfb57e4ac4337a-20200425 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 863494962; Sat, 25 Apr 2020 03:33:00 +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; Sat, 25 Apr 2020 03:32:51 +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, 25 Apr 2020 03:32:55 +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 v3 13/18] mt76: mt7915: add .sta_add_debugfs support Date: Sat, 25 Apr 2020 03:32:34 +0800 Message-ID: <8b725cdd9b9fb1c3ce3218d38f560203a761cb73.1587756404.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: 0116BC3C9EB0ECFBF45BBC0E442DC25C6A68AC45EE6A94034D87A64A1E0074022000: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 YW4gbGVnYWN5IG9uZXMs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