Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp771965ybg; Wed, 10 Jun 2020 13:18:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwD1i96kV5ieBBLeIZpl8gQqDeHN8DjrJzb1ukfnJeSlP8p2D6b9Hz0p5Kc4u3r/0ko9qaQ X-Received: by 2002:a05:6402:3078:: with SMTP id bs24mr3980951edb.284.1591820328216; Wed, 10 Jun 2020 13:18:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591820328; cv=none; d=google.com; s=arc-20160816; b=fjrsHb1gIenJNc6oUpb767pjduZpoJoRdipu4ZI54uWyaEYFKHryAPN97OZ8l7H3zk iyr97qTjFJlI7s0IDg/RQJ9ZU1f1ImmkohLP53oB95jNFb/hm6HUjT1+O3sqBEyz2yDf Rgh6TRT0ZkJI4mxmXA6Z6JgWU/UHwOArJGY024FnkdSPQZDuVcmMujclc0PPNrQgn5Pp DCWhLB53L32srKtlvFRkIdgYqexOpS439TDRimeHyI63FWtrN8xoRLpvs0u6eJjGLny+ b/rzPii/8XwVObHoZjIYdUmRxzAmEcJxkdtfz/uTx0puqvEzCz0hfM8/8ZDFYvgVDM/d vu6A== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=o0+AgrL3m36KnRD2w1Z2U2NCS3XCI/jOOzPoe2G9JL4=; b=i5XNb5IXb3uBpglMqk5KG6zPgfdNQzdZw/IY7/9qrJYKmmpOUJ+/HqnLcDpn9/TwEV D9/PRmrNnnGPHAzak9EHfasS+eCHE7d+15X2I/5fGRFz5XuQ1Z4fQGw/VHCGl4BCQNqm WQ/ROMNgJSPRl/O1ARi81XH713WkTziYaBQzT7cuYYSKVXMwl153lg0vj78UbczUntFt kTLww25vi4yUZx3DZMFG+6QP/H4flJXEbQtpQLWb6ey5Zq+VMCeHfiLr4AinlU4zUhmk sAUwPWX96QDPhzBHChEL20TN2P0dnbtOBEN8+DIU1kwP65hHuScT0ulB331IVfuPaN5c thcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=TZoNec8U; 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 k4si627000ejg.386.2020.06.10.13.18.23; Wed, 10 Jun 2020 13:18:48 -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=TZoNec8U; 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 S1727787AbgFJR4D (ORCPT + 99 others); Wed, 10 Jun 2020 13:56:03 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:57703 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726970AbgFJR4C (ORCPT ); Wed, 10 Jun 2020 13:56:02 -0400 X-UUID: eec0285b405c4989ba73f46689186d1b-20200611 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:Message-ID:Date:Subject:CC:To:From; bh=o0+AgrL3m36KnRD2w1Z2U2NCS3XCI/jOOzPoe2G9JL4=; b=TZoNec8UL32ix2T2o0a/FryMs4f4uC0LkrggjejPyUpsekqwYWzTWK1B0o0IF62UGlij4u5Q5js+ZNtaYRd7CaCrefa0F+n/miEfcgp2tgMe9JEFf1mz7qjSza0E1mymrGo82apy6rxeCQXbRlNrjkdMHHg2Bb055KMh1+G6KKE=; X-UUID: eec0285b405c4989ba73f46689186d1b-20200611 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 821023678; Thu, 11 Jun 2020 01:55:58 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 11 Jun 2020 01:55:51 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 11 Jun 2020 01:55:50 +0800 From: Ryder Lee To: Felix Fietkau , Lorenzo Bianconi CC: Shayne Chen , Sean Wang , , , Ryder Lee Subject: [PATCH 1/2] mt76: mt7915: add a fixed QoS queue mapping Date: Thu, 11 Jun 2020 01:55:50 +0800 Message-ID: <8464fdd2191d8d77e51441474e5c99e18b64185b.1591809100.git.ryder.lee@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 89DE9F1DBD27ECA5AB09A68BD58023C14A0A6DCD88EDDA4DFD0295AD2D8A7DDF2000: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 SW4gTVQ3OTE1LCBoYXJkd2FyZSBxdWV1ZSBtYXAgaXMgZmxleGlibGUuIEhvd2V2ZXIsIGNlcnRh aW4gZmlybXdhcmUgbW9kdWxlcw0KbGlrZSBNVSBhbmQgVS1BUFNEIHByZXN1bWUgYSBmaXhlZCBx dWV1ZSBvcmRlciB0byBhZGFwdCBzb21lIGRldmljZX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