Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp439262rwe; Fri, 14 Apr 2023 05:20:10 -0700 (PDT) X-Google-Smtp-Source: AKy350Y38gBeVsUsSIxRYgIGi2K/9OqaZQ5XK7K94UrW8O+ff9TbmV02YkHE3NdRDJmyiBhRBgK+ X-Received: by 2002:a05:6a00:2e14:b0:63b:20f3:a8c9 with SMTP id fc20-20020a056a002e1400b0063b20f3a8c9mr9065383pfb.29.1681474810151; Fri, 14 Apr 2023 05:20:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681474810; cv=none; d=google.com; s=arc-20160816; b=hPQwkTYqyHvmI9bmuhjLkkM5pNeegv1bZomkPjIUtuj5h7hPY5uCT1KDbhSuTqgBLQ dBK4jA0LDga+3InKB1TkJP5ezuk1Wx3PAiCyo0mx5JaRV6Wx0OlfWvkF4pcS1dp2zT4k m+OnZw+8llf76GosbJt1JcAMBCPhY/YlZCUWtUNBmdbtn7UzslAwuHsyJcrsLN1mYv4w I47jorcztFG3qpVnmQ7qWL7c5eYjqaaE6qlQD0Q4GttbwISuZ7MUjBRKB3w1orqMgYdi 3zIBEPjRVt0HLp8/nKo7x9fCtU2FEK3VlnNoL/zPOUe5My3TnurA/IMXYtCABG79+ud6 +frA== 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:authenticated-by; bh=FSgaMiy6KA5AmRYJBeuqw1AqNbWtxzbOEMp8L/RDn5s=; b=sAoQEOwyOmJgR+SnBAtyrX5oZv4Hq+2Xtpf41wO6omrfT7uLGnCSk0RoUeIQhwvm2o 8Ao9B/qV+WzTtgghh2xMgF44RqgZMB6Bm/5jOVFZTIaJYHRcANZELJHE+fSZ5L0ai7ty I0x2JtNnlOEeF6BSw4OooHMGrS0kuw93r4QZkE4cb4dAAbmZ+V4c9pJOKl4oFP3AC1CF nSeNBqaUDhxr9UMb6RjpYE2Fb/TwThlxrSil7dgLjOBGod5hdake2o5U3FwQcFRFvo2u uQeNv5NleA6nxfDWBPAFj76v26zis0dQI7oyrk7l8RVbVKdhGMcaTG388dX3cQWmWpOX NZLg== 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 v1-20020a626101000000b006389d389c01si4077572pfb.78.2023.04.14.05.20.02; Fri, 14 Apr 2023 05:20:10 -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 S230309AbjDNMMC (ORCPT + 62 others); Fri, 14 Apr 2023 08:12:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230204AbjDNMMA (ORCPT ); Fri, 14 Apr 2023 08:12:00 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4515D86AA for ; Fri, 14 Apr 2023 05:11:59 -0700 (PDT) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 33ECBRLa8007074, 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.81/5.90) with ESMTPS id 33ECBRLa8007074 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=OK); Fri, 14 Apr 2023 20:11:27 +0800 Received: from RTEXDAG02.realtek.com.tw (172.21.6.101) 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; Fri, 14 Apr 2023 20:11:50 +0800 Received: from localhost (172.16.20.53) by RTEXDAG02.realtek.com.tw (172.21.6.101) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Fri, 14 Apr 2023 20:11:49 +0800 From: Ping-Ke Shih To: , CC: , Subject: [PATCH v2 0/8] wifi: rtw88: support single channel concurrency Date: Fri, 14 Apr 2023 20:11:27 +0800 Message-ID: <20230414121135.17828-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.20.53] X-ClientProxiedBy: RTEXMBS02.realtek.com.tw (172.21.6.95) To RTEXDAG02.realtek.com.tw (172.21.6.101) X-KSE-ServerInfo: RTEXDAG02.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=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 To support SCC (1 STA + 1 AP), we need to deal some hardware things: 1. AP mode only can work on hardware port 0 2. adjust and enlarge reserved pages for two VIFs Other things are to coordinate two VIFs work well to prevent interference with each other, like scan thing. v2: - use rtw_dbg() instead of rtw_info() for switching port. (patch 2/8) - Don't reject scan when operating AP mode, so remove the limitation from patch 4/8 and add patch 7/8 to handle it. Due to hardware limitation, we can't sending beacon and do scan at the same time, so it could lose some packets or AP's clients get disconnected. Po-Hao Huang (8): wifi: rtw88: add bitmap for dynamic port settings wifi: rtw88: add port switch for AP mode wifi: rtw88: 8822c: extend reserved page number wifi: rtw88: disallow PS during AP mode wifi: rtw88: refine reserved page flow for AP mode wifi: rtw88: prevent scan abort with other VIFs wifi: rtw88: handle station mode concurrent scan with AP mode wifi: rtw88: 8822c: add iface combination drivers/net/wireless/realtek/rtw88/fw.c | 20 ++- drivers/net/wireless/realtek/rtw88/fw.h | 2 +- drivers/net/wireless/realtek/rtw88/mac.c | 2 +- drivers/net/wireless/realtek/rtw88/mac80211.c | 40 ++++- drivers/net/wireless/realtek/rtw88/main.c | 146 +++++++++++++++++- drivers/net/wireless/realtek/rtw88/main.h | 15 ++ drivers/net/wireless/realtek/rtw88/rtw8723d.c | 1 + drivers/net/wireless/realtek/rtw88/rtw8821c.c | 1 + drivers/net/wireless/realtek/rtw88/rtw8822b.c | 1 + drivers/net/wireless/realtek/rtw88/rtw8822c.c | 1 + 10 files changed, 217 insertions(+), 12 deletions(-) -- 2.25.1