luci-mod-network: on some platforms, scanning for wireless 2.4G networks does not work since 22.03 RC1
See original GitHub issueSteps to reproduce:
- Grab one of the following devices: TP-Link TL-WR1043ND v1, TP-Link Archer C7 v5, TP-Link CPE220 v3, Raspberry Pi 3A+, TP-Link TL-WDR3600 v1, D-Link DIR-842 C2, GL.iNet GL-AR750S, GL-MT300N-V2, TP-Link CPE210 v3
- Login to LuCI
- Click on “Network” > “Wireless” and click “Scan” on a 2.4G radio
Actual behavior:
- No wifi is found, the circle turns and then it says “no data”. Firefox’ developer console shows
Uncaught (in promise) Error: XHR request timed out at Object.handleReadyStateChange (luci.js?v=git-<version number>)
. Unsure whether this is related. - Doing a manual
iw dev wlanX scan
does work and returns wifi networks it found
Expected behavior:
I would expect LuCI to list the wifi networks, as it worked on all 21.02.x versions
Additional Information:
This bug was not present in OpenWrt 21.02.x. It is present since at least 22.03 RC1. It has been confirmed to exist by several users in all subsequent RCs and in all final 22.03.x versions. See here: https://github.com/openwrt/openwrt/issues/10158 It seems that mostly ath79 devices are affected by this bug, but the bug seems not limited to ath79.
Issue Analytics
- State:
- Created 9 months ago
- Reactions:1
- Comments:6 (2 by maintainers)
Top Results From Across the Web
LUCI wifi scan not working for 2.4 Mhz on ath79 for OpenWrt ...
A patch is on the way: luci-mod-network: on some platforms, scanning for wireless 2.4G networks does not work since 22.03 RC1 · Issue...
Read more >LUCI wifi scan not working for 2.4 Mhz on ath79 for OpenWrt ...
luci-mod-network: on some platforms, scanning for wireless 2.4G networks does not work since 22.03 RC1 openwrt/luci#6153.
Read more >Openwrt Luci Statistics & Issues - Codesti
luci-mod-network : on some platforms, scanning for wireless 2.4G networks does not work since 22.03 RC1, closed, 6, 2022-12-15, 2022-12-13, 2022-12-15.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Problem only occurs when scanning through wpa_supplicant (or hostapd?) on an ujail enabled device. So commonly on tiny devices which are already joined to a network.
Workaround:
mv /sbin/ujail /sbin/ujail.hide && reboot
Bugfix: https://github.com/openwrt/openwrt/pull/11280/files#diff-b2de369571d0d39ce8545fa2d6b1b6021ff4c101f73498570bc4da702832202bPlease follow up on https://github.com/openwrt/openwrt/pull/11280, not a LuCI issue.
Hi, thank you for the quick workaround.
mv
will not work on tiny devices, as it seems to create of new copy of ujail and there might not be enough free space.Since your workaround basically incapacitates ujail, we can just directly remove it:
rm /sbin/ujail && reboot
This worked on a D-Link DIR-505.