Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp4369514ybz; Mon, 20 Apr 2020 22:24:13 -0700 (PDT) X-Google-Smtp-Source: APiQypIbLHEni8BZcClDrXN7rbOFeM+GpNgde73oCih8z/J55zKnQVOo/3sUSOggVNaiNku9SRPx X-Received: by 2002:a17:906:d0d2:: with SMTP id bq18mr18860390ejb.62.1587446652932; Mon, 20 Apr 2020 22:24:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587446652; cv=none; d=google.com; s=arc-20160816; b=W9qzGJ8aOnxciaPvMCZLMGNWl+e5ijTGgcFqLsGCNKUgk8AzDD7YUeQY9WV1We5g5f A4LhnjOg1QY9E05+gW7JZA8sBxmDu0FahGk2XFtq4OlnvyH0kwwAddcEyfNafLj+ijjo sE9Tprz2GKkqI+CI7eiCNlfLVTGn9FksKL4x0olK+Oqp+tgtUvtNLYH6g8JMRCr1wglp rRh0zNNbPSz+Pq/4yH7++Hv+Vi03QDkgOM2Mvm1LSJCC/9lU9j6AdVQ+okgOY0doyJ5F bSTsooqFi5YsnDBRoxbct18Ap4Jk7yIiw1PJK2u0VixlxnvdZhvPWpJEWif0oSxwD4Yb esgQ== 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=5XC0Ao1cIps8tVn+BctDx6S5LvFaIEhA9tJXzNUL478=; b=RAUlSPeYxEyPmOelibQrfBXCrW5nrhvLWjCt512SxRQRL+NBXPYcFyl3ujLvgVNpDq NV9tJWI9oat1stSYCeijl2y8nWLg64uN2qDSqER/x0RwmD+AI+hz42qeegdV96+7+hpm s8akoE2svMvmi6EsYuNF2iKWr52ylNJGsWJkTLY4QefRt6W2sFDcLW/zm7F4ywSyV7cS WJUTVSC1wYJsulwNhyFYQn9Ib+n37L0miF8LvFNkkFpdoOfHw2EFmtg0Sqt0GyPtSKU+ bdZgS58R0HZvWIRBL9Tqkzps0djmzaBUDKIyudZ50S+GB19T9C4njt51MN5vVbqNcOPT 956Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=Gpzlicv3; 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 o25si864894ejh.73.2020.04.20.22.23.49; Mon, 20 Apr 2020 22:24:12 -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=Gpzlicv3; 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 S1726017AbgDUFUi (ORCPT + 99 others); Tue, 21 Apr 2020 01:20:38 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:3102 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725730AbgDUFUh (ORCPT ); Tue, 21 Apr 2020 01:20:37 -0400 X-UUID: eec92d6cd007435fb1d25157dcb48cf6-20200421 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=5XC0Ao1cIps8tVn+BctDx6S5LvFaIEhA9tJXzNUL478=; b=Gpzlicv3FosIwHe7MJXRw53/0D/FiO8xH67LkLwacq/XDDbHcxGW0iLE0zL5dV6TMMc3c1RoCAHpkNT6FhWrGcJW1Gm0ED5Kf+Q8UMvhbFoNAPZOmpFqIfdyGmBBzAkxoe/0Jpa/GZ6Hdn5d/UlPEyvGpakJcTnhObJHcimLS0Q=; X-UUID: eec92d6cd007435fb1d25157dcb48cf6-20200421 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1498140609; Tue, 21 Apr 2020 13:20:32 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 21 Apr 2020 13:20:27 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 21 Apr 2020 13:20:26 +0800 From: To: , CC: , , , Subject: [PATCH 1/3] mt76: mt7615: Fix up WMM setting for STA mode Date: Tue, 21 Apr 2020 13:20:21 +0800 Message-ID: <1467d47fd111b5711fa74410833153bdc9e01b72.1587445885.git.sean.wang@mediatek.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 10B04FC7E3FA56E85C2CB57171A57B36D63EF18D6CFE344ED1875DFC912767042000: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 RnJvbTogU2VhbiBXYW5nIDxzZWFuLndhbmdAbWVkaWF0ZWsuY29tPg0KDQpIYXZlIHRvIHBlcmZv cm0gV01NIHNldHVwIHVudGlsIEJTUyBiZWNvbWUgYWN0aXZlIGFjY29yZGluZyB0byBmaXJtd2Fy ZQ0KdXNhZ2UuIE90aGVyd2lzZSwgdGhlIGN1cnJlbnQgdXNhZ2Ugd291bGQgYnJlYWsgV01NIHNl dHRpb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