Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp754415ybk; Fri, 15 May 2020 12:37:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTzFtYac0KFlYRFJPJyJ+VEd56e1gJmY0hxp4pwdgX/5Th4HkIVH1R7MncMsOtR2PZfwbA X-Received: by 2002:a05:6402:1855:: with SMTP id v21mr4531812edy.189.1589571437506; Fri, 15 May 2020 12:37:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589571437; cv=none; d=google.com; s=arc-20160816; b=GbSTNVvnhatc93dUpjWEL614UjxD5ROFyiOel8CevujyLv2ZzAyV2QFjUVMBTxf+xm 3XxIs1iYvgBGDG2+D/6MG0eEzm6n1kUlYEIQZ6DvP2MlIB04L69j9fIRZ4CjIu+Djz4Q uNBc4U0OwmBhIG3LrIEd57r6/jKYFwfbGI63t4xQdna4+vlJTeixwvh1zgj2bTKY1TZ6 8UyQGSaM8hO35Ez/A+NWOTCQTysUO789EfpgicNjvvE+yt7jkYLWQs9B55uXXKhjGs04 +6hgQPAzUfQJL21PW8muUa7CC2BzVkT9PGYCXH45Niyq5V6xm4JDBnqu6C6w9DAgGsxq K9UA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=CME4YY1frgPQdT3pDkdrdyWqoLZQ9uQZzZZfXlQscn8=; b=TViZBETzh4sBRXjKyb8SRtCxTHRzxybzb9b+caEyteSS1dbBHmXIw+pEuaMNiin9l/ BaSEeHhz9lD7Qm1WKIJSAHJCjA+UaVHiZ4taNHZ0g1crxPwepCuYdbSzt7a71TM9jP/M Q28xZYkew5K4vTeRurZR6fkIr15Zoi9meua73fBZ4UBM5eTzbXyI7XR9VLZU9ozPy10c TZY3nCCHNNMHvkUOrhIjDQE3XMKKhnAmZSO20hMxhHQ4hRI8nmWTO1Rdgffyi93AA3W6 Crzn9jYAUNO0NBWXOsVZ5DMD80z9u6NH+eYkVviKmz0yoNUmxVaYRdLGH4rmd2UUjUDz 54gQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=EUoGkRx4; 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 g24si1872188edj.457.2020.05.15.12.36.40; Fri, 15 May 2020 12:37:17 -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=EUoGkRx4; 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 S1726204AbgEOTdj (ORCPT + 99 others); Fri, 15 May 2020 15:33:39 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:57983 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726179AbgEOTdi (ORCPT ); Fri, 15 May 2020 15:33:38 -0400 X-UUID: c20e34c1cb3e4c64b97660c5b8c68620-20200516 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:Message-ID:Date:Subject:CC:To:From; bh=CME4YY1frgPQdT3pDkdrdyWqoLZQ9uQZzZZfXlQscn8=; b=EUoGkRx4/6Bk0z2uZEsbVgb4QyJzDm4ZLoR0zF/G72G6MvECtAkUTEFaJ3bPeIsq5lIb7BRDyzSXvY3zP9bioiXwmKtppS/mpjrZTfNgiXbbGGMpcP76z6xBFCdPZeV7ZMovYiWatki8mychXmvWSUIrSLqgTZ3jKYYYfI7iNdg=; X-UUID: c20e34c1cb3e4c64b97660c5b8c68620-20200516 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1904911880; Sat, 16 May 2020 03:33:34 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 16 May 2020 03:33:28 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 16 May 2020 03:33:28 +0800 From: Ryder Lee To: Felix Fietkau , Lorenzo Bianconi CC: Shayne Chen , Sean Wang , , , Ryder Lee Subject: [PATCH] mt76: mt7915: add spatial reuse support Date: Sat, 16 May 2020 03:33:28 +0800 Message-ID: X-Mailer: git-send-email 2.18.0 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 RW5hYmxlIG9yIGRpc2FibGUgT0JTUyBQRCB3aGVuIHRoZSBic3MgY29uZmlnIGNoYW5nZXMgb3Ig d2UNCmFzc29jIHRvIGFuIEFQIHRoYXQgYnJvYWRjYXN0cyB0aGUgSUUuDQoNCldpdGggdGhpcyBw YXRjaCwgd2UgY2FuIGdldCB+MjAlIGdhaW4gaW4gT0JTUyBPVEEgZW52aXJvbm1lbnQuDQoNClRl c3RlZC1ieTogRXZlbHluIFRzYWkgPGV2ZWx5bi50c2FpQG1lZGlhdGVrLmNvbT4NClNpZ25lZC1v ZmYtYnk6IFJ5ZGVyI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