Skip to content

Has anyone successfully used P2P (Wi-Fi Direct) with this driver? #273

Description

@jv-oliveira

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

  1. Has anyone successfully used P2P/Wi-Fi Direct with this driver?
  2. Does Miracast work for you (either as source or sink)? i am trying with gnome-network-displays and miraclecast.
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions