Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1040937ybb; Fri, 10 Apr 2020 15:53:08 -0700 (PDT) X-Google-Smtp-Source: APiQypJ+oEQAxd7iG+JOQrznmbeV6DpTgDo7cQZCHWovqlnJHPSvM84Yde6bjhq6PKkvKBAftn2+ X-Received: by 2002:ac8:66cf:: with SMTP id m15mr1462841qtp.146.1586559187894; Fri, 10 Apr 2020 15:53:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586559187; cv=none; d=google.com; s=arc-20160816; b=f1O0Nj84n2kiovO8KOQdO7UbUScP1Tyw2M5u/TORlThu17nv/NRx1JyLR2DBU6YDAi /TNANP2BFvlSHRHriROqCY2tvTO+mO2Ob1IQB01vjvhIg7frm0LKDYrMne7biPVphP6/ Iax0fh8Z6WUeykWLh1zGPU2kk4a8SUGoAkDiFHptEcs7inq32szSK4uPD4NIX/iL3ehs TWswCDGh8eEQ3Y9LzCIXWuvYY9/5m6ximzPfclDsMg9qd2cUjnHZb+T9vaApvdf8ktcP 8/xyqOxWIE7iwX+c5em+oUPydx+pop78JO9HMN8cXWYs7oYiGC+EN6xAh13OImd83fUc oQnA== 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=f5kQlwPF4iuq2MyeYNdnk1RWMKmEndEWIG76IKKWz2k=; b=sGnum7wNQAu+hImvbNEAd2uXCJGG/vYn/Su93Fx8kjIzqqjmtHZp9EIcKRghLnN7om yMntmSnfYkm2FGE5FdYa7nLR5av8EfFGEl9orDEDTq88hZIypxTji2FNEI4DaygeIFtS s1Cp9DqFH08iTj69ktR/1YeARp7084eeG8cBRF2qdZsEheVzbC/+WmYIehnXAWFJfCdX D77XkaNdF71WQaZvXd/PfH6WMlHrWZMwG0ma6NGW7t1fmHSXESWkVQa3Ee2mRPbWWNVz G3Cm0I0PnYAQzvjT/cJsz2ZEHcbstEega0d93/uhh23H+LL7t9z8D2uROvVR4mjFSoYT ICSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=QRdHKppx; 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 i2si2237230qki.240.2020.04.10.15.52.54; Fri, 10 Apr 2020 15:53:07 -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=QRdHKppx; 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 S1726786AbgDJWwD (ORCPT + 99 others); Fri, 10 Apr 2020 18:52:03 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:5495 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726774AbgDJWwC (ORCPT ); Fri, 10 Apr 2020 18:52:02 -0400 X-UUID: 460c0c6e447d4ed19702cdd9b50f14e6-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=f5kQlwPF4iuq2MyeYNdnk1RWMKmEndEWIG76IKKWz2k=; b=QRdHKppxWM6Uv78nFNrivnr7qnaDyhO2k/cBk+CeRbx6JImy88uFbHiWW16TAabYnMYhot087yi84BPnQyjNOOrwHg63d/tz8X/uixN/hBLoRGJslx25k9vGJy8Qj54A8Nm1w85sbSSmzVXMalj5fdG3D5QEkPBFd9/4QWegua0=; X-UUID: 460c0c6e447d4ed19702cdd9b50f14e6-20200411 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 1998969611; Sat, 11 Apr 2020 06:51:58 +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; Sat, 11 Apr 2020 06:51:52 +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:52 +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 15/16] mt76: mt7915: set peer Tx fixed rate through debugfs Date: Sat, 11 Apr 2020 06:51:30 +0800 Message-ID: <4c58f4af64d93ac4980d6b0651563d85c3035909.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-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 ZSBzdGF0aW9ucyB1bmRlciB0aGUNCmN1cnJl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