Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1845398ybl; Sat, 1 Feb 2020 07:34:34 -0800 (PST) X-Google-Smtp-Source: APXvYqwst1RmIcMYy/7OzFNO1JqeKoK6UDf6Ruhwf2qBIG6YGm85MvDdNeDcs4VXf+LM2KI0YRsz X-Received: by 2002:a9d:6a85:: with SMTP id l5mr12172976otq.231.1580571274474; Sat, 01 Feb 2020 07:34:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580571274; cv=none; d=google.com; s=arc-20160816; b=vrSEL4LUjN0b6DmZDEumn46n8qwQePOBaz72bC7ZyIq1PJwI64mYOBxjttpA+w/rQj zKY7XF4kwchjUkrzte2Qnvv8w7MPGAoYhKIJOVwwR2cjNzntjwETEa+CSxcVsCtMujNj 0stabgLOTf/KII2RV204Gzuf1QterZBMPQV16cjlgmZJO9AFujYuHZnMj7RLQP/8KEkp llhuy7yrb7T4wCuNihdrvP85MmzFnUiqjtJzVMFShFOdMIauYAJTlNVZMpaCS2YQ3/WD RSsJY0mnqgD6meAcuHPep1i4oBxvlUrjbfKHZWi2cLFZ6/swsZNgDlrmLAF2NkmLpUCT HkDg== 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=yuPIAAalJI7V6zSDuiapuZAUnXw2pqdb6RVynu9ZCJQ=; b=EXdAtZTY6sR6FB2/p136aRlObomgpojtHALGwcqJukiiH+MXEY3eurOKPh2ECg4o6w YRRNl+8aDXE2g+EY71Sn4HtIAGtINsy2p9uNDc+B0iKBfMo5QbyRRuisH3WtGC7jkOE3 Hs98WRON8Mq/m4fCwCRHgNPxv2+3zR9D0d7YZEyb48qL34V/cDF3UyJTxtWnpOOLWcj/ yoGMUH+/j4NmDtY355N9N3QcNk/iBQCbcZ/Tr725qlFhHxJ4vSBL0CRoMrbGG7cApy6o H8kaJhkIuilFjRoMuMJ6oiAr2ZoDCMR7vLvHyd6+SJi50Rbg7E3gZ44NCXrLDubYH+uj vidw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=JbXAbqJI; 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 g25si6787767otj.198.2020.02.01.07.34.11; Sat, 01 Feb 2020 07:34:34 -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=JbXAbqJI; 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 S1727073AbgBAPeG (ORCPT + 99 others); Sat, 1 Feb 2020 10:34:06 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:21498 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726825AbgBAPeG (ORCPT ); Sat, 1 Feb 2020 10:34:06 -0500 X-UUID: fda9c11a8eeb4fde9b73ccaffa1a63d1-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=yuPIAAalJI7V6zSDuiapuZAUnXw2pqdb6RVynu9ZCJQ=; b=JbXAbqJIP4evoy14wBZbwY9G2wytKPe86EjysR92V3cU6dvwXZTYaXkNqnnuYicmGE8EojsiNg7owoeH5M0tnlMbA6kz7HdmuKRup8YPH1Q5DY5bAyp4NITDKwDVusXnU59mTzjPH5Y2DQ2FMrCicKQXN2slxzc8WP1PHkJxEqw=; X-UUID: fda9c11a8eeb4fde9b73ccaffa1a63d1-20200201 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 491350696; Sat, 01 Feb 2020 23:34:02 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs06n1.mediatek.inc (172.21.101.129) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Sat, 1 Feb 2020 23:34:01 +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:36 +0800 From: Ryder Lee To: Felix Fietkau , Lorenzo Bianconi CC: Shayne Chen , Roy Luo , Sean Wang , Josh Boyer , , , Ryder Lee Subject: [PATCH v2 7/7] mt76: mt7615: switch mt7615_mcu_set_rx_ba to v2 format Date: Sat, 1 Feb 2020 23:33:52 +0800 Message-ID: <21e5b635042aed4d2c8d3c1b75c96136f2e20d6d.1580565624.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 ZS5jaGVuQG1lZGlhdGVrLmNvbT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