Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp400076pxa; Fri, 31 Jul 2020 15:29:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzq2aJb8WiUU9epvdOqcW2f5SVEvJWXH5jrxenDj9DnKe/OYkiRDrMvonfJDR6L7QLbCaLN X-Received: by 2002:a17:906:9984:: with SMTP id af4mr6608718ejc.90.1596234542075; Fri, 31 Jul 2020 15:29:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596234542; cv=none; d=google.com; s=arc-20160816; b=Zjhmyav9qdkbHbLAXrt2UmQJF9o/g42S/VTVK4guhbp+deJc6OifDHn87+iETqZ+bi tCEmCoDNAySoaPtbtosSZK05SKcyHvEsi6pIuLB7X6kInuH1DnMdSpxN+k/wB9fuftw2 WaKJe9NU8bHbOGg1NmzpVVj01C8FxHE7qO5LJdQZbjpkzN29kQpA62vzbe2oVOElQKHS Rh+p18qI7st6ayobIC2yptw5LyYQMmT09lsKACdxptmkv7XiMG2iVUZ2PCOfFy3Zjex8 my+4JXKJwKgqZCYQLAPEf52dqfEoCDFFGeDP5SRtlEnhVk2ySo4HtOM1yMPZLPYjGN93 22Zg== 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=xnz7ZONKdY2puDtlW4rbgiCv9EsKBL6SG/bcd3ZFP3s=; b=FuqJdyEFjgTXgi+zJMd3kSpnItRksBJ4XNtEBdm2L2yKesInCSfgIl1hP4QBgdXUQm PMbX4tNL21sFvMStf0pZ9lJS1CG9NQrmVe7ZoY9bIoIjGOoYhgFsH7LSf57B4lVx5gzo 698MlZqrUxgOQNFnW2opzZ4qQfYSlLsxs6zs1dEfzmFI5o80T9cPUAYeqPd8V1r8vbro NZUlD3+cVNWPiE6nl5FUqqXffiZcaJjtJI5O8ePeUr2WE7M6PJJDZZOuGWa6iaotm1H5 Zy49GYAXC3KE/ZSVW7wG+gEpnHnFydfmKKrr+WCion5fPdKS7RrHz1WTUCYXyUf+T50p +SdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=lQXqXmC1; 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 y8si6230254edm.463.2020.07.31.15.28.21; Fri, 31 Jul 2020 15:29:02 -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=lQXqXmC1; 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 S1726814AbgGaWYY (ORCPT + 99 others); Fri, 31 Jul 2020 18:24:24 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:43681 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725767AbgGaWYX (ORCPT ); Fri, 31 Jul 2020 18:24:23 -0400 X-UUID: d21d2e84bc424a88956fca30607852aa-20200801 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=xnz7ZONKdY2puDtlW4rbgiCv9EsKBL6SG/bcd3ZFP3s=; b=lQXqXmC13T42f8MJ/+rrR96mp7hTH0jM/sEw+175SzSntL4bRJx3AbKJQ1BCiufbqQGVDZ6eNiFmYCWilE918nROW7HqB5QDm220HkSAe1eW7S6/UVKRA75q6PQJWugPSrxtihTtK/ebKd1s/LgO3F2lZkVZDa3ajKWVi7jLpmQ=; X-UUID: d21d2e84bc424a88956fca30607852aa-20200801 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 614753913; Sat, 01 Aug 2020 06:24:19 +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; Sat, 1 Aug 2020 06:24:17 +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; Sat, 1 Aug 2020 06:24:17 +0800 From: Ryder Lee To: Felix Fietkau , Lorenzo Bianconi CC: Shayne Chen , Evelyn Tsai , , , Ryder Lee Subject: [PATCH] mt76: mt7915: enable U-APSD on AP side Date: Sat, 1 Aug 2020 06:24:15 +0800 Message-ID: X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 543531E0BD19A8784F58EB00277F76E37F990FE80C7FC417E504666826EF4D1A2000: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 RW5hYmxlIFUtQVBTRCBzdXBwb3J0IGZvciBBUCBpbnRlcmZhY2UuDQoNClNpZ25lZC1vZmYtYnk6 IFJ5ZGVyIExlZSA8cnlkZXIubGVlQG1lZGlhdGVrLmNvbT4NCi0tLQ0KIC4uLi9uZXQvd2lyZWxl c3MvbWVkaWF0ZWsvbXQ3Ni9tdDc5MTUvbWN1LmMgICB8IDM5ICsrKysrKysrKysrKysrKysrKy0N CiAuLi4vbmV0L3dp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