morrownr/8812au-20210820

WPA2 not working in AP Mode - Falling back to WEP/WPA

Closed this issue · 6 comments

Checklist

  • I am not using this driver from inside a Virtual Machine.
  • I performed all of the installation steps as written.
  • I have read the FAQ and my question is not answered there.

Is Secure Boot enabled?

No

uname

Linux sihnon 6.11.5-arch1-1 #2 SMP PREEMPT_DYNAMIC

lsusb

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 002: ID 0438:7900 Advanced Micro Devices, Inc. Root Hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 003 Device 002: ID 0bda:8812 Realtek Semiconductor Corp. RTL8812AU 802.11a/b/g/n/ac 2T2R DB WLAN Adapter Bus 003 Device 003: ID 0e8d:7961 MediaTek Inc. Wireless_Device

rfkill

0: phy2: Wireless LAN Soft blocked: no Hard blocked: no 1: phy0: Wireless LAN Soft blocked: no Hard blocked: no 2: phy1: Wireless LAN Soft blocked: no Hard blocked: no

dkms

rtl8812au/5.13.6-23, 6.11.5-arch1-1, x86_64: installed (original_module exists)
zfs/2.2.6, 6.11.5-arch1-1, x86_64: installed

iw

phy#0
	Interface wlp1s0
		ifindex 7
		wdev 0x1
		addr 
		ssid 
		type AP
		channel 36 (5180 MHz), width: 80 MHz, center1: 5210 MHz
		txpower 23.00 dBm
		multicast TXQ:
			qsz-byt	qsz-pkt	flows	drops	marks	overlmt	hashcol	tx-bytes	tx-packets
			0	0	405	0	0	0	0	42906		405
phy#2
	Interface wlp0s16u1
		ifindex 6
		wdev 0x200000001
		addr 
		ssid 
		type AP
		channel 149 (5745 MHz), width: 40 MHz, center1: 5755 MHz
		txpower 14.00 dBm

git status

On branch main
Your branch is up to date with 'origin/main'.

install-driver.sh

: ---------------------------
: install-driver.sh v20241003
: x86_64 (kernel architecture)
: x86_64 (architecture to send to gcc)
: 4/4 (in-use/total processing units)
: 3993088 (total system memory)
: 6.11.5-arch1-1 (kernel version)
: gcc (version of gcc used to compile the kernel)
: gcc (GCC) 14.2.1 20240910
: dkms-3.1.1
: mokutil not installed (Secure Boot status unknown)
: ---------------------------

Checking for previously installed drivers...
Finished checking for and uninstalling previously installed drivers.
: ---------------------------

Starting installation.
Copying 8812au.conf to /etc/modprobe.d
The dkms installation routines are in use.
Copying source files to /usr/src/rtl8812au-5.13.6-23
Creating symlink /var/lib/dkms/rtl8812au/5.13.6-23/source -> /usr/src/rtl8812au-5.13.6-23
The driver was added to dkms successfully.
: ---------------------------


Sign command: /usr/lib/modules/6.11.5-arch1-1/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Cleaning build area... done.
Building module(s)............................................................................................................................................................................. done.
Signing module /var/lib/dkms/rtl8812au/5.13.6-23/build/8812au.ko
Cleaning build area... done.
The driver was built by dkms successfully.
: ---------------------------

Found pre-existing /usr/lib/modules/6.11.5-arch1-1/updates/dkms/8812au.ko.zst, archiving for uninstallation
Installing /usr/lib/modules/6.11.5-arch1-1/updates/dkms/8812au.ko.zst
Running depmod....... done.
The driver was installed by dkms successfully.
: ---------------------------

Info: Update this driver with the following commands as needed:

$ git pull
$ sudo sh install-driver.sh

Note: Updates to this driver SHOULD be performed before distro
      upgrades such as Ubuntu 23.10 to 24.04.
Note: Updates to this driver SHOULD be performed before major
      upgrades such as kernel 6.5 to 6.6.
Note: Updates can be performed as often as you like. It is
      recommended to update at least every 3 months.
Note: Work on this driver, like the Linux kernel, is continuous.

Enjoy!

Do you want to edit the driver options file now? (recommended) [Y/n] n
Do you want to apply the new options by rebooting now? (recommended) [Y/n] n

What happened?

WPA2 is not working in AP mode on my Alfa AWUS036ACH. Most likely just an error on my side, but I could not figure out which, so just in case:

  • Using hostapd 2.11 on ArchLinux 6.11.5 (and 6.10.10) to create an ieee80211ac Access Point
  • WPA2 is not working
  • WEP is automatically selected.
  • When I set wpa=1 or wpa=2 WEP ist selected, not WPA or WPA2
  • If I set wpa=3 WPA[1] is selected

I tried different configurations, but the result is always the same. Also tried the driver maintained by the aircrack-ng guys, which has the same problem for me.

Other Adapters/Chipsets on this specific system work fine (in this regard).

/etc/modprobe.d/8812au.conf
blacklist rtw88_8812au
options 8812au rtw_switch_usb_mode=1 rtw_vht_enable=2 rtw_dfs_region_domain=3 rtw_country_code=

myhostapd.txt

It seems to be related to hostapd. Downgrading from 2.11 to 2.10 fixed that problem for me. However, this specific one was only relevant to my rtl8812au device.

So might still be something with the driver?

Hi @uhlat

WPA2 is not working in AP mode

I see.

So might still be something with the driver?

Probably not.

Can you post your hostapd.conf file?

Hi there! I attached the hostapd.conf to the top post,

Oh. I missed it.

wpa=3

change that line to:

wpa=2

delete the following lines unless you are sure you need them:

require_ht=1
require_vht=1

That should get you close.

Thank you for your help - and while at it for all your work and wonderful resources!

Your suggested changes also result in the above mentioned problem with hostapd 2.11. However with 2.10 it works as expected.

A workaround is using hostapd 2.10 (not 2.11) .

Since this is most likely hostapd related I'll just close this issue here and see what the next hostapd version brings.