Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp381300ybb; Fri, 10 Apr 2020 01:55:45 -0700 (PDT) X-Google-Smtp-Source: APiQypK5mfyq59DrrEUPgqQLTPSRSMxIqwW/Y9Jb/uI8THJ7cFBw980ywiuxBXp3e4mkT1qD5KsS X-Received: by 2002:ac8:3805:: with SMTP id q5mr3423275qtb.46.1586508945004; Fri, 10 Apr 2020 01:55:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586508944; cv=none; d=google.com; s=arc-20160816; b=u0SnigBZUCDp4lnHTz/giV26YMM/FUW6TT2lTyKuvYoSFqwQt46TLKWgQAf1Vt6C8T XKapgcEeTNA19o8+48y9wtmO5NgWwRQedx3rpNFHOHJIJ+rfpa9hLceXeqn5lWTHMpsS ctM7+A0JvytBmDvRTijCGrqeLdTC6v9/uWpOIKQsq88Jhay5ha9LkiOfUsTy0ziVvsWQ FmmMhNG34+IEkb19ILFaP1PEZ6IRp+Qcf+43wmvkh+xo3XqcEG3ZTgYYRXQLPW0jEehn Q0thIpXPZb5nmxJExo9HtDD1ePdXbhnVbsDMCh/cW3foS4xoOAwBwTE4TI/wu67TzAZ/ gSiQ== 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=1DSTp/bpP9UbyDQzSr5aF0twBj7E1KmUQ0TlVlgQbFs=; b=e72eJX/2RorTHEXFuqoJfsGBqDNZODxZuWUZdg0ECW56UEwj8saTPc+HOhvNw9oX47 iansyyRjs4qON5RaCgBxet7Fh6os/L5wiK/FdeodwlKdY6X93051kYBJ8aK9Pc8bQWsI cl60vBdzkroku5QmzqEO6ClY3gUftPQX/dHSPuoEDt0oPDfkd9+vUw0yInDAIWbZ8wpZ rwtl7XjHSyBEF/UOYWroH1AuJm/Zpko4OkSGY9BuCTp0BiRAhRZt/WVDcXsurZa9eqi+ dCEuzbiNzbNdOjonNPQPi6ON/NPqtklvGyEq0t8kJEl1WpmRDX4M8mZ12rQrhto3jL8S ERwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=rPJGVeAu; 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 s18si713629qvv.86.2020.04.10.01.55.30; Fri, 10 Apr 2020 01:55:44 -0700 (PDT) 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=rPJGVeAu; 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 S1726646AbgDJIzM (ORCPT + 99 others); Fri, 10 Apr 2020 04:55:12 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:15206 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725955AbgDJIzM (ORCPT ); Fri, 10 Apr 2020 04:55:12 -0400 X-UUID: 1d368921b0874139906a07c02d10ccfd-20200410 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=1DSTp/bpP9UbyDQzSr5aF0twBj7E1KmUQ0TlVlgQbFs=; b=rPJGVeAuvRZSebtTruyZ4vj+UVTNiCF/J6zmFAKU4lV8Ju+A414fPIONDjUmZV2d7S5aM2HtEKAuciRERipudg/8P6aiacszv3diuh1RcQZcKuAF4axwCkWHPgbJrZvkmNeNnOkM2xKjPhnCf8jDBOvYA9wVhpvj+e6vie14QbA=; X-UUID: 1d368921b0874139906a07c02d10ccfd-20200410 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 204179446; Fri, 10 Apr 2020 16:55:03 +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.1497.2; Fri, 10 Apr 2020 16:54:59 +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.1497.2 via Frontend Transport; Fri, 10 Apr 2020 16:54:59 +0800 From: Ryder Lee To: Felix Fietkau , Lorenzo Bianconi CC: Shayne Chen , YF Luo , Yiwei Chung , Chih-Min Chen , Evelyn Tsai , Sean Wang , , , Ryder Lee Subject: [PATCH 09/16] mt76: mt7915: register HE capabilities for each interface Date: Fri, 10 Apr 2020 16:54:46 +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 VGhlIGNhcGFiaWxpdGllcyBmb3IgdGhlIEhFIGludGVyZmFjZXMgYXJlIGdlbmVyYXRlZCBmcm9t IHRoZSBjYXBhYmlsaXRpZXMNCnJlcG9ydGVkIGJ5IHRoZSBmaXJtd2FyZS4NCg0KVGhpcyBzaG91 bGQgbW92ZSB0byBjb21tb24gZmlsZSBvbmNlIHdlIGhhdmUgb3RoZXIgSEUgZGV2aWNlcyBzdXBw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