I installed a USB wifi interface (Realtek RTL88x2bu) on a Debian Bullseye machine. The device (wlan1) appears correctly, and reports itself as "dormant:"
Code:
$ ip link show wlan1
4: wlan1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT group default qlen 1000
link/ether 54:ef:33:eb:81:53 brd ff:ff:ff:ff:ff:ff
If I configure a systemd-networkd file like this:
Code:
[Match]
Name=wlan1
[Network]
DHCP=yes
IgnoreCarrierLoss=3s
I can then configure wpa_supplicant for my SSID, I can reboot, and it connects to my network without issue.
However, for various reasons, I need to be able to get this interface configured without rebooting. So, when the device is dormant, I need to be able to configure wpa_supplicant and systemd-networkd, and then somehow get it out of the "dormant" state. I tried the usual stuff, like:
- Restarting the systemd-networkd service
- Restarting the wpa_supplicant service
- ip link set dev wlan1 up
- ip link set dev wlan1 mode default
- iw dev wlan1 set power_save off
but it always stays dormant until a reboot.
I googled for a while, and found a few threads that suggested some things that are not applicable in my case. For example, I found a few threads in which people had used network-manager, and a few in which people had changed settings in some power management daemon. However, I do not have those services installed on my machine.
It's not clear to me if this is the behavior of the hardware driver, or if the problem is in userspace and I just don't know how to get it out of its "dormant" state.
Let me know if you have any thoughts. Thanks!