3

I am trying to connect a device to the wi-fi and for that I have two dongles: one 2.4GHz and one for 5GHz. However, the 5GHz one uses a specific driver 8812au.

This driver is not compatible with nl80211 driver:

root@pal:~# wpa_supplicant -iwlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf 
Successfully initialized wpa_supplicant
nl80211: Could not configure driver mode
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
wlan0: Failed to initialize driver interface

However it works with wext driver

root@pal:~# wpa_supplicant -iwlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf 
Successfully initialized wpa_supplicant
nl80211: Could not configure driver mode
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
wlan0: Failed to initialize driver interface
root@pal:~# wpa_supplicant -iwlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf  -Dwext
Successfully initialized wpa_supplicant
ioctl[SIOCSIWAP]: Operation not permitted
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
wlan0: Trying to associate with e4:95:6e:44:4e:d3 (SSID='Protobot5G' freq=5180 MHz)
wlan0: Association request to the driver failed
wlan0: Associated with e4:95:6e:44:4e:d3
wlan0: WPA: Key negotiation completed with e4:95:6e:44:4e:d3 [PTK=CCMP GTK=CCMP]
wlan0: CTRL-EVENT-CONNECTED - Connection to e4:95:6e:44:4e:d3 completed [id=0 id_str=]

Note that I can only access the device via the LAN, so I cannot see its status when it has failed to connect, However it connects only when the 2.4Ghz dongle is plugged, regardless of the 5Ghz dongle.

Is it due to the driver, and if yes, how can I set wpa_supplicant to use wext by default?

2 Answers 2

3

You can use dhcpcd. It's installed by default on Raspbian (Raspberry Pi).

Simply add a new entry into /etc/dhcpcd.conf. I added this at the end of the file:

interface wlan0
env ifwireless=1
env wpa_supplicant_driver=wext
1
  • 1
    This actually made the wpa_supplicant service to start with -Dwext flag, thus making old 3B to work with an old realtek wifi dongle.
    – Adarsha
    Commented Apr 2, 2021 at 15:59
0

The rtl8812au driver has a lot of issues.
Use the driver from AirCrack-NG instead.

I think this will solve most of your issues.

1
  • Does not answer the question
    – Aloha
    Commented Dec 5, 2019 at 10:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .