Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3193084rwb; Mon, 15 Aug 2022 20:40:22 -0700 (PDT) X-Google-Smtp-Source: AA6agR64sQMpRNW2lGcOkiJK4r5tHXw6eNyoC2uJTkw9DTkXOH8aWfzrfCjiLc4Z42MVBWdoEb98 X-Received: by 2002:a63:d0:0:b0:411:f92b:8e6c with SMTP id 199-20020a6300d0000000b00411f92b8e6cmr16057176pga.108.1660621222652; Mon, 15 Aug 2022 20:40:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660621222; cv=none; d=google.com; s=arc-20160816; b=UNrEJpCrmrEqwtf84ip8ggRMhH5exsevd7S/3215jfHN6aTcEyWs0Gyar0xvz4m2xd HU4xc7wsVMHS8NqG3bRzyj6ujd1/g1U9Fhd5aom1mkOS6Uq5S3Xzb46szmd9NV3gwR4j cx2Wj0CJlxNWh68JOfiUXzmoFqvCfetktYVniFMAG6s5svXPTl3S+7XSndedEcq6RwLW 8bq570nBFEbwhPLUMSK0DuWgAxeE1hDvUF/tpLEVsH3RB1nNaVbTV18AOOds5g8Gy7b5 AX10yq+bBLm7515dA2UIjb/jpvBidrJGI/tILq6FftNsIvrnZYGvoGQ2nC5BHiz0zsG2 z5bA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=Lm1AQw3YFZZlPESa4lMip8VKuSZLiDNwaOiCz0WcwXc=; b=GD0oOLJYb6T1xexxqsvsCrZagjpzcjTm57YEOl3fkVf+CM2s2H/j0eaM6EBghKuhxm tRB5+Bkzxb3oGcLzw/0/J51Tr+u7DTG9R/1/EE8H7S9bXTGZtpQLbWqP6b4ucFyyuXYF 7fa810w4HkTeVi+/+SRUPHWLbfZT/xv5uF657PYmGmjKzd0S4Idz7MU0pxNJgQBdGTyJ WMEyQfJLjjbdejoHBXYzkqDjQwfb7O3Ulm6BK6QgxTcUb+xG1jZltJJiUnbM81Fwfs9/ HBuDFhb7LnzPxgr0bt6vonZii6oukLqjB3riUOKhafynBOatnKUX18jNqmVn88iATwJR w7sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=VSMCgO+b; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n4-20020a170902e54400b0016ecbe329easi13479255plf.546.2022.08.15.20.40.14; Mon, 15 Aug 2022 20:40:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=VSMCgO+b; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229695AbiHPDdh (ORCPT + 65 others); Mon, 15 Aug 2022 23:33:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229569AbiHPDdD (ORCPT ); Mon, 15 Aug 2022 23:33:03 -0400 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3CFC4DB2A for ; Mon, 15 Aug 2022 17:03:58 -0700 (PDT) X-UUID: 889af7f08d64410099eff1c47d739df2-20220816 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=Lm1AQw3YFZZlPESa4lMip8VKuSZLiDNwaOiCz0WcwXc=; b=VSMCgO+btMY61zeH/VpbLm4auohuvGrujdCKitxz9eO3x+Nshw6ofTbjExF22agvHe0G/t4KUxbUj0gMgJ3zRmfp7N9mi1oiG+oGlt1AFa+p6d8QOF2am5ghGRC+fRbRpaUVSBfVh+zNV2fdaXc2yJX3UEWnVfjXBhAF8He8BaU=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.9,REQID:cc6e036f-225e-4fd3-adee-574d5cc95595,OB:0,LO B:0,IP:0,URL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_H am,ACTION:release,TS:0 X-CID-META: VersionHash:3d8acc9,CLOUDID:ef1163fd-9e71-4a0f-ba6b-417998daea35,C OID:IGNORED,Recheck:0,SF:nil,TC:nil,Content:0,EDM:-3,IP:nil,URL:0,File:nil ,Bulk:nil,QS:nil,BEC:nil,COL:0 X-UUID: 889af7f08d64410099eff1c47d739df2-20220816 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 227099095; Tue, 16 Aug 2022 08:03:55 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs11n2.mediatek.inc (172.21.101.187) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.15; Tue, 16 Aug 2022 08:03:53 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 16 Aug 2022 08:03:53 +0800 From: To: , CC: , , , , , , , , , , , , , , , , , , , , , , , , Sean Wang Subject: [PATCH 0/9] wifi: mt76: mt7921: introduce chanctx support Date: Tue, 16 Aug 2022 08:03:38 +0800 Message-ID: X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAY_BE_FORGED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, T_SCC_BODY_TEXT_LINE,T_SPF_TEMPERROR,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Sean Wang The patchset introduces chanctx support to enable the capability on the newer firmware 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 patchset in the future) to help users share the network with others on a single device. The things to be noted is that 1) The newer firmware is able to support the channel chanctx up to 2 interfaces simultaneously running on the different channels. 2) Before the driver is going sent out the management frames, the driver has to get the privilege from the firmware to acquire the current channel context for the frame until the frame handshake is completed and then get the privilege back to the firmware. 3) The patchset has to rely on ("mt76: mt7921: fix the firmware version report") ("mt76: mt7921: add mt7921_mutex_acquire at mt7921_[start, stop]_ap") Quan Zhou (1): wifi: mt76: mt7921: add unified ROC cmd/event support Sean Wang (8): wifi: mac80211: allow enabling chanctx until hw registration wifi: mt76: connac: add mt76_connac_mcu_uni_set_chctx wifi: mt76: connac: rely on 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 | 152 ++++++------ .../wireless/mediatek/mt76/mt76_connac_mcu.h | 16 +- .../net/wireless/mediatek/mt76/mt7921/init.c | 74 +++++- .../net/wireless/mediatek/mt76/mt7921/mac.c | 2 +- .../net/wireless/mediatek/mt76/mt7921/main.c | 225 +++++++++++++++++- .../net/wireless/mediatek/mt76/mt7921/mcu.c | 151 +++++++++++- .../wireless/mediatek/mt76/mt7921/mt7921.h | 54 +++++ .../net/wireless/mediatek/mt76/mt7921/pci.c | 13 +- .../net/wireless/mediatek/mt76/mt7921/sdio.c | 11 +- .../net/wireless/mediatek/mt76/mt7921/usb.c | 1 + net/mac80211/main.c | 8 + 12 files changed, 620 insertions(+), 89 deletions(-) -- 2.25.1