You are not logged in.
Very simple wifi setup with systemd-networkd. This is a server with no keyboard/mouse so it's pretty annoying when it happens. A hard reset always fixes it but I would like to find a softer fix. This has been happening for over a year through many system updates. No other wifi devices on the network seem to have these issues so it seems like a problem with this server.
This is what the disconnect looks like. It repeats this over and over. Sometimes for a few minutes, sometimes for hours.
$ journalctl --unit=wpa_supplicant@wlp0s20u2 --unit=systemd-networkd
Jan 23 15:48:47 eleven wpa_supplicant[419]: wlp0s20u2: CTRL-EVENT-DISCONNECTED bssid=3c:7c:3f:55:15:9c reason=0
Jan 23 15:48:47 eleven wpa_supplicant[419]: wlp0s20u2: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
Jan 23 15:48:47 eleven systemd-networkd[286]: wlp0s20u2: Lost carrier
Jan 23 15:48:47 eleven systemd-networkd[286]: wlp0s20u2: DHCPv6 lease lost
Jan 23 15:48:52 eleven wpa_supplicant[419]: wlp0s20u2: Trying to associate with 3c:7c:3f:55:15:9c (SSID='ARRIS-035A-5G' freq=5180 MHz)
Jan 23 15:48:52 eleven wpa_supplicant[419]: nl80211: kernel reports: Authentication algorithm number required
Jan 23 15:48:52 eleven wpa_supplicant[419]: wlp0s20u2: CTRL-EVENT-STARTED-CHANNEL-SWITCH freq=5180 ht_enabled=1 ch_offset=1 ch_width=80 MHz cf1=5210 cf2=0
Jan 23 15:48:58 eleven wpa_supplicant[419]: wlp0s20u2: CTRL-EVENT-ASSOC-REJECT status_code=1
Jan 23 15:48:58 eleven wpa_supplicant[419]: wlp0s20u2: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
Jan 23 15:49:02 eleven wpa_supplicant[419]: wlp0s20u2: Trying to associate with 3c:7c:3f:55:15:9c (SSID='ARRIS-035A-5G' freq=5180 MHz)
Jan 23 15:49:02 eleven wpa_supplicant[419]: nl80211: kernel reports: Authentication algorithm number required
Jan 23 15:49:02 eleven wpa_supplicant[419]: wlp0s20u2: CTRL-EVENT-STARTED-CHANNEL-SWITCH freq=5180 ht_enabled=1 ch_offset=1 ch_width=80 MHz cf1=5210 cf2=0
Jan 23 15:49:08 eleven wpa_supplicant[419]: wlp0s20u2: CTRL-EVENT-ASSOC-REJECT status_code=1
Jan 23 15:49:08 eleven wpa_supplicant[419]: wlp0s20u2: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
Jan 23 15:49:13 eleven wpa_supplicant[419]: wlp0s20u2: Trying to associate with 3c:7c:3f:55:15:9c (SSID='ARRIS-035A-5G' freq=5180 MHz)
Jan 23 15:49:13 eleven wpa_supplicant[419]: nl80211: kernel reports: Authentication algorithm number required
Jan 23 15:49:13 eleven wpa_supplicant[419]: wlp0s20u2: CTRL-EVENT-STARTED-CHANNEL-SWITCH freq=5180 ht_enabled=1 ch_offset=1 ch_width=80 MHz cf1=5210 cf2=0
Jan 23 15:49:20 eleven wpa_supplicant[419]: wlp0s20u2: CTRL-EVENT-ASSOC-REJECT status_code=1
Jan 23 15:49:20 eleven wpa_supplicant[419]: wlp0s20u2: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="ARRIS-035A-5G" auth_failures=1 duration=10 reason=CONN_FAILED
Jan 23 15:49:20 eleven wpa_supplicant[419]: wlp0s20u2: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
Jan 23 15:49:30 eleven wpa_supplicant[419]: wlp0s20u2: CTRL-EVENT-SSID-REENABLED id=0 ssid="ARRIS-035A-5G"
Jan 23 15:49:30 eleven wpa_supplicant[419]: wlp0s20u2: Trying to associate with 3c:7c:3f:55:15:9c (SSID='ARRIS-035A-5G' freq=5180 MHz)
Jan 23 15:49:30 eleven wpa_supplicant[419]: nl80211: kernel reports: Authentication algorithm number required
Jan 23 15:49:30 eleven wpa_supplicant[419]: wlp0s20u2: CTRL-EVENT-STARTED-CHANNEL-SWITCH freq=5180 ht_enabled=1 ch_offset=1 ch_width=80 MHz cf1=5210 cf2=0
Jan 23 15:49:36 eleven wpa_supplicant[419]: wlp0s20u2: CTRL-EVENT-ASSOC-REJECT status_code=1
Jan 23 15:49:36 eleven wpa_supplicant[419]: wlp0s20u2: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="ARRIS-035A-5G" auth_failures=2 duration=24 reason=CONN_FAILED
Jan 23 15:49:36 eleven wpa_supplicant[419]: wlp0s20u2: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
Jan 23 15:50:05 eleven wpa_supplicant[419]: wlp0s20u2: CTRL-EVENT-SSID-REENABLED id=0 ssid="ARRIS-035A-5G"
The logs can vary a little. Sometimes the initial disconnect has reason=7 but the looping behavior is the same
It's a USB device
$ lsusb
Bus 003 Device 003: ID 0bda:8812 Realtek Semiconductor Corp. RTL8812AU 802.11a/b/g/n/ac 2T2R DB WLAN Adapter
It requires drivers from AUR
$ pacman -Qs rtl8812
local/rtl8812au-dkms-git 5.13.6.r98.g4ab9aa7-1
rtl8812AU chipset driver with firmware v5.13.6
/etc/systemd/networkd.conf has no settings
$ cat /etc/systemd/network/wireless.network
[Match]
Name=wlp0s20u2
[Network]
Address=192.168.0.3/24
Gateway=192.168.0.1
$ cat /etc/wpa_supplicant/wpa_supplicant-wlp0s20u2.conf
network={
ssid="ARRIS-035A-5G"
psk=blah-blah-blah-whatever
}
No power saving.
$ iw wlp0s20u2 get power_save
Power save: off
Here's what it looks like when it manages to reconnect (this was a short disconnect only lasting 2 minutes)
Jan 23 17:04:10 eleven wpa_supplicant[406]: wlp0s20u2: Trying to associate with 3c:7c:3f:55:15:9c (SSID='ARRIS-035A-5G' freq=5180 MHz)
Jan 23 17:04:10 eleven wpa_supplicant[406]: nl80211: kernel reports: Authentication algorithm number required
Jan 23 17:04:10 eleven wpa_supplicant[406]: wlp0s20u2: CTRL-EVENT-STARTED-CHANNEL-SWITCH freq=5180 ht_enabled=1 ch_offset=1 ch_width=80 MHz cf1=5210 cf2=0
Jan 23 17:04:13 eleven wpa_supplicant[406]: wlp0s20u2: CTRL-EVENT-ASSOC-REJECT status_code=1
Jan 23 17:04:13 eleven wpa_supplicant[406]: wlp0s20u2: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="ARRIS-035A-5G" auth_failures=3 duration=46 reason=CONN_FAILED
Jan 23 17:04:13 eleven wpa_supplicant[406]: wlp0s20u2: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
Jan 23 17:05:04 eleven wpa_supplicant[406]: wlp0s20u2: CTRL-EVENT-SSID-REENABLED id=0 ssid="ARRIS-035A-5G"
Jan 23 17:05:04 eleven wpa_supplicant[406]: wlp0s20u2: Trying to associate with 3c:7c:3f:55:15:9c (SSID='ARRIS-035A-5G' freq=5180 MHz)
Jan 23 17:05:04 eleven wpa_supplicant[406]: nl80211: kernel reports: Authentication algorithm number required
Jan 23 17:05:04 eleven wpa_supplicant[406]: wlp0s20u2: CTRL-EVENT-STARTED-CHANNEL-SWITCH freq=5180 ht_enabled=1 ch_offset=1 ch_width=80 MHz cf1=5210 cf2=0
Jan 23 17:05:04 eleven systemd-networkd[275]: wlp0s20u2: Connected WiFi access point: ARRIS-035A-5G (3c:7c:3f:55:15:9c)
Jan 23 17:05:04 eleven wpa_supplicant[406]: wlp0s20u2: Associated with 3c:7c:3f:55:15:9c
Jan 23 17:05:04 eleven wpa_supplicant[406]: wlp0s20u2: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
Jan 23 17:05:04 eleven wpa_supplicant[406]: wlp0s20u2: WPA: Key negotiation completed with 3c:7c:3f:55:15:9c [PTK=CCMP GTK=CCMP]
Jan 23 17:05:04 eleven wpa_supplicant[406]: wlp0s20u2: CTRL-EVENT-CONNECTED - Connection to 3c:7c:3f:55:15:9c completed [id=0 id_str=]
Jan 23 17:05:04 eleven systemd-networkd[275]: wlp0s20u2: Gained carrier
Offline
From the AUR test this diver instead, rtl88xxau-aircrack-dkms-git
Offline
Any particular reason you think that will help? I can try it, but it looks like the same driver just with extra security tooling added.
Offline
Please post a complete system journal - the pattern would meet the MAC randomization NM uses for its periodic scans but that doesn't fit systemd-networkd and the filter hides messages from the driver or systemd.
https://aur.archlinux.org/packages/rtl8812au-dkms-git/ suggests rtl88xxau-aircrack-dkms-git and it's also not clear what driver is currently used.
(Edit: that's not necessarily the same as "this package is installed")
https://wiki.archlinux.org/title/Networ … #rtl88xxau
Last edited by seth (2022-01-24 08:26:20)
Offline
Alright, in the meantime I switched to the aircrack driver. It's working so far but I'll have to wait and see if it fails since the problem has always been intermittent.
It is the currently used driver
$ readlink /sys/class/net/wlp0s20u2/device/driver
../../../../../../bus/usb/drivers/rtl88XXau
Offline
$ journalctl --unit=wpa_supplicant@wlp0s20u2 --unit=systemd-networkd Jan 23 15:48:47 eleven wpa_supplicant[419]: wlp0s20u2: CTRL-EVENT-DISCONNECTED bssid=3c:7c:3f:55:15:9c reason=0 Jan 23 15:48:47 eleven wpa_supplicant[419]: wlp0s20u2: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD Jan 23 15:48:47 eleven systemd-networkd[286]: wlp0s20u2: Lost carrier
Have you defined a regdom for it? https://wiki.archlinux.org/title/Networ … ory_domain
If yes, I'd do a test removing the config, and vice versa.
Offline
Unlike most adapters, the rtl8812au can set the regdom through its driver options. This actually works better with this adapter than the more accepted methods in my experience.
Offline
Also ffwi, the regdom change is on the tail of the rejection and
Jan 23 15:48:52 eleven wpa_supplicant[419]: wlp0s20u2: CTRL-EVENT-STARTED-CHANNEL-SWITCH freq=5180 ht_enabled=1 ch_offset=1 ch_width=80 MHz cf1=5210 cf2=0
5180 MHz is free everywhere, https://en.wikipedia.org/wiki/List_of_W … j/n/ac/ax)
Offline
Aircrack driver is still going strong. I’ll try switching back to the old driver and setting the regdom if the reconnection errors pop up again.
Offline