RE: [PATCH] wifi: rtl8xxxu: toggle P2P for supported devices

From: Ping-Ke Shih
Date: Wed Jun 25 2025 - 20:50:45 EST


Martin Rodriguez Reboredo <yakoyoku@xxxxxxxxx> wrote:
> On Wednesday 25 June 2025 13:01:04 Argentina Standard Time Bitterblue Smith
> wrote:
> > On 25/06/2025 17:25, Martin Rodriguez Reboredo wrote:
> > [...]
> >> As of now only rtl8192ex devices have their P2P_CLIENT and P2P_GO wiphy
> >> interface modes ensured because those are the only ones I can test on
> >> my rtl8192eu card. The rest of chips have them set from what I've seen
> >> in a cursory Internet search, they might or might not work.
> >>
> >> Signed-off-by: Martin Rodriguez Reboredo <yakoyoku@xxxxxxxxx>
> >
> > So... does it work with your chip? How do we test?
>
> You can test this feature with GNOME Network Displays, that's the only
> userspace application I can think of. KDE doesn't offer anything yet and
> there's no other software out there that uses WiFi P2P, not even for simple
> file transfers. Maybe utils could be written like what was done for Bluez and
> be part of a known package like NetworkManager or a thing by themselves.
>
> With respect to my case I say it's listed by wpa_cli and it gets detected by
> Network Displays, but I cannot do anything further than that.

If you have two PC, use 'p2p_find' and 'p2p_connect' commands to make
a p2p connection.

> Because I don't
> know how to use wpa's utility properly and while I try to share my screen or
> see another one, I get no dice there.

WiFi Display, which is a protocol over WiFi P2P, is used to share screen.
IIRC it uses RTSP protocol to handshake RTP for streaming. Without a utility
(I don't remember that though), it is not possible to setup a streaming
session.

> Maybe this is due to an incompatibility
> with my Samsung mobile or that for proper P2P support more functionalities
> need to be added to rtl8xxxu, I can say that as of now.

I think what we can do in a PC is to setup a P2P connection (with an android
phone is possible), and test ping or transfer a file via FTP and so on.