Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp19108rdh; Wed, 22 Nov 2023 16:32:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IFAZGoROWvDgZ6Sg5Mx3WExpg1DSg0VDVOYwBV02n8O8pUQYIpfOxKftp/McwE+93I54moY X-Received: by 2002:a05:6808:2096:b0:3b2:e461:bcfc with SMTP id s22-20020a056808209600b003b2e461bcfcmr4910324oiw.20.1700699528718; Wed, 22 Nov 2023 16:32:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700699528; cv=none; d=google.com; s=arc-20160816; b=O8W6zV8fH09Jk2ZENCNs8uCocrEYDjg1VToSPRLJpTgavdQlFUa/rK2IQ/fj3ovmSa kYTeJ8CgiwgACPbB8HpYSNFIiOBz/x4f/s1Im9Fcm0DtBRCxxpjgP+rgDI+f9QDkOyss zp2yQG9ShMurytt2NPfUzkcR2DNWNk7vShxOn9cdlJgcG0NmkotpBq0MjJJ0KSe7piAj GNu8KnCHC10MJdkIS5144qyjPrxcOtCGUfGTEbQHt4ZvmQo+AwRAyMs0FepI17lMLOo5 qxcD6iwo71/MJt5uxGiRDrf1Kt82GZB6hWmqi0awp18dLJZA66YH7PMYfZMjF1TekM8F YkeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=+Lbd5FJ3OEa2JvF027Zwpjo2rIgp9+OcI5nzfQDuSYo=; fh=j5usaCdYHTUyKnIwYZbl1n2nkut+E7/k4MPDyVcIR98=; b=0RhjPCWmA46CoR0QTbbGclC9JkTz+rdXQelVhf+vaZgJ6u5gcLEbw+zMaC59UMxTRf 2j5Wv67fB3XL4zDlNgjgN+jHajwRmSeYimSIStevGBn5NJxrTzq7EWdXaEJzN4DRSxBk eeZGuvic5SE9wYLlP/zPn/EbQ3TQwm2CtFNe7tf+cqPq8esE0e+Ud7tqRQhuvo7dM/7g 6Jk/RYj8d+2+V/SULDQaA/9F5xQ8U/JvL3kEEESO/n4gF6cDC60HW+0dcdHHyd4rvR6E DQzL5BqMVUDIYPLQ7tkCTCkRl8w6Tjc1q3HfFqPBUTpm7vs5XQ3DoZ7h2IRccPjPElwy M1NA== 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:3 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id k33-20020a635a61000000b005aba9cdf091si194587pgm.579.2023.11.22.16.31.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 16:32:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id 2111080CC11E; Wed, 22 Nov 2023 16:31:01 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229487AbjKWAaw convert rfc822-to-8bit (ORCPT + 53 others); Wed, 22 Nov 2023 19:30:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbjKWAaw (ORCPT ); Wed, 22 Nov 2023 19:30:52 -0500 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 763C51AE for ; Wed, 22 Nov 2023 16:30:44 -0800 (PST) X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 3AN0UakcE2592744, 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.95/5.92) with ESMTPS id 3AN0UakcE2592744 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 23 Nov 2023 08:30:36 +0800 Received: from RTEXMBS02.realtek.com.tw (172.21.6.95) 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; Thu, 23 Nov 2023 08:30:36 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXMBS02.realtek.com.tw (172.21.6.95) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Thu, 23 Nov 2023 08:30:36 +0800 Received: from RTEXMBS04.realtek.com.tw ([fe80::40c2:6c24:2df4:e6c7]) by RTEXMBS04.realtek.com.tw ([fe80::40c2:6c24:2df4:e6c7%5]) with mapi id 15.01.2375.007; Thu, 23 Nov 2023 08:30:36 +0800 From: Ping-Ke Shih To: Jay Sweat CC: "linux-wireless@vger.kernel.org" Subject: RE: Realtek 8822ce p2p support Thread-Topic: Realtek 8822ce p2p support Thread-Index: AQHaHJ6/35nL8BzLVE+iP+/w63/TCrCFjBhAgAEOZs2AAHCucA== Date: Thu, 23 Nov 2023 00:30:36 +0000 Message-ID: <5ffd01e6c8a1464795d612de1c6fa8a4@realtek.com> References: <16c31bac7aaf4c20917f500d6d2a52c2@realtek.com> In-Reply-To: Accept-Language: en-US, zh-TW Content-Language: zh-TW x-originating-ip: [172.21.69.94] x-kse-serverinfo: RTEXMBS02.realtek.com.tw, 9 x-kse-antispam-interceptor-info: fallback x-kse-antivirus-interceptor-info: fallback Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 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,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.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 (lipwig.vger.email [0.0.0.0]); Wed, 22 Nov 2023 16:31:01 -0800 (PST) > -----Original Message----- > From: Jay Sweat > Sent: Thursday, November 23, 2023 1:32 AM > To: Ping-Ke Shih > Cc: linux-wireless@vger.kernel.org > Subject: Re: Realtek 8822ce p2p support > > I am interesting, but Im not sure how much help I can be. I only have a basic knowledge of linux and next > to no development skills. First step is to download Linux kernel source and build rtw88 driver or whole kernel. Also, you need a user-space application called wpa_supplicant [1] to make P2P connection. Declare P2P capability by below patch, and then see how it works and debug... diff --git a/drivers/net/wireless/realtek/rtw88/main.c b/drivers/net/wireless/realtek/rtw88/main.c index 4a33d2e47f33..ad988d6b204b 100644 --- a/drivers/net/wireless/realtek/rtw88/main.c +++ b/drivers/net/wireless/realtek/rtw88/main.c @@ -110,7 +110,9 @@ static const struct ieee80211_iface_limit rtw_iface_limits[] = { }, { .max = 1, - .types = BIT(NL80211_IFTYPE_AP), + .types = BIT(NL80211_IFTYPE_AP) | + BIT(NL80211_IFTYPE_P2P_CLIENT) | + BIT(NL80211_IFTYPE_P2P_GO); } }; @@ -2232,7 +2234,9 @@ int rtw_register_hw(struct rtw_dev *rtwdev, struct ieee80211_hw *hw) hw->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION) | BIT(NL80211_IFTYPE_AP) | BIT(NL80211_IFTYPE_ADHOC) | - BIT(NL80211_IFTYPE_MESH_POINT); + BIT(NL80211_IFTYPE_MESH_POINT) | + BIT(NL80211_IFTYPE_P2P_CLIENT) | + BIT(NL80211_IFTYPE_P2P_GO); hw->wiphy->available_antennas_tx = hal->antenna_tx; hw->wiphy->available_antennas_rx = hal->antenna_rx; [1] https://w1.fi/cvs.html