Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1846643ybl; Sat, 1 Feb 2020 07:36:15 -0800 (PST) X-Google-Smtp-Source: APXvYqwcjJk+DbREUwUzrZy7OvlTnlMpyUT+HnYqoV5G0hpk9RdrfcgktFtN5pRtAV+CdnlxfKIZ X-Received: by 2002:aca:1b17:: with SMTP id b23mr8121804oib.95.1580571375546; Sat, 01 Feb 2020 07:36:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580571375; cv=none; d=google.com; s=arc-20160816; b=gpYtrBA+HdHYaTaxJoHRFI7bxMPlfwHsmqG30P4Z6GAIJS1rSfbPYnxFoO3tatlb+M g1tSg3X7AKAwoXpeMAqTtuxrMwryVoz6d9OxtFq2jzDhiTO9T2uThl743SvAtwGIJ4H6 EqrP05Uuj4DlxMWLN2wAZh5iXtNPhf3Y40Y51zD/t56TX3TUnQ789wJN8mwHRT2c3svY FC3WUolBqkuY0EdXRmOLIqXm02c7rjDHucmd/4AgbRYkxFl2PYtonovJhBxLRjirCLL3 2ZQxOWs7Efu2s/8R5wmgxqH+t/LViuzaVeEZ/iKfvcyfMAWQ1GjyGQlCX94/7DVmJMSz 1Bcg== 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=x0RcsqRquhcXQty96nPHhZqu/2xMH1iLFFxG59uudt4=; b=avh75UAJm9uR/Dqc7O9FYs45sPf1ezWuuHRtzF1NbVBEUdi6jb3Pl0+TkgJ7zz/Eh2 w3KtrUp+4TaTrBDRzj4sO8FNIYJpscHIeIHgPW3XNsYeSj34p/UuwdY4TMyVkbQ19gTU mLfcKBeFeDYN0LST3Dm7wbnvs5Byffo4ldQ/3tqhPJLE5zSF/GGCicno3Cr2UCf1GmT8 61GaWJdaenr6CxkNxOOk774/6+TKLQ2lRdV8m0VV5dUuJ3SgukE2YFmSY68pXY3dsqxh QDXwBH/YXkRQT0CReGDsz//Oli5dbmxhDGjeXwEV5CL6dU8aQWFz5OMrqSaruVtRBO3M cMcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=bx3kHoia; 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 f23si1948009oti.283.2020.02.01.07.36.05; Sat, 01 Feb 2020 07:36:15 -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=bx3kHoia; 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 S1727096AbgBAPeI (ORCPT + 99 others); Sat, 1 Feb 2020 10:34:08 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:51861 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727014AbgBAPeI (ORCPT ); Sat, 1 Feb 2020 10:34:08 -0500 X-UUID: 4c6c4c040a154b28a6c4a7c028e620cd-20200201 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=x0RcsqRquhcXQty96nPHhZqu/2xMH1iLFFxG59uudt4=; b=bx3kHoia+tNZhtk6b0JAPZUNNKgaWpapd8mrDAdkdHcKF0yJvjNQQ+1Lhj4rmPYum2Apu+NHEc3FRaHUBdTrVNP9iSb32rmZBQJLerIubRKwSWRWHfpBJCfVvoB9Ltzh2Oc83rTI2yUPSPcZpz0ECsyurgGKS5IjXKp8k55pOMo=; X-UUID: 4c6c4c040a154b28a6c4a7c028e620cd-20200201 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 798518575; Sat, 01 Feb 2020 23:34:02 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Sat, 1 Feb 2020 23:34:13 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Sat, 1 Feb 2020 23:31:35 +0800 From: Ryder Lee To: Felix Fietkau , Lorenzo Bianconi CC: Shayne Chen , Roy Luo , Sean Wang , Josh Boyer , , , Ryder Lee Subject: [PATCH v2 6/7] mt76: mt7615: switch mt7615_mcu_set_tx_ba to v2 format Date: Sat, 1 Feb 2020 23:33:51 +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 VG8gYWRhcHQgbmV3IGZpcm13YXJlIHZlcnNpb24uDQoNClNpZ25lZC1vZmYtYnk6IFJ5ZGVyIExl ZSA8cnlkZXIubGVlQG1lZGlhdGVrLmNvbT4NClRlc3RlZC1ieTogU2hheW5lIENoZW4gPHNoYXlu ZS5jaGVuQG1lZGlhdGVrLmNvbT4NCi0tLQ0KIC4uLi9uZXQvd2lyZWxlc3MvbWVka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