Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3740746ybl; Tue, 21 Jan 2020 06:16:58 -0800 (PST) X-Google-Smtp-Source: APXvYqymgcXZw7ooz8t8v6P/0kfa4kUy/YXxsw6PcpWQHlhE+Zr2WR/bfeZpeR7ImxzhY/sqLhcJ X-Received: by 2002:aca:1204:: with SMTP id 4mr3138344ois.143.1579616218675; Tue, 21 Jan 2020 06:16:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579616218; cv=none; d=google.com; s=arc-20160816; b=RvvNlcj9u5BP/owQNNrPAAKPWmuvDclmwSyjZSHg2h/eIJRb8Gs2+sB9lUzmZWgXyx KH9nc5XPH7K2WAOMrsaRzq7X692at3z91SdgEtHu0oGcM1DTMZJbK3kXVlVuwzLuMV6T s5XEmJc6WPd8tCKXQ0N+wx2+ushPdEr57yujlV8SbMPrDMioz9Si6VJz1d9rMB1sQ26i 9CY2QXIvn3jABduVivCqXZv64VeNqkm6Xw5SyHGOikX+CPPiK60b8AH7h9CGYM4uA1yA XfqYHdonx/Ta4rptw0U/VRMzHKJM7eNTeZCYyfkQVAp6eT0WISp9K58PWqbYmEbDcjUu VWmQ== 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=iV5iXjaF4cchKkax0JroVBpr+w/+KYgl/xy6UOIthwk=; b=VVPGFckZzFY28v9cioprhQe5XbElKUj8S8o6nwUqV6+EiFA96qAv17zP6jW+41jdc7 TNxSDib5z85MWSl49c5SS/5ZDYQQaGh2e1yT0kR24bK88jHZLbPVMGf/ALQH7FkWmkeW z1eOynmz0GLGxAXfEtxi5SUflEO4tRG7x/vqknRC2uuHOWjjANI8hPEofJEdz5EVWyeV AJ622g727Jdk99WmpLtH7AcxEEK1TNQiiR7wZsx/gszxDtobB5zXExI9Q+zUzUfim4FJ SANIVPueSeK10MHI39lGAlSUPLeZoMRz0/b1k80xHmJyKexIDdRzM6/3zkFdIHDzkKHg 3rZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=jSLZ8Xqa; 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 h11si21567655otr.197.2020.01.21.06.16.29; Tue, 21 Jan 2020 06:16:58 -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=jSLZ8Xqa; 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 S1729353AbgAUON7 (ORCPT + 99 others); Tue, 21 Jan 2020 09:13:59 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:24642 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728913AbgAUON6 (ORCPT ); Tue, 21 Jan 2020 09:13:58 -0500 X-UUID: 60a2bcea37f74cb5924e9d5da8a8acd0-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=iV5iXjaF4cchKkax0JroVBpr+w/+KYgl/xy6UOIthwk=; b=jSLZ8XqaDftfs5O6phHoPlYJ24MjOCuca87pRhf7Q4uRZ8wwHoUPCmZioc6c39M4wGsLsAjVCNqtTThzu0P4Ualw8qM/lXbDKZZfprpF8IVP/E2iPckotQ/eG7JNWoRCibD+cYQdUGWEgAwmtOC+dd52YyXgS43POOYAbCvVtQk=; X-UUID: 60a2bcea37f74cb5924e9d5da8a8acd0-20200121 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1511421982; Tue, 21 Jan 2020 22:13:53 +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.1395.4; Tue, 21 Jan 2020 22:12:19 +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:31 +0800 From: Ryder Lee To: Felix Fietkau , Lorenzo Bianconi CC: Shayne Chen , Roy Luo , Sean Wang , , , Ryder Lee Subject: [PATCH 6/7] mt76: mt7615: switch mt7615_mcu_set_tx_ba to new MCU format Date: Tue, 21 Jan 2020 22:13:41 +0800 Message-ID: <91bfbe8d248a99520012125b330409a2701246dc.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-TM-SNTS-SMTP: AB99F623C0F614044996C3325F11A4369C544FB7E3FCDB9EFF7314484AB2ADCA2000: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 VG8gYWRhcHQgbmV3IGZpcm13YXJlIHZlcnNpb24uDQoNClNpZ25lZC1vZmYtYnk6IFJ5ZGVyIExl ZSA8cnlkZXIubGVlQG1lZGlhdGVrLmNvbT4NClRlc3RlZC1ieTogU2hheW5lI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