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

iw dev del hangs on OpenWRT #514

Closed
Alabate opened this issue Dec 13, 2019 · 3 comments
Closed

iw dev del hangs on OpenWRT #514

Alabate opened this issue Dec 13, 2019 · 3 comments

Comments

@Alabate
Copy link

Alabate commented Dec 13, 2019

Hi,

I'm trying to use this driver on an rtl8812au based usb board with OpenWrt 18.06.5 for x86_64. I've got no problem to build it after 28a8d26 which brings openwrt build compatiblity.

When I boot the board connected, the next time I try to do a simple iw dev, it will hang forever. However, if I connect the board after boot, I can do an iw dev but generally after trying to configure it will hang anyway.

I know that, In the OpenWRT wireless configuration script, it will delete and recreate the wifi interface. So I tried to execute the del command when connecting the board after boot, and I can "produce" a hang with this single command:

iw dev wlan0 del

I suppose that not a lot of system tries to delete the interface. So it's maybe just a bug on the delete function that has not been tested?

In latest commit ebaed2f, it will just hang without any message, but on an older commit 6ed82d8 (with openwrt build fix 28a8d26 cherry-picked), it will print this before hanging:

[   84.928053] RTW: cfg80211_rtw_del_virtual_intf(wlan0) unregister ndev
[   84.934571] RTW: rtw_wdev_unregister(wdev=ffff888071af6c00)
[   84.940617] RTW: cfg80211_rtw_get_txpower
[   84.983346] RTW: rtw_ndev_notifier_call(wlan0) state:6
[   84.988584] RTW: rtw_ndev_uninit(wlan0) if1
[   84.993948] RTW: rtw_wiphy_unregister(phy0)
[   84.998409] RTW: Vendor: Unregister RTW cfg80211 vendor interface

I tried this on following commits with the same result:

If I can give you any information, or try a patch or something, tell me I will do it as soon as possible. Thank for your work!

@Alabate Alabate changed the title iw dev del hangs on OpenWRT iw dev del hangs on OpenWRT Dec 13, 2019
@cedricbambooza
Copy link

pls consider closing the issue, when it's solved by now :)

@Alabate
Copy link
Author

Alabate commented May 11, 2021

Well, i'm not working on this hardware anymore, so i cannot check if it is solved or not. I close it because this is not an issue for me anymore, but if it is for someone, feel free to re-open it.

@WilliamKSokol
Copy link

I am having this issue still:

root@OpenWrt:~# iw dev wlan0 del
command failed: No error information (-524)

I am on raspberry pi 4b and I have this problem consistently

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

3 participants