Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1696769rdb; Wed, 20 Sep 2023 17:39:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH+KdVUMmEx10mrX72dFXDSY1xajXkAwx2hfjAg0Nki0RsYtEor9apZmKMUqyeV5gSF+Vyh X-Received: by 2002:a17:903:41cb:b0:1bd:d510:78fb with SMTP id u11-20020a17090341cb00b001bdd51078fbmr10704872ple.3.1695256761502; Wed, 20 Sep 2023 17:39:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695256761; cv=none; d=google.com; s=arc-20160816; b=snF19etcz6KGsJ4QMtl7/ZRwu7E2G5UAaeRlSSfaLM0r5SGaQwqgIs1mUFpZXUz2hS UNkL+u5Z5VeQaPTtSPlxOfoahGLuK//5bya6OOaBLUWQviovidKkO3O4DX8cJFQUzM6d RZx982Ql0/k+UNABr01N5vcRRN2ge42SB2ZPFspH1EqK2zgklr/W8Pvf6sNXyrep6rLd q9lbGbhU+Wc1p2vabN5loI2P/o2DUMy4plrvfaqdaqFXVNe/9yo0sXMhzmKI9xB/Gne7 grdbtkNQzIa06PDiaKxQMSbbikGgo9z4l++mgDk4tsSCEDgM52tV3suApvMpWA0rRuC4 B/Xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=RIMk/2lM5wYctsV2EZLGINN1uCTc7K9iq2ks3U73g+A=; fh=TSuyMlfOTyCx0zt3ucDyTttlN37QPvmvgk5pf20rBgY=; b=elrbX6sYgociv6+gpcIAhLWRgiyr4+dksB2/adgHWHpdjP5bxsnYd1q65uWWB61s4A jrPe83zTBVkPY7zvwUyKJUpN81gXHiBZGdVy/7vyK9q2ozUN3Zo17qTA2szvNh9ohAI7 gI2eR2FnN10bulLfSYm6ugh0Q+YV/Zf3wECGn11BMLC1aLGTyM+xFuCYMJBbiCdQucmP Eg2mlClUtndUyW+fPO4abLGV3Ku0HPfJalqgKfGcXOdmX4OKlYB0UtPa/cMntwXuL3X1 LZW5/EXV0hpALZJ7/GMwQaGYb3PCd+riTq4Pz6nOuo+Mlc2P2FcSyeM67NCuLPZAyLWB bfDQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id q15-20020a17090311cf00b001b7ecbbaa13si279393plh.152.2023.09.20.17.39.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 17:39:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 166BB8098488; Wed, 20 Sep 2023 17:36:25 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229692AbjIUAg3 (ORCPT + 56 others); Wed, 20 Sep 2023 20:36:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229567AbjIUAg2 (ORCPT ); Wed, 20 Sep 2023 20:36:28 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4CACCC for ; Wed, 20 Sep 2023 17:36:19 -0700 (PDT) X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 38L0a7Bm91966983, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36505.realtek.com.tw[172.21.6.25]) by rtits2.realtek.com.tw (8.15.2/2.92/5.92) with ESMTPS id 38L0a7Bm91966983 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 21 Sep 2023 08:36:07 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXH36505.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.32; Thu, 21 Sep 2023 08:36:08 +0800 Received: from [127.0.1.1] (172.16.16.112) by RTEXMBS04.realtek.com.tw (172.21.6.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Thu, 21 Sep 2023 08:36:07 +0800 From: Ping-Ke Shih To: CC: , Subject: [PATCH 0/4] wifi: rtw89: declare to support MCC Date: Thu, 21 Sep 2023 08:35:55 +0800 Message-ID: <20230921003559.11588-1-pkshih@realtek.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [172.16.16.112] X-ClientProxiedBy: RTEXMBS02.realtek.com.tw (172.21.6.95) To RTEXMBS04.realtek.com.tw (172.21.6.97) X-KSE-ServerInfo: RTEXMBS04.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-ServerInfo: RTEXH36505.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 20 Sep 2023 17:36:26 -0700 (PDT) This is the last patchset to support MCC. It includes patch 1/4 to correct start time of NoA, and patch 2/4 is to treat remain-on-channel and hardware scan, which are also to set/switch channels. To prevent interference, stop firmware MCC switching when driver receive these two kinds of request. Then, we declare 8852c can support two channel context, and update interface combination to support MCC of STA + P2P. <<< Below commit message is kept as first patchset for reference >>> TDMA-based MCC (STA+P2P) is a kind of multiple interfaces concurrence. Basically, driver is to calculate timeslot pattern and firmware follows the pattern to switch channels. Since BT-coexistence is also a TDMA-based mechanism, also consider BT timeslot into pattern if BT devices present. To easier to review these 20+ patches, I summary basic purpose of these patches below by group, and submit them by small patchset one by one. Group 1. [DONE] get BT timeslot from coex mechanism Group 2. [DONE] adjust some stuff related to driver channel context Group 3. [DONE] P2P NoA infrastructure to add the IE to beacon when playing GO Group 4. [DONE] adjust driver to support 2 channel context Group 5. [DONE] calculate timeslot patterns and trigger firmware to switch channels followed the patterns Group 6. [DONE] disable some dynamic tracking mechanism of RF calibration when MCC is running. Group 7. [DONE] monitor states and adjust timeslot patterns. For example, if BT device leaves, we can reassign the slot to WiFi. Group 8. [CURRNET] Remain-on-channel and hardware scan are related to channel context, so need some treatments to work with MCC properly. Group 9. [CURRENT] Finally, we declare 8852C to support MCC Zong-Zhe Yang (4): wifi: rtw89: mcc: fix NoA start time when GO is auxiliary wifi: rtw89: pause/proceed MCC for ROC and HW scan wifi: rtw89: 8852c: declare to support two chanctx wifi: rtw89: declare MCC in interface combination drivers/net/wireless/realtek/rtw89/chan.c | 74 +++++++++++++++++++ drivers/net/wireless/realtek/rtw89/chan.h | 8 ++ drivers/net/wireless/realtek/rtw89/core.c | 29 +++++++- drivers/net/wireless/realtek/rtw89/core.h | 1 + drivers/net/wireless/realtek/rtw89/fw.c | 4 +- drivers/net/wireless/realtek/rtw89/rtw8852c.c | 2 +- 6 files changed, 113 insertions(+), 5 deletions(-) -- 2.25.1