From patchwork Thu Nov 10 21:23:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Wang X-Patchwork-Id: 13039385 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 855EDC43219 for ; Thu, 10 Nov 2022 21:34:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=teuHkv5/WCHYN8cyBmqAA1uZzTp4W2Go4JgJtfwgek4=; b=YIsaTPZl/ywY0aMG+1gYE9KeFU /2fu+Hjtf8P1vqlWFn0wQ/mWQXOjLYODQKY7k9fciD0+AypsD6VxmnrP4cBUF/cm28GwFLK4zKAFF ILRro3D/GSXnhmHDrxIx36JoxU2V2twUZ3BZHEATeeqHmQVt1FMdhxMSvibQO+Xil8MpW52BOhmfq imfDmBm/rXmfHnpn0O94g4THXFpEgqbjQmih5pjPLNAQ6NImgvpqFP0CNMUBlm7ALoDD6kLBpWyIG 4tzjZW63e65kLvvH/lalDTzRGvc/GIXwJh198bfbAAT6skNDcYBtYFmybrtC+a+ExnX/TM+PLLGHv 1D3dYBWA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1otFC6-00AUiv-IR; Thu, 10 Nov 2022 21:34:42 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1otFC4-00AUhE-2M for linux-mediatek@lists.infradead.org; Thu, 10 Nov 2022 21:34:41 +0000 X-UUID: d6c419b537484e25bac0b78e33190f96-20221110 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=teuHkv5/WCHYN8cyBmqAA1uZzTp4W2Go4JgJtfwgek4=; b=IQkCP0M/AEG+qXKt8Anqd1ZrqbttO87kn8yQmOOfQL3OzMJ2TbZTfBUiVwXCZmpBqF/Nyu9n7sYxcaibfWeloOaDZS68t1XeYVGRjVd42XJ9ATbv179WfYp2iZ0/DxrFmiNe6D14KBSHde0ECZM7NmgUyWYBZrgrs+M6njEd/QA=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.12,REQID:21d16b61-142a-4140-a719-c5485627b7e1,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:62cd327,CLOUDID:325d375d-100c-4555-952b-a62c895efded,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0 X-UUID: d6c419b537484e25bac0b78e33190f96-20221110 Received: from mtkmbs11n1.mediatek.inc [(172.21.101.185)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 56959050; Thu, 10 Nov 2022 14:34:30 -0700 Received: from mtkmbs13n1.mediatek.inc (172.21.101.193) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Fri, 11 Nov 2022 05:23:54 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkmbs13n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Fri, 11 Nov 2022 05:23:54 +0800 From: To: , CC: , , , , , , , , , , , , , , , , , , , , , , , , "Sean Wang" Subject: [PATCH v3 0/7] wifi: mt76: mt7921: introduce chanctx support Date: Fri, 11 Nov 2022 05:23:42 +0800 Message-ID: X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221110_133440_140477_158B41C3 X-CRM114-Status: GOOD ( 11.82 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org From: Sean Wang Update the driver to adapt the new firmware can have the capability to manage the channel context scheduling on multiple roles running on the device including Station, AP and P2P GC/GO mode (will be extended based on the future patchset) to help users sharing the network with others on a single device. === v2 === (at 1/7) 1. remove unneeded newline 2. squash this one with "wifi: mt76: connac: rely on mt76_connac_mcu_uni_set_chctx" (at 3/7) 1. remove unneeded newline and use 'u8 rsv' instead of origin one (at 4/7) 1. drop mt7921_mcu_bss_event that is unused any more (at 6/7) 1. move mt7921_check_offload_capability prior to ieee80211_alloc_hw and decie what ieee80211_ops instance we should use by the firmware capability bit. (at 7/7) 1. decide the feature by the firmware capability bit 2. decide the channel by the hardware value in mt7921_get_status_freq_info() === v3 === (at 6/7) 1. fix mt7921/usb.c:231:7: error: no member named 'ops' in 'struct mt7921_dev' 2. fix mt7921/main.c:425:13: warning: variable 'err' set but not used [-Wunused-but-set-variable] 3. fix mt7921/init.c:173:9: warning: variable 'features' is used uninitialized whenever 'while' loop exits because its condition is false [-Wsometimes-uninitialized] (at 7/7) 1. enhance the git message Quan Zhou (1): wifi: mt76: mt7921: add unified ROC cmd/event support Sean Wang (6): wifi: mt76: connac: add mt76_connac_mcu_uni_set_chctx wifi: mt76: mt7921: add chanctx parameter to mt76_connac_mcu_uni_add_bss signature wifi: mt76: mt7921: drop ieee80211_[start, stop]_queues in driver wifi: mt76: connac: accept hw scan request at a time wifi: mt76: mt7921: introduce remain_on_channel support wifi: mt76: mt7921: introduce chanctx support .../net/wireless/mediatek/mt76/mt7615/mcu.c | 2 +- .../wireless/mediatek/mt76/mt76_connac_mcu.c | 151 +++++----- .../wireless/mediatek/mt76/mt76_connac_mcu.h | 16 +- .../net/wireless/mediatek/mt76/mt7921/init.c | 90 +++++- .../net/wireless/mediatek/mt76/mt7921/mac.c | 10 +- .../net/wireless/mediatek/mt76/mt7921/main.c | 278 +++++++++++++++++- .../net/wireless/mediatek/mt76/mt7921/mcu.c | 161 ++++++++-- .../wireless/mediatek/mt76/mt7921/mt7921.h | 69 +++++ .../net/wireless/mediatek/mt76/mt7921/pci.c | 26 +- .../net/wireless/mediatek/mt76/mt7921/sdio.c | 17 +- .../net/wireless/mediatek/mt76/mt7921/usb.c | 16 +- 11 files changed, 717 insertions(+), 119 deletions(-)