Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1040895ybb; Fri, 10 Apr 2020 15:53:02 -0700 (PDT) X-Google-Smtp-Source: APiQypJd1/STJFSUTg5L8bJCRwQXY6ykR1xSsgXurOeSDsc9kFxV3+C0W538L85PJwJMcogMDQZz X-Received: by 2002:a37:6117:: with SMTP id v23mr3049387qkb.100.1586559182231; Fri, 10 Apr 2020 15:53:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586559182; cv=none; d=google.com; s=arc-20160816; b=pLUiVL0soFC0s2GvQDYq5UzQg7bDCAxzQcABHxts2diO4l7/5eOEd+q5JBsXVwAAu9 KUSFSCkHWisMlavDfpn9h18ReSTTcMwdmhDMLpAf2NkbYyqBhonW/BukcwiN37M2luz7 E2cuLq3Sz6ja5gjjVjY8yE9K1G32Obe9IwxahjCOdGoRh+YhyKs1FESst+OjVijNhy61 4DoNZJWSyTqpiP44tlBnb4U9OeTupML7sXxeO1OUUfX2E3Mogn8nGZrqRpPhdYGS89vt 92nM3dSY8E+OqDGk5ht0Si11NGArHEAZHhzaHIxb72ebw2PLswczbNpapVtU61Jd8lT1 644g== 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=g1WmRQd0r9iWD3yfGKI1Jh5NIifbDW0R65I5uzUBO5A=; b=GKv3JPef+B3fm5S48wDcV95/ZybB/EzKOCzWTjVXrceE2qlI4mjtkY1XsrxCVHT5tn jl18S/wiVSW8CSPsLP26ATP3vQxFVIZW0pjjKTwjaTgczThRCjahBvVeMUsohY+toV4s pEJSzrERR5o9LYrfcvS/fSaCik/8NcTiT+3tOGepbI0sSpb7pgfXeJUiX+R4MMi88vQU hyk55GhdYKntT/TX4oIDGsNxDB+Qzv+kgWatUZcXaWc/w/I9mta8sovl/ns9f923iFCk i7WNDE0ZLV7KIUjaoLp6zt0k+mO6H2xmtVzOxest+nwxuEM/0ycyjbDop1/v1tpTRGZL OXbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="S/MzkC7B"; 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 y185si2024511qka.96.2020.04.10.15.52.48; Fri, 10 Apr 2020 15:53:02 -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="S/MzkC7B"; 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 S1726773AbgDJWwB (ORCPT + 99 others); Fri, 10 Apr 2020 18:52:01 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:36971 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726752AbgDJWwB (ORCPT ); Fri, 10 Apr 2020 18:52:01 -0400 X-UUID: 37f13f7ef7e14f7c8d0e1a9de327d143-20200411 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=g1WmRQd0r9iWD3yfGKI1Jh5NIifbDW0R65I5uzUBO5A=; b=S/MzkC7BIczKqK/0FGeAjzFhnZ0wiIqeZySRnW/862G7DJUBlLn94bbQlZBaVsQ4O2va+AmNJYmgjMMUNOPtNFhvsCjxRS/xO9xU4ZlEP34vm6aIX1mt4PaaIwMEw8miCmN5pbUQga0UGUEPiQEujlpITygPBG2vBNnVv3MNC4U=; X-UUID: 37f13f7ef7e14f7c8d0e1a9de327d143-20200411 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1584833353; Sat, 11 Apr 2020 06:51:54 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs06n2.mediatek.inc (172.21.101.130) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 11 Apr 2020 06:51:52 +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; Sat, 11 Apr 2020 06:51:47 +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 v1 10/16] mt76: mt7915: add HE bss_conf support for interfaces Date: Sat, 11 Apr 2020 06:51:25 +0800 Message-ID: X-Mailer: git-send-email 2.18.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 3D192D8014B568FCD9F8F5F34313C91B109EF6D3748CA02081B7C1CA7AE91F322000: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 QWRkIGJhc2ljIEhFIEJTUydzIGluZm8gZm9yIGludGVyZmFjZXMuIEFzIGZvciB0aGUgYWR2YW5j ZWQgZmVhdHVyZXMNCndpbGwgYmUgYWRkZWQgZ3JhZHVhbGx5IGluIHRoZSBmdXR1cmUgcGF0Y2hl cy4NCihpLmUuIE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