Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp241689rdb; Thu, 7 Sep 2023 21:45:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFNspHgFRcvgLLfjiugxSrN43s8dxZ4VQbpiFBJiZb0kmQPxQNf0d5TTzmzgfqpD5D65W3d X-Received: by 2002:a05:6a21:488b:b0:153:63b9:8c6c with SMTP id av11-20020a056a21488b00b0015363b98c6cmr1913653pzc.0.1694148301080; Thu, 07 Sep 2023 21:45:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694148301; cv=none; d=google.com; s=arc-20160816; b=Evr2dastcrXWoP9LRazJEBbkCl9/vpazj14dL2GFfHcic3dT+x2y2WFQRJkG8WXIXY tljpUQ+mjoRp/l7xZLxh3to+LukeiaT//zRBh4wFeqfN2evyfs3TNsr7A78kwZVbJBYN iQwssyAmI5L+5zZIFxwv1+cBnELnv7Zg52/j7e068H/tlCCIfGqaNr7rHGQ9/5Ufto7I UQ+JuOlvzzSOqNHExa9DTA37c1OfcgEVHDb1P/UdUo50swo0dqcmc2usRK7KLak/ljTu N/rA2W15nRnaADHrg3bONyi5/LJCsGB+Ul5hCw9I1PYpgf2NL8HRaTD39j9umKTe0UiG 09Vg== 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=BDTHJIHrMpLltsy5v0tBDaPzq1lqU8lYPv/tnM4r9E8=; fh=TSuyMlfOTyCx0zt3ucDyTttlN37QPvmvgk5pf20rBgY=; b=aUAsje5jr/ZBHIKoQGNFdxTwX8JwHG2/z04F3JVnqv60FFaxN1sxJr5Hx/TwHH6Fda RG6LLhGNHOuOz6TRqpg/7AqWQlBsau4+TeioYxrlWJn5jZskKMlWaPedCUNHbhJLtOLw 0PrISbIU/iVqA1kEnFQgYe8gNiq85C3UaUkwpDm1mOoY01sDm9snXeciAt6Om3bmFSI1 xbZ2bD5YFq67JD69PZJfsvT7eTz5yedyyUThtPuKI1WV4OFDaD6VJTfja+HywfZf2GVZ oTkW8ftx4MXQjRiJWpL2bbBnl+bqoh2ZLC4sFv9viyqSD4+3XNQZb5UflNKJeG5YWi3r eczg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cg19-20020a056a00291300b0068e35157c22si875996pfb.119.2023.09.07.21.44.46; Thu, 07 Sep 2023 21:45:01 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237933AbjIHDNE (ORCPT + 54 others); Thu, 7 Sep 2023 23:13:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234940AbjIHDND (ORCPT ); Thu, 7 Sep 2023 23:13:03 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD0551BD8 for ; Thu, 7 Sep 2023 20:12:57 -0700 (PDT) X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 3883ClSkA1359300, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36506.realtek.com.tw[172.21.6.27]) by rtits2.realtek.com.tw (8.15.2/2.92/5.92) with ESMTPS id 3883ClSkA1359300 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 8 Sep 2023 11:12:47 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXH36506.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Fri, 8 Sep 2023 11:12:47 +0800 Received: from [127.0.1.1] (172.21.69.25) 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; Fri, 8 Sep 2023 11:12:47 +0800 From: Ping-Ke Shih To: CC: , Subject: [PATCH 0/8] wifi: rtw89: adjust RFK and monitor states for MCC Date: Fri, 8 Sep 2023 11:11:37 +0800 Message-ID: <20230908031145.20931-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.21.69.25] 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-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham 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 This is third patchset to prepare more materials for MCC. It includes group 6/7 patches below that aims to adjust RFK (RF calibrations) behavior to fit MCC situation and add a track work to monitor states including MAC ID bitmap of connected stations, beacon offset, P2P PS, and BT timeslot. <<< 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. [CURRENT] disable some dynamic tracking mechanism of RF calibration when MCC is running. Group 7. [CURRENT] monitor states and adjust timeslot patterns. For example, if BT device leaves, we can reassign the slot to WiFi. Group 8. Remain-on-channel and hardware scan are related to channel context, so need some treatments to work with MCC properly. Group 9. Finally, we declare 8852C to support MCC Zong-Zhe Yang (8): wifi: rtw89: 52c: rfk: refine MCC channel info notification wifi: rtw89: rfk: disable driver tracking during MCC wifi: rtw89: 52c: rfk: disable DPK during MCC wifi: rtw89: mcc: update role bitmap when changed wifi: rtw89: mcc: track beacon offset and update when needed wifi: rtw89: mcc: deal with P2P PS change wifi: rtw89: mcc: deal with BT slot change wifi: rtw89: mcc: deal with beacon NoA if GO exists drivers/net/wireless/realtek/rtw89/chan.c | 336 +++++++++++++++++- drivers/net/wireless/realtek/rtw89/chan.h | 6 + drivers/net/wireless/realtek/rtw89/core.c | 29 +- drivers/net/wireless/realtek/rtw89/core.h | 15 + drivers/net/wireless/realtek/rtw89/fw.c | 7 +- drivers/net/wireless/realtek/rtw89/fw.h | 5 + drivers/net/wireless/realtek/rtw89/mac.c | 1 + drivers/net/wireless/realtek/rtw89/mac80211.c | 3 +- drivers/net/wireless/realtek/rtw89/rtw8852c.c | 7 + .../net/wireless/realtek/rtw89/rtw8852c_rfk.c | 84 ++++- .../net/wireless/realtek/rtw89/rtw8852c_rfk.h | 3 + 11 files changed, 477 insertions(+), 19 deletions(-) -- 2.25.1