Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1129621ybt; Sun, 14 Jun 2020 11:24:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwP9veZNyA09+gOTFx7KdT/9nAilsuxtqLrtRPk6R9cePKNfj/DMgch68WiO4FIzIO0bcEq X-Received: by 2002:a17:906:4ec1:: with SMTP id i1mr21738230ejv.152.1592159071389; Sun, 14 Jun 2020 11:24:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592159071; cv=none; d=google.com; s=arc-20160816; b=cyr0/+zoDokWM/3Upw+QApYcL4JwowoRQAH3HPypIDgMLBrG/gnrmn1QIUhpPyZSGJ WSaNQLgxsd7V2oPd6uKiqBCJUtGOVtoknNyiiJSIoUv20XruS/MYsTPAe/r4siRsrzkq xfpyl2ffSjBCYP/Ox/dr6npHAZfK6NU2EQBVlPnTHMLrWUoI7/f2OmC+4rQIizf14EYY zeTa9syO3VeO7GBqMGmOLr9XkSXOqfyT6T5gtDgNMYUbjCz84Dqjk8LP2Qijl9cbl30x Z5kakbYhgv2IsbCEbA7UHu51glxSb9RK2KwHzo8K0s49TO8EHq1qXz+1IecAarIwrswL jJgg== 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=6Iu78bEOZUuD+x8ntpu745/T1aWmMJUM0s0T5RAk/6Q=; b=AKR/7gOTVNycPX3anIHVKp4L9Osxt+ht+WbquTerzEnYmf26DTyMbrzYXBmsnFE+xV OpcdbsAKLhU8Lz2QmuPvdKoivh/vv8XSO5zsqCPtEW5aIXVyUhV6WX3nE1SM7b4dsZDQ lxzvYP0mTwvNHNdMdEdZfx/Wid3ufAz6BBxGmCy6atAP/Ni1Piy00G5kOv4tYXAULYMU T9dFxuDIu4IbTEJ6TNAS28HdRrT0UCjwzeO/FcQ4gNRvCbf1epoQNVlSGiDXKZnU1arP FF4v5uVpivDa29OO1uW/4SgDXQTtvkSGDHbNpVdAuM5YRbjSU5H0jO4IEnnOA7Icf9Iq UTZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=ipKJ8JKV; 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 k6si5952379ejr.212.2020.06.14.11.23.50; Sun, 14 Jun 2020 11:24:31 -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=ipKJ8JKV; 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 S1726970AbgFNSXr (ORCPT + 99 others); Sun, 14 Jun 2020 14:23:47 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:24262 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726648AbgFNSXq (ORCPT ); Sun, 14 Jun 2020 14:23:46 -0400 X-UUID: 4b472b98f7e44604b15d952f5abc045a-20200615 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=6Iu78bEOZUuD+x8ntpu745/T1aWmMJUM0s0T5RAk/6Q=; b=ipKJ8JKVHC9sbrSx8UUwM1DjzHdX/9qfUq8A6J9Ng12BQLLpNMgThctmmgnZ3MRQRQgS2qhqZOH/j1wXIYkaRB4ymAhkoW6V4j+Xu0PdwDwCjKDwUb1xRQ0CaT1SPXp171AD9CHmZYl2onIpI52/1OTc4/0M2hXaGcQ8HJQp7KI=; X-UUID: 4b472b98f7e44604b15d952f5abc045a-20200615 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1926286898; Mon, 15 Jun 2020 02:23:41 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 15 Jun 2020 02:23: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; Mon, 15 Jun 2020 02:23:37 +0800 From: Ryder Lee To: Felix Fietkau , Lorenzo Bianconi CC: Shayne Chen , Sean Wang , , , Ryder Lee Subject: [PATCH v3 4/4] mt76: mt7915: use ieee80211_tx_queue_params to avoid open coded Date: Mon, 15 Jun 2020 02:23:36 +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 VGhpcyBpcyBlYXN5IHRvIGFkZCBNVSBFRENBIHBhcmFtZXRlcnMgaW4gdGhlIGZ1dHVyZS4gVGhp cyBwYXRjaA0KYWxzbyBmaXhlcyBhIHdyb25nIGN3X21pbiBhc3NpZ25tZW50Lg0KDQpTaWduZWQt b2ZmLWJ5OiBSeWRlciBMZWUgPHJ5ZGVyLmxlZUBtZWRpYXRlay5jb20+DQotLS0NCiBkcml2ZXJz L25ldC93aXJlbGVzc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