Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3738052ybl; Tue, 21 Jan 2020 06:14:40 -0800 (PST) X-Google-Smtp-Source: APXvYqwwKtZR0DNJejA5aEiT+KSrLw8EywoSyhss9pYLZ/vVEKfWr97KMU94zNhliOZpNPaOV4n7 X-Received: by 2002:a9d:7984:: with SMTP id h4mr3754660otm.297.1579616079857; Tue, 21 Jan 2020 06:14:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579616079; cv=none; d=google.com; s=arc-20160816; b=nZYvkDy9ycXQ2iYwnzXzDb6VRPPwHfifbSesbr8P6GIHhwm/om1TDiZK+MZPedCwL8 2df0BFWansU5fOpaw17MNXT+Bffv6Q8QvIvizYD1oTRrQR88VRRkxAFUlOlwftlOrEDs SgJspiIe7MhIKzGfd46TQoHb8dLrYDmVslGd2YazWsUnjUOYADZPf1Igul5wIe+vsyUD 5t3d1UvnuO6KUNXov3NhmHIYUT2xqvE6JJ8XFhKYf2BUPmT0lUjs/DKU+J7DxSedvy9B dB8mugwqqVzrPGfMrbAkLJpbr22yPPbjr6cAR5x+Q5xoR5UQV0hvcnmRnYYIEtU3mA8s fO7w== 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=gd37oZ0axLyEI/QyrcT0vJ08dR3b4hQAx7SsmCJF/Ng=; b=WlDnX4XQ7Alt4kulQ0G+xXvE7HLSBCjgraNwCbMnL6oTqnpNk3HN4LFVdnCgkKSWpc 0ALZ6Lb1s13mwpdcSEgjLnH1kcvbhPoZC1eQ7ibcBG8pHI7cjSBrrg1EoNH1UGhcZOj2 vuwGYEuMKIbMyWe82NHNBSmyQeCp29Yk3zIk2Qusqkcx8YyAnFC4fvNT9iXJXpV9Hwfh S0pqPbjBEGaeL10c5oIDLv2+kBLvmjyDC0oV6lbmasw0+9+3sPUIH2244KJrbBaeoA8K Ra01zEqrZGu7a4rh6uXYz4T553BE0HwuOLfvYiyDrYjEPakAqOF8PSLlSLI4RjXv6K0E NRyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=MeomrP5D; 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 t74si19138877oih.155.2020.01.21.06.14.16; Tue, 21 Jan 2020 06:14:39 -0800 (PST) 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=MeomrP5D; 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 S1729347AbgAUON6 (ORCPT + 99 others); Tue, 21 Jan 2020 09:13:58 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:52943 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729335AbgAUON6 (ORCPT ); Tue, 21 Jan 2020 09:13:58 -0500 X-UUID: d4abc07388884fab83039075f17a8750-20200121 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=gd37oZ0axLyEI/QyrcT0vJ08dR3b4hQAx7SsmCJF/Ng=; b=MeomrP5DvXeI0xrFL/IBv6/hSXdrnt7ol7H0sbLxveZWKPEZNcUetdU521H0icf4VcWK+haEaV6iy2N10UapsfEb+u1/zVAAvlZj+KK5biJ+H2cL0aWV3HjdJrFc89JT+UZU3wGc6uKC0rvRd9VT8EOGMJFk8vc3PxvE1alhkno=; X-UUID: d4abc07388884fab83039075f17a8750-20200121 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 280709605; Tue, 21 Jan 2020 22:13:54 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 21 Jan 2020 22:14:43 +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.1395.4 via Frontend Transport; Tue, 21 Jan 2020 22:13:32 +0800 From: Ryder Lee To: Felix Fietkau , Lorenzo Bianconi CC: Shayne Chen , Roy Luo , Sean Wang , , , Ryder Lee Subject: [PATCH 7/7] mt76: mt7615: switch mt7615_mcu_set_rx_ba to new MCU format Date: Tue, 21 Jan 2020 22:13:42 +0800 Message-ID: <157c7f251ab1b436c18815cca3423360e0eec07c.1579237414.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 VG8gYWRhcHQgbmV3IGZpcm13YXJlIHZlcnNpb24uDQoNClNpZ25lZC1vZmYtYnk6IFJ5ZGVyIExl ZSA8cnlkZXIubGVlQG1lZGlhdGVrLmNvbT4NClRlc3RlZC1ieTogU2hheW5lIENoZW4gPHNoYXlu ZS5jaGVuQG1lZGlhdGVrLmNvbT4NCi0tLQ0KIC4uLi9uZ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