Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp814460lqp; Thu, 21 Mar 2024 17:16:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW7uOa6S6nwpazh0OGrF4vTAt35a65a3JCzsoEELlp7ZUXZ9am6ugUOIkvwVD/K3smyu4mLJWKYzKe2SjJ9GyiOSiXT0/jJmR7Nnytf0A== X-Google-Smtp-Source: AGHT+IHm0cXjNwjrJfcN6tnyZ7Hc//thP9oP+AuqmUwzENE/Wf8BDOadKZai6gzJGPNeGCDFBbxr X-Received: by 2002:a17:90b:3606:b0:29c:582d:bade with SMTP id ml6-20020a17090b360600b0029c582dbademr916878pjb.2.1711066607791; Thu, 21 Mar 2024 17:16:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711066607; cv=pass; d=google.com; s=arc-20160816; b=vmJiixI18fQt6WmcjxoedVMCwYdmrTUxTqXQCuuLUUjJ6ORHRfNqkoiqR/jRD1XGcL DLuWIjtMU17E6Joa3JZM4+EwEiJPUFVzxo+Dy3GiPKeWEiG+n3R9Wr5kO8biPFnK/y3p mEDm4GVcCY+h3Wc9pMPZHh9FiLDX/gNunUP7giW+FKl9YZq+14QZ07ZSErzqBE4HOfLV wAxEKOWlb0wgvdK/yxh3qFO0GmG+0SpsCp082tjB47ldy3F2ZMzgdAtjHHZs1tpPSxL7 vqgB1A/cyXYok30cQSX/qjTXiViNYyF0HLpJHDcR4O98jN4O4jGtgCKlWqmqLlqBcoMb UCSQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:content-language:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:to:from; bh=pmi+O8o6lIxkfWOHYUdGR0XdOanzqlPK+0Xl/u889zU=; fh=HIbbNfD7FOq/ulh3kXc4K/+vici+Gz87O9DLaXGZW28=; b=PjR2MdQQNlREYsgoFpWqZ+BRg5OeYsj2tD6WDM5GzQQFqgeN+SZujjZ9dgJCxQ4HD0 QHDjFZlB8x+cj+CM1S2iyFIhf6TYZHcVppkK0aRzdxxOQrMLwLl3ofdAxi6pRqveFGmy AEvzwVipXtMB09KUC8ySLQKy6utmWJAbSiukdrlOq6ijZGmRQfCktElpvC2qatvUeOUT 0XkRESUk7SGRzSGbvhaSw6+RiA52PdJGE14M1zkfCCs0k5TGadv4IfSDvg7pbS44AxMO Hy4psg69GvYknMLG4nzQD/CPQfBLwT8SP95gX5cIK+DFh2YgN4Fvv2GfIr7NVix4gOkt QlkQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=realtek.com); spf=pass (google.com: domain of linux-wireless+bounces-5125-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5125-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id c33-20020a17090a492400b0029f74696c79si4438515pjh.53.2024.03.21.17.16.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 17:16:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-5125-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=realtek.com); spf=pass (google.com: domain of linux-wireless+bounces-5125-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5125-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 00909B20FD6 for ; Fri, 22 Mar 2024 00:16:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C45E5376; Fri, 22 Mar 2024 00:16:40 +0000 (UTC) X-Original-To: linux-wireless@vger.kernel.org Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 49D4019A for ; Fri, 22 Mar 2024 00:16:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=211.75.126.72 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711066600; cv=none; b=NSjg029K1PlY7COXpkP2rpEMaLUtX1RB4MI1hUsHDkxPdKlYOR0UBltSGDg2mf3xeMRzYCE69C9XFMhCscuU/0xCFcRh8wePNBJFd3XqGi16WRWEvAoTBuvj4KmD03EU+I5ULs+IiNHa26j4bsjDd9EFs3T6znDwKSKo55yzVy0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711066600; c=relaxed/simple; bh=cWVeTEWaEjJgKdABwHcbVzJVL/ICCuiXTxOPawpnwdk=; h=From:To:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=WMoQge9TtEpJSA4RNUXlKIWaN0/bp32hLr8XYBykNA7maHcvfeKuVP8Bz+W8CAa8u6t1qrfZcfrSbCKRMuho6cC3BU7ZciDbb9bS9K2Uf5sA8XJtq9270NHMyG8nFqgJlrfM+9V5WOUTok6JeK+RHdnus7lt5onIySBSk1tKghU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=realtek.com; spf=pass smtp.mailfrom=realtek.com; arc=none smtp.client-ip=211.75.126.72 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=realtek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=realtek.com X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 42M0GEwiC1308811, 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.95/5.92) with ESMTPS id 42M0GEwiC1308811 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 22 Mar 2024 08:16:14 +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_256_GCM_SHA384) id 15.1.2507.35; Fri, 22 Mar 2024 08:16:14 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXMBS04.realtek.com.tw (172.21.6.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Fri, 22 Mar 2024 08:16:14 +0800 Received: from RTEXMBS04.realtek.com.tw ([fe80::4c42:f80:bcc2:d00f]) by RTEXMBS04.realtek.com.tw ([fe80::4c42:f80:bcc2:d00f%5]) with mapi id 15.01.2507.035; Fri, 22 Mar 2024 08:16:14 +0800 From: Ping-Ke Shih To: Konstantin Kletschke , "linux-wireless@vger.kernel.org" Subject: RE: AP mode on RTW88 8821cs Thread-Topic: AP mode on RTW88 8821cs Thread-Index: AQHae35fCRVxvatxIEuwJVdovXZIBbFC5F0w Date: Fri, 22 Mar 2024 00:16:14 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US, zh-TW Content-Language: zh-TW Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 > -----Original Message----- > From: Konstantin Kletschke > Sent: Thursday, March 21, 2024 6:56 PM > To: linux-wireless@vger.kernel.org > Subject: AP mode on RTW88 8821cs >=20 > We have a rockchip rk3328 board with an 8821cs chip connected via SDIO. > Well, cs impiles SDIO, cu is USB variant. >=20 > Normally thinks work quite well for use but we do not get AP mode to > work. > We use 6.5.13 kernel with our customized DT and the in kernel 8821cs > driver: >=20 > rtw88_8821cs 12288 0 > onboard_usb_hub 12288 0 > rtw88_8821c 81920 1 rtw88_8821cs > crct10dif_ce 12288 1 > rtw88_sdio 24576 1 rtw88_8821cs > rtw88_core 167936 2 rtw88_8821c,rtw88_sdio > mac80211 929792 2 rtw88_sdio,rtw88_core > libarc4 12288 1 mac80211 > cfg80211 921600 2 rtw88_core,mac80211 >=20 > We tried with wpa_cli and hostapd but to no avail. > I tried hostapd with wlan0 and eth0 bridged into br0, the SSID appears > in the wlan search results in other devices, connectig _seems_ to work > but getting an IP is not possible. >=20 > What my colleauge and me especially noticed, the TX counter for the > wlan0 interface in this use case runs, RX stays at 0: >=20 > br0 Link encap:Ethernet HWaddr 4A:86:7D:63:5C:59 > inet addr:10.16.10.103 Bcast:10.16.255.255 Mask:255.255.0.0 > inet6 addr: fe80::4886:7dff:fe63:5c59/64 Scope:Link > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:111361 errors:0 dropped:3479 overruns:0 frame:0 > TX packets:28144 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:1000 > RX bytes:13333769 (12.7 MiB) TX bytes:3847859 (3.6 MiB) >=20 > eth0 Link encap:Ethernet HWaddr 86:E0:C0:EA:FA:A8 > inet6 addr: fe80::84e0:c0ff:feea:faa8/64 Scope:Link > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:112803 errors:0 dropped:219 overruns:0 frame:0 > TX packets:28405 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:1000 > RX bytes:15102222 (14.4 MiB) TX bytes:3891727 (3.7 MiB) > Interrupt:51 >=20 > wlan0 Link encap:Ethernet HWaddr F0:B0:40:4F:70:BC > inet6 addr: fe80::f2b0:40ff:fe4f:70bc/64 Scope:Link > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:0 errors:0 dropped:0 overruns:0 frame:0 > TX packets:123446 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:1000 > RX bytes:0 (0.0 B) TX bytes:18783966 (17.9 MiB) >=20 > In order to provide useful debug information, what should I look into? >=20 > Is it a known issue or should AP mode work flawlessly with those > drivers, which implies I forgot something. > When I use my software with an external USB WLAN stick with another > driver, exchange all wlan0 by wlan1 occurences only: >=20 > rtl8xxxu 192512 0 > rtl8192cu 81920 0 > rtl_usb 16384 1 rtl8192cu > rtl8192c_common 65536 1 rtl8192cu > rtlwifi 118784 3 rtl8192c_common,rtl_usb,rtl8192cu >=20 > the software AP works immediately. >=20 We had similar discussion before [1]. I think Martin will take his time to investigate how to enable AP mode on SDIO WiFi cards. [1] https://lore.kernel.org/linux-wireless/36972ff5-0c48-4bd2-8f9a-9649bfa2= 4225@lexina.in/