morrownr / 8821au-20210708

Linux Driver for USB WiFi Adapters that are based on the RTL8811AU and RTL8821AU Chipsets - v5.12.5.2
Other
671 stars 101 forks source link

operstate reports up before network connection #140

Open emg-cp opened 3 months ago

emg-cp commented 3 months ago

Driver from commit eec76d8 (Update README.md) Raspbian 8 (jessie) Kernel 4.9.35-v7+ Raspberry Pi 3 Model B Rev 1.2

After running ip link set wlan0 up and before wpa_supplicant connects to a network /sys/class/net/wlan0/operstate reports up.

As I understand it from reading kernel documentation[0], and as it works on other adapters I have tried, operstate should not switch to up until the connection is made.

(This is causing some issues for me as /etc/init.d/networking runs ifup wlan0 even though wpa_supplicant hasn't connected yet, which causes long delays at best and hangs indefinitely at worst due to other known issues with dhclient that I'm chasing down separately.)

[0] https://www.kernel.org/doc/Documentation/networking/operstates.txt

morrownr commented 3 months ago

Hi @emg-cp

I don't support use on kernels older than 5.4. I generally follow supported LTS kernels in this regard. I simply do not have a test system with kernel 4.9 that I can use to test.

My recommendation is for you to upgrade your version of RasPiOS.

Also, if you wish, we are working on a version of this driver that can be upstreamed into the Linux kernel. We could use testers:

133