Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp176886ybz; Wed, 15 Apr 2020 06:44:46 -0700 (PDT) X-Google-Smtp-Source: APiQypJE+WxMLh01T+zK9QPigletpDpoNSay8a1BziD4w9S+o1BTAL5snMsihO3lmkD8sS3h4y+L X-Received: by 2002:a05:6402:1503:: with SMTP id f3mr24237593edw.170.1586958285983; Wed, 15 Apr 2020 06:44:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586958285; cv=none; d=google.com; s=arc-20160816; b=VA/OHbaFRks+qCpdOJY6VutbP1jTA3iXALOzxPzW/65/PPw+5mRyzJ96nnXNbm6MQg wS/zzGee9+xlpanQQWPOGPOyrkMWJaMDjJRGnFkvyNvG1rkTskN+c7eErVf6kxPz7npX /Vzts9JRn64w4snVEVCrKTFh/T0Xdj7R8LBzzXVumAimdBhx/hAK+jEkrJuPK5seY09k DgLdbur1QGkBqUct/x4ek2MYg6wAvAEp5YjcCll9F/MB7agrFpNj2H+2nJzaY21AnQbH 764LC2aKF15bB+McGyJ7gK4htBqo/M9FewLetARRRGS1pGeRg1fC3gSQPyh2yoHx7FDp mc2w== 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=gtRFmRdqSCji8Utk9Fs/rTsemujaNrMM0YbB10ECirI=; b=JEc6o7o9uFqG7LWJyQQLDJgX1BmcRLqX1I/QNwQ1MzvkpQv+0DzB4LiVMMlmhOa1Nw f0r6D8okFkNdsLsItyeMfcCZ7ImmBtyJMI7LUadkPqw1zgnX0CYJ/bYAfRlYlNwYQB4p 9Vot3ZEYHUJT48TKmgXl3cV25QXXivR2L56JZIx02ZgBou4IJjUPR+ikDHe/fjQXGA/s 7dKs2Q+ywTTuFPA8KIbxGRxWYqm5j+7kk+t6h/so8W9gPzN+lqAluqpJ9n0Brgj14eSm Hf2OMS8m4gcUv/EOT2oZUsT1aU5WPO5Okv0k4e1e1JheXUQoDRiauQWg1ud0lDANbnk9 piVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=QF6tLLoR; 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 ch19si9357775ejb.240.2020.04.15.06.44.20; Wed, 15 Apr 2020 06:44:45 -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=QF6tLLoR; 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 S2633621AbgDNVDz (ORCPT + 99 others); Tue, 14 Apr 2020 17:03:55 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:4735 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2633585AbgDNVCI (ORCPT ); Tue, 14 Apr 2020 17:02:08 -0400 X-UUID: 69098fbb9e314850afd0190a7e00243e-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=gtRFmRdqSCji8Utk9Fs/rTsemujaNrMM0YbB10ECirI=; b=QF6tLLoR2I9Dfh/qaEgjQZMWoCGUSvyc4bfZaAgNKvRy4f8hLNeS8qe+coyCKDAnBuRIy43Unji8Ik7zHrUwGfNLgzMBs9JbOM+lHtxg1Ok3/D0EbCRjbYdvetpdrqAdl4i5hU/zhwlwK9dLQptGQrH4EC88T40NA0pFB8n2xGA=; X-UUID: 69098fbb9e314850afd0190a7e00243e-20200415 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1502061280; Wed, 15 Apr 2020 05:01:39 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs06n1.mediatek.inc (172.21.101.129) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 15 Apr 2020 05:01:37 +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:35 +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 15/18] mt76: mt7915: set peer Tx fixed rate through debugfs Date: Wed, 15 Apr 2020 05:01:13 +0800 Message-ID: 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 RHJpdmVyIGNhbiBtYW51YWxseSBzZXQgZml4ZWQgcmF0ZSBmb3IgZWFjaCBwZWVyIHRocm91Z2gg ZGVidWdmcy4NCg0KTWF5IHVzZSAuc2V0X2JpdHJhdGVfbWFzayBjYWxsYmFjayBhbmQgaXRlcmF0 ZSBzdGF0aW9ucyB1bmRlciB0aGUNCmN1cnJlbnQgdmlmIHRvIGFjaGlldmUgdGhlIGFpbSBvb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