From: Ping-Ke Shih <pkshih@realtek.com>
To: Jay Sweat <jjsweat@outlook.com>
Cc: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: RE: Realtek 8822ce p2p support
Date: Thu, 23 Nov 2023 00:30:36 +0000 [thread overview]
Message-ID: <5ffd01e6c8a1464795d612de1c6fa8a4@realtek.com> (raw)
In-Reply-To: <IA1PR20MB50490BFFD9F797722C9688BAA8BAA@IA1PR20MB5049.namprd20.prod.outlook.com>
> -----Original Message-----
> From: Jay Sweat <jjsweat@outlook.com>
> Sent: Thursday, November 23, 2023 1:32 AM
> To: Ping-Ke Shih <pkshih@realtek.com>
> 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
next prev parent reply other threads:[~2023-11-23 0:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-21 17:18 Realtek 8822ce p2p support Jay Sweat
2023-11-22 1:29 ` Ping-Ke Shih
2023-11-22 17:32 ` Jay Sweat
2023-11-23 0:30 ` Ping-Ke Shih [this message]
2023-11-28 19:49 ` Jay Sweat
2023-11-29 0:33 ` Ping-Ke Shih
2024-05-17 14:20 ` Giovanni Santini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5ffd01e6c8a1464795d612de1c6fa8a4@realtek.com \
--to=pkshih@realtek.com \
--cc=jjsweat@outlook.com \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.