Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1988267ybk; Mon, 11 May 2020 09:08:32 -0700 (PDT) X-Google-Smtp-Source: APiQypJPfWQnkeajR3GoBuUYitaHRd/+bp5u/M4UXSD2mZ6DwybutR/ENW1Xjh7ucs3v49CvzRn6 X-Received: by 2002:a17:906:cb98:: with SMTP id mf24mr14435949ejb.146.1589213311810; Mon, 11 May 2020 09:08:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589213311; cv=none; d=google.com; s=arc-20160816; b=nInOX4IXb7ECKB0s18JrfAl2C21h69o9wOeD8ZtwBObrBQCC4Y73zWrxl7bKgkc3aK DMlwHyc+ALH/JoZyjCB+lec1kqBmT8PrQeGSllEE1PxbvIvmc4wR8IbpZmoa1IcDuHz+ zbhqMLileWsuAIq57Hy/jiyMcwMVNPzsJ8x27ouAJaYoP4qsdavRUWargbURMTJbhKyw XlhVmoSgiQo1Lv4KMjRa9eAZGQt4VVjZpBKWDP969iEMGOfsYoll6OWlovpIaQrJdmxZ AeIPcV/7vBbYwxIqMt9FJThEeSLkdsdkrWTAcZrQ1jy6WVEHtkUtOjeGW85yPTmAzdmK MP7g== 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=FHEMH0BW/B3IHs8+yf1A994YLQsxOjuJtYLfdF1XWY4=; b=PiJJED5zliTIZqkW5zUfzixPQGDSVa9tmkjA3qkNK5QJAwmE6QZ8F5HprIrUu5+/O8 bAJApSpo+cCoo2MLWXMt3ETh9dQ1lX19IF7+S1SuvxtkvyOnRm9GqLy5Xd1gs7RA5SyT fyaJnaqtuqoWQjm8nKjtbfyOh+EzOHN9ZfK2GOkFtZF3R9V9bf0NxmLsxQKQlZEOAjug 5HiOALzDMsO/BiHNiWq61fdioaNqmworzsWHANsEL783gxYVgQj4unF2DUSR0jpz59H1 7/BTlqdjspi6HHbOkWcIZ9TkPeRp7CVoCQkGjX/rnRKElrEWdCf8dx7EUtvgUDFhWY/4 +xHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=IuE7zNlk; 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 b16si6305696edr.270.2020.05.11.09.07.46; Mon, 11 May 2020 09:08:31 -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=IuE7zNlk; 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 S1730638AbgEKQGu (ORCPT + 99 others); Mon, 11 May 2020 12:06:50 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:42083 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1730634AbgEKQGt (ORCPT ); Mon, 11 May 2020 12:06:49 -0400 X-UUID: 3a2915e458274d0ca34dd0727942f379-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=FHEMH0BW/B3IHs8+yf1A994YLQsxOjuJtYLfdF1XWY4=; b=IuE7zNlkdntWxNzkOVb7sIgdJb/BTG2YE/ECuQ7D1DrQtAv4GXLu0jMRwSUzWRfoOVhGVEXONbnMnlhVCGUO6XyKIgHSQPtRT0ExC4O3qXAWB8Kfs45huEUKkUWCaxFe+s13FbsvOphDvTcUm3j1/R++RcC9OMQmetAstadL/qU=; X-UUID: 3a2915e458274d0ca34dd0727942f379-20200512 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1454169398; Tue, 12 May 2020 00:06:45 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs06n2.mediatek.inc (172.21.101.130) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 12 May 2020 00:06:38 +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:39 +0800 From: Ryder Lee To: Felix Fietkau , Lorenzo Bianconi CC: Shayne Chen , Sean Wang , , , Ryder Lee Subject: [PATCH 1/7] mt76: mt7915: introduce mt7915_get_he_phy_cap Date: Tue, 12 May 2020 00:06:32 +0800 Message-ID: <388715592e47739507970be49766ffb35af95afb.1589212457.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: A76AA779FF5C4AF74D3C76B7265B4893BA8FC5ED108C5E0E47693D5A5BD4FCA62000: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 QWRkIGEgaGVscGVyIHRvIHJlZHVjZSBkdXBsaWNhdGUgY29kZXMuDQpUaGlzIGlzIGEgcHJlbGlt aW5hcnkgcGF0Y2ggdG8gYWRkIFR4IGJlYW1mb3JtaW5nIHN1cHBvcnQuDQoNClNpZ25lZC1vZmYt Ynk6IFJ5ZGVyI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