Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp382234ybb; Fri, 10 Apr 2020 01:57:31 -0700 (PDT) X-Google-Smtp-Source: APiQypIp4+SX3kUkAGh2MWE3PmDUWs6c+iMbWx/shKLWmJMTk4sSsGxnFehNWqkkOIeFWdM1XDtt X-Received: by 2002:ac8:1a2b:: with SMTP id v40mr3525738qtj.364.1586509051692; 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=ytGbBn2Z0zMwnLJFwW+IbArvchUx4uHqt3D1OfRvGV8vWr3sOnBXKAd0Rm4KLvXN0i yb/E63oXjVMhZe4hmcZL+NJqZGOGLDIe5lPV7aAdWjDxzJ/bWZ60MYLw47kTHWGCjl14 jPU4hP30XApqN+OZUhPDv6b0U17YVqoShTMxtGkWTFGpLbOM1zmJhVbAKY0ZKvDNhp8b 0FH6IBlZ3hOq3X3q6EayL3ubipWUTJNSCBcaFnpBgtALrWu+goiDgjj+cQRQJ553Lb0A rfkmBBpZwC2OLX7kM6bACP3HvD0IFyxs+Z6wyCIderyiHWtXkg2WgAcHuu+IzmXnNVOY DZGA== 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=wAVt/81gWaHIbeEuspL3jMUs5niosskYbukxmEFZMmc=; b=uKFUVO0MUAOO6z97vqQs9nlT1Fz1dBl8yJSsk6kbO098szT+zklMeZe+NFbLDEDQGA Qj+CgwMFgES0uXSc3KWSR75zEzZLk8YLVJVs/qa9V2EsFqceG6Mjnpu4vVcGiKARHee+ 0x/D7Emo4HWLkgTJT8rGw+uoia2yrHuhm7WBibYfV3WMvT+xijds1+1IkEolR0YwMoFM rVi1D/afhblfeleOZkF8N5UN64ErGpcEKk7SbAiCu8voryr8rbmyc/P0DwXZuHNyAgwp 5+yPR6561k12kJPXYm2J4nfcr/VYtKMDTYRFL6lnpx3sf0NSoqZBw+m6BMrFQtfb5LM+ raVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="E4tv8e/z"; 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 z129si1024160qkd.79.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="E4tv8e/z"; 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 S1726666AbgDJIzR (ORCPT + 99 others); Fri, 10 Apr 2020 04:55:17 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:38438 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725914AbgDJIzP (ORCPT ); Fri, 10 Apr 2020 04:55:15 -0400 X-UUID: 2ff0f16dae874862843205e72038330a-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=wAVt/81gWaHIbeEuspL3jMUs5niosskYbukxmEFZMmc=; b=E4tv8e/zUKik1b9KVuXyfkoHXK3vI88FgbSTffEawJzRcyemXWuvnW8TLAH4iIkD//tYi7c2Z06uMey2sCywTX1rtPNAP3n4yYz2rjuyO+24sDFkSihOH/Rsf4AazbvZ2APucidnal1BWbPEaObc9gryeDIF21q+X0uk1anzW+0=; X-UUID: 2ff0f16dae874862843205e72038330a-20200410 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 433397289; Fri, 10 Apr 2020 16:55:08 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs02n1.mediatek.inc (172.21.101.77) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 10 Apr 2020 16:55:04 +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:05 +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 15/16] mt76: mt7915: set peer Tx fixed rate through debugfs Date: Fri, 10 Apr 2020 16:54:52 +0800 Message-ID: <704677800dd2aa4334b1a4d17bc9af11320a7504.1586507878.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 RHJpdmVyIGNhbiBtYW51YWxseSBzZXQgZml4ZWQgcmF0ZSBmb3IgZWFjaCBwZWVyIHRocm91Z2gg ZGVidWdmcy4NCg0KTWF5IHVzZSAuc2V0X2JpdHJhdGVfbWFzayBjYWxsYmFjayBhbmQgaXRlcmF0 ZSBzdGF0aW9ucyB1bmRlciB0aGUNCmN1cnJ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