I'm trying to use P2P/Wi-Fi Direct functionality with this RTL8822BU driver. I've made progress with P2P on this RTL8822BU driver - I can successfully scan and find P2P peers, but other devices cannot discover my PC. TX power shows -100 dBm which might be related.
Hardware & System
- Device: Realtek RTL8822BU (USB ID: 0bda:b82c)
- Kernel: 6.17.5-200.fc42.x86_64 (Fedora 42, SMP PREEMPT_DYNAMIC)
- Build method: DKMS
Configuration
Module parameters in /etc/modprobe.d/88x2bu.conf:
options 88x2bu rtw_sel_p2p_iface=1 ifname=wifi%d if2name=p2p%d
This creates two interfaces:
- wifi0 - main wireless interface
- p2p0 - P2P interface
Context
This same physical dongle works perfectly for Miracast/Wi-Fi Display on Windows 11:
- Phone → Windows PC (Miracast sink)
- Windows PC → Another display (Miracast source)
However, I'm having trouble getting equivalent functionality working with this driver.
What Works
- P2P peer discovery: My PC can scan and find other P2P devices successfully
What Doesn't Work
- P2P discoverability: Other devices cannot find/see my PC as a P2P peer
- Setting TX power: Shows -100.00 dBm on both interfaces.
sudo iw dev p2p0 set txpower fixed 3000 has no effect.
Console Output
I can find the p2p peers (redacted the macs).
$ sudo wpa_cli -p /run/miracle/wifi -i p2p0 p2p_find && sleep 10 && sudo wpa_cli -p /run/miracle/wifi -i p2p0 p2p_peers
OK
XX:XX:XX:XX:XX:XX
YY:YY:YY:YY:YY:YY
ZZ:ZZ:ZZ:ZZ:ZZ:ZZ
I am not able to set txpower:
sh-5.2$ iw dev p2p0 info | grep txpower
txpower -100.00 dBm
sh-5.2$ sudo iw dev p2p0 set txpower fixed 3000
sh-5.2$ iw dev p2p0 info | grep txpower
txpower -100.00 dBm
this is my dmesg.log.
my ip address output:
$ ip a
33: wifi0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether XX:XX:XX:XX:XX:XX brd ff:ff:ff:ff:ff:ff permaddr XX:XX:XX:XX:XX:XX
altname wlx909164002a66
34: p2p0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether YY:YY:YY:YY:YY:YY brd ff:ff:ff:ff:ff:ff permaddr ZZ:ZZ:ZZ:ZZ:ZZ:ZZ
altname wlp0s20f0u11i2
altname wlx929164002a66
Questions
- Has anyone successfully used P2P/Wi-Fi Direct with this driver?
- Does Miracast work for you (either as source or sink)? i am trying with gnome-network-displays and miraclecast.
- Are there specific patches or settings needed beyond rtw_sel_p2p_iface=1?
Since the hardware clearly supports P2P (proven on Windows), I'm hoping to get it working here too.
I'm trying to use P2P/Wi-Fi Direct functionality with this RTL8822BU driver. I've made progress with P2P on this RTL8822BU driver - I can successfully scan and find P2P peers, but other devices cannot discover my PC. TX power shows -100 dBm which might be related.
Hardware & System
Configuration
Module parameters in /etc/modprobe.d/88x2bu.conf:
options 88x2bu rtw_sel_p2p_iface=1 ifname=wifi%d if2name=p2p%dThis creates two interfaces:
Context
This same physical dongle works perfectly for Miracast/Wi-Fi Display on Windows 11:
However, I'm having trouble getting equivalent functionality working with this driver.
What Works
What Doesn't Work
sudo iw dev p2p0 set txpower fixed 3000has no effect.Console Output
I can find the p2p peers (redacted the macs).
I am not able to set txpower:
this is my dmesg.log.
my ip address output:
Questions
Since the hardware clearly supports P2P (proven on Windows), I'm hoping to get it working here too.