Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp381282ybb; Fri, 10 Apr 2020 01:55:43 -0700 (PDT) X-Google-Smtp-Source: APiQypKlJdsISvGh7NyumrQMhzMh+D32rTRyPOvCAuJPj/J3qmzt/XSsIYDsyGFTN5waQPuW/1y0 X-Received: by 2002:ac8:7292:: with SMTP id v18mr3429037qto.304.1586508943413; Fri, 10 Apr 2020 01:55:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586508943; cv=none; d=google.com; s=arc-20160816; b=nu1JK5CQvnFLwib5DKJTNl1no9En8IYm6unnFtkeTWM9+eu5tq1BZ4xwwAJn4Eqw8V MdcpctqA8VSu69YjCStGKr1Wn9uPzKnywkXoHMRMIrNuD+kAbzZqlOO7AUPYdc6E5p3f 6SIjfBqgaleMqJQoxPoCTnRkGT3Ka6FgKXG2g4fFTFLow7Ssc3pG6LTxRSNwRH87ck0k 4DOTEUouVsf5TFmBVy+tJJLUN48/bVZXLUMEDDvbMM15hLSM5m7EmRAJ/ZKPnaVz/E8E W8IaYyKd4u9ptuDVDO/zNaPkxwHZsE+mWaSIxqaeof7iyXS2jx9gNjUvmG2YDvJZU+xD qxVA== 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=BsM8817neNBiTX9urNe5/f/vX/dLg2sfaMNigNb9qw0=; b=Z0FUZTsO21hVu/TsE+V/PM16kjppIoGFCilrkhDrrrftmLKLgah0EhxWj0vhczcBWa FL1iNzcT875sLCNEmcKD8jgbiFmIaeUvfaqItVSPYz6/g51dksRvS8hE6KxFE03bBNqe B5LxP+j70EAWxDc0d0K6QGbY4ctc3+vLl6hdtgKMp+nIbjNNSB0iCaYG3T4xn/Mf+Wc7 xRoOKaOzI9L6DI14evDsgedQo2xQWMpfuY13BW3voJxPCMmROdCgFagmxK58rLaqCWIe 0FyUlZRtPwtH7h7HP/pM8uQiLCR70ppE8/EKjSuNkENFVp8D05/pyw4yh0QPTkUkw4xi yj3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=Bf6CeNeq; 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 z16si683384qvn.191.2020.04.10.01.55.28; Fri, 10 Apr 2020 01:55:43 -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=Bf6CeNeq; 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 S1726234AbgDJIzL (ORCPT + 99 others); Fri, 10 Apr 2020 04:55:11 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:53015 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725914AbgDJIzJ (ORCPT ); Fri, 10 Apr 2020 04:55:09 -0400 X-UUID: 4819c76c00374eecbc0aaaa710734381-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=BsM8817neNBiTX9urNe5/f/vX/dLg2sfaMNigNb9qw0=; b=Bf6CeNeqadA1N7nC2E6e7FIe09VOuUOkU70mvgPDJca4EIBfP0EwxSTk42wJ3/XumXL6Y0ZeJljU4mj3orD/vD0ds/sa/HS3QB3D+RJ1BPTcAvjZ8yUwY0RecyQzXszjjTXRFflYrtCDUUwTsWVBOkVjOns0FMx3ZBHL6WADCK8=; X-UUID: 4819c76c00374eecbc0aaaa710734381-20200410 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 517792197; Fri, 10 Apr 2020 16:55:04 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs02n2.mediatek.inc (172.21.101.101) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 10 Apr 2020 16:55:00 +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:55:00 +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 10/16] mt76: mt7915: add HE bss_conf support for interfaces Date: Fri, 10 Apr 2020 16:54:47 +0800 Message-ID: <4c91a0ccab5d3738e2a1313b449d8bcfdc204925.1586507878.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: CF1E86DD2669DABF03E97C68CCA4289B00A9028C444DB0FA8640293D4BFC39C02000: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 ZWQgZmVhdHVyZXMNCndpbGwgYmUgYWRkZWQ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