Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

operstate reports up before network connection #140

Open
emg-cp opened this issue Jun 13, 2024 · 1 comment
Open

operstate reports up before network connection #140

emg-cp opened this issue Jun 13, 2024 · 1 comment

Comments

@emg-cp
Copy link

emg-cp commented Jun 13, 2024

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants