Skip to content

Ad-hoc mode not working with Realtek 8822BU on Raspberry Pi #261

@Keylost

Description

@Keylost

System Information
Devices: 2× Raspberry Pi (identical models)
WiFi Adapter: USB WiFi dongles based on Realtek 8822BU (identical models)
Kernel version: 6.1.21-v8+
Commit: fe48647496798cac77976e310ee95da000b436c9

Description of the Issue
I am trying to set up a basic ad-hoc network between two Raspberry Pi devices using USB WiFi adapters based on the Realtek 8822BU chipset. Both devices are placed 1 meter apart.
The ad-hoc interface comes up on both devices, but no connection is established between them. Each device reports a different BSSID.

Network Configuration
First Raspberry Pi (/etc/network/interfaces)

auto wlan1
iface wlan1 inet static
    address 192.168.10.1
    netmask 255.255.255.0
    wireless-mode ad-hoc
    wireless-essid MyAdHocNetwork
    wireless-channel 6

Second Raspberry Pi (/etc/network/interfaces)

auto wlan1
iface wlan1 inet static
    address 192.168.10.2
    netmask 255.255.255.0
    wireless-mode ad-hoc
    wireless-essid MyAdHocNetwork
    wireless-channel 6

Observed Behavior

  • Interfaces successfully enter ad-hoc mode on both devices.
  • No connection is established between the devices.
  • iwconfig shows different BSSIDs on each Raspberry Pi.
  • Devices do not see each other (no ping), even though they are in range and on the same channel.

I managed to establish a connection using this driver: https://github.com/lwfinger/rtw88
. However, the connection takes a very long time to establish and is unstable (see lwfinger/rtw88#406 ). It’s not usable. With the driver https://github.com/morrownr/88x2bu-20210702
, I wasn’t able to establish a connection at all. The driver https://github.com/cilynx/rtl88x2bu
doesn’t work either.

I can provide driver logs of the required level if needed.

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