Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3738099ybl; Tue, 21 Jan 2020 06:14:42 -0800 (PST) X-Google-Smtp-Source: APXvYqwIw/meXxdmSqQKDooW/lYGRcqje4Q9Ss0Xfe5UCZBXGbMM/2OvsuHvyiR6CD1ZkKBoPf+j X-Received: by 2002:a9d:68cc:: with SMTP id i12mr3652714oto.207.1579616082225; Tue, 21 Jan 2020 06:14:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579616082; cv=none; d=google.com; s=arc-20160816; b=ghFPCsdkGassCCyTaCY56gCymswRpLJ1cncjvf6MOPaaXnLdfCpxc+eshO+8hIH4Iy aHdg07xnCGw7QC1OwmNPjssaZNQXWBqQ5kf1f9FTFWbAksRnhK2Io6KRqoWXhWOPkbZy pOmVZrA7rocpMjTCjzV8/NpWCNzwAFPM80VPyyOxBvFL15BsMiuY2p/VRMbMCAr1BWTF RFL+tgBveoDU2+mESXz1Qt7JBYBRJ0yWzMgPEmpaF7J+ql1HxRzVGHsFMdkVWbbm5ayf 6gw0njTfXOMkoOW/2lOdoWwjky/Ela1uoJ646r2zayzOwT6E8tvDxYhM0o9ZPd6WA6np D0EA== 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=5PijtlWhrJ3vYo3oL0POogoDCVJJn4dKgaURDq8yKg0=; b=QuE0+ik/AXjojZUqSkLv3TrPB9j0VMOG3axVVvO1MIj9XMj5n5FiSBUQefW3qtTVMF 5juoSlEzfsT1jRl44/t5Zl6siXJEBNBnJuMJNUJbtwD2OsA0k/Eb1xOv+Q/dbYjMD/5y JPCJiiAr1tlSwNblQXPYtQbvy9E5aFka8p264mfMeypMkS+yvQnLZ17eP/ZkbgP3QOPs zbZwVensm8Cz/QqcZHRb8n+YM2oCeXeh8vI9wIHq+Tv0+vPYTa5/HerfZYb+NWjZZF8d d1VAPw0RV16un1PCufjaT3hOMKinQmTM+2OLWi/UzAisKGBAD5ixgDTNXSjzo4VahYl5 s6fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=Zaxw1rvg; 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 l10si20932079otr.159.2020.01.21.06.14.26; Tue, 21 Jan 2020 06:14:42 -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=Zaxw1rvg; 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 S1729359AbgAUOOA (ORCPT + 99 others); Tue, 21 Jan 2020 09:14:00 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:20013 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729308AbgAUON5 (ORCPT ); Tue, 21 Jan 2020 09:13:57 -0500 X-UUID: 8e1906cf188648cd810aa3e3060c7c14-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=5PijtlWhrJ3vYo3oL0POogoDCVJJn4dKgaURDq8yKg0=; b=Zaxw1rvgtJ9ySipDlDT8Vu1tozDUMPEDuho8bkjFJ9kBpzwzoabyuwx++YJBLt8HyNEn4/gXexwZOwUypUj4zKFnYtlFUfMkP9uVdSNeXLEUzSw81uaD3Cor+nCr4scQj+304CNZ9XWCpWTQIRNusLT7mXiBkcNynXPaFS9JTKc=; X-UUID: 8e1906cf188648cd810aa3e3060c7c14-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 2007033303; Tue, 21 Jan 2020 22:13:51 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs06n1.mediatek.inc (172.21.101.129) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 21 Jan 2020 22:13:50 +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:30 +0800 From: Ryder Lee To: Felix Fietkau , Lorenzo Bianconi CC: Shayne Chen , Roy Luo , Sean Wang , , , Ryder Lee Subject: [PATCH 5/7] mt76: mt7615: add a tag sta_rec_wtbl for v2 firmware Date: Tue, 21 Jan 2020 22:13:40 +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 TmV3IGZpcm13YXJlIHVzZSB0YWcgc3RhX3JlY193dGJsIHRvIHJlcGxhY2UgTUNVX0VYVF9DTURf V1RCTF9VUERBVEUuDQpUaGlzIGNhbiByZWR1Y2UgY29tbWFuZC9ldmVudCB0aW1lcy4NCg0KU2ln bmVkLW9mZi1ieTogUnlkZXIgTGVlIDxyeWRlci5sZWVAbWVkaWF0ZWsuY29tPg0KU2lnbmVkLW9m Zi1ieTogU2hhe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