Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1988243ybk; Mon, 11 May 2020 09:08:29 -0700 (PDT) X-Google-Smtp-Source: APiQypJvWnZA3Idn4RjJXz1cfxe9t6nyvDXIgN/M6x1TboiUXMn5SeqYF7UTc6JQbWWR1uiPuwyB X-Received: by 2002:a17:906:5795:: with SMTP id k21mr9019691ejq.374.1589213309361; Mon, 11 May 2020 09:08:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589213309; cv=none; d=google.com; s=arc-20160816; b=vejd+lNrAM7iqeBQqvWV2o+aPjRmRg9opED1OMUXdSvNWVfVxmpV53xdjRnonPCeuU 0eir92BjKWh2dxwB689+i3biFJvs7UTBn7iZcpG4MeyGxkABYccmIoTHQxLUgsW780XP OGc2SwfTEaFPJGJU8avgDbi6wuDpqVNB+3NpmxKX11oH7THYPiNqMXA0kfSsV+hNKIDl 8NX8Kf6LvfqjlegwUHJ1SvN2C48jZtJdO8v7zinpKu0487AciVUrVoYuodbQFnYwmQuJ QR7GR7NYmsiX9kwT7BN184IVRUVdVbv4yWD20B41J5wwOvcNOHArZcDYxRWvRm39Nafn PAAw== 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=on1PuPTRZSxuW8kGOpKZcv+zhk/cDD70hk/j7tGKYkg=; b=v8JYUvKj9z3areR3edM9LhRCHg2POc6qylv9iP9kPLNZWl1hWicdk0CfUs1sHP/rXi e1GZ1OyIM5jBtCmbfCWgEts4fM8Qd/Hi/EPpF8niLHzBxjaa491XkIh99XLpMYHgFg2z C4jU1Lz2Tqd1wnW0KGSvp0Am8obcCeTAhbZY9AffNIgOwoXDMeqZppPcbcLs1Ox5/aJF 6K4e4ICoUL9ypDlmiEFeFeHq0B6WP6MTA0DvmQdLDkZjoGSV5xd+bQySUG3Mv7k+sFYW NwDvR2TKxL6SagEFb4wR9/Az40YRrJaugU819/uSisKQA191q1ftFAcYOWFKII+JYZPJ 93VQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=iSUrKVfH; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id h10si2601666edz.368.2020.05.11.09.07.56; Mon, 11 May 2020 09:08:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=iSUrKVfH; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 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 S1730656AbgEKQGz (ORCPT + 99 others); Mon, 11 May 2020 12:06:55 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:47883 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1730651AbgEKQGy (ORCPT ); Mon, 11 May 2020 12:06:54 -0400 X-UUID: 19a12c2c508f4b129c301b38f7e9dd50-20200512 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=on1PuPTRZSxuW8kGOpKZcv+zhk/cDD70hk/j7tGKYkg=; b=iSUrKVfHLhwjcXgeBIXZMvksi01ZQr3mEjrQTj3KM+I+i1Vcdj+SXzytaZMw9RcEaOPYgP/tyhscqp4f7FbB9f4InGnkxPHlAyJpWxy7dz2iU4ucv4j08LjSvwuX25q6MbC3Kiw9C51M65S680h+PFJBwU8N6NzDIzFy+43XBd0=; X-UUID: 19a12c2c508f4b129c301b38f7e9dd50-20200512 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 1461683987; Tue, 12 May 2020 00:06:49 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 12 May 2020 00:06:40 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 12 May 2020 00:06:40 +0800 From: Ryder Lee To: Felix Fietkau , Lorenzo Bianconi CC: Shayne Chen , Sean Wang , , , Ryder Lee Subject: [PATCH 3/7] mt76: mt7915: add Tx beamformee support Date: Tue, 12 May 2020 00:06:34 +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 RW5hYmxlIGJlYW1mb3JtZWUgc3VwcG9ydC4NCg0KU2lnbmVkLW9mZi1ieTogUnlkZXIgTGVlIDxy eWRlci5sZWVAbWVkaWF0ZWsuY29tPg0KVGVzdGVkLWJ5OiBFdmVseW4gVHNhaSA8ZXZlbHluLnRz YWlAbWVkaWF0ZWsuY29tPg0KLS0tDQogLi4uL25ldC93aXJlbGVzcy9tZWRpYXRlay9tdDc2L210 NzkxNS9tY3UuYyAgIHwgNTQgKysrKysrKysrKysrKysrKysrKw0KIC4uLi9uZXQvd2lyZWxlc3Mv bWVka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