question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

luci-mod-network: on some platforms, scanning for wireless 2.4G networks does not work since 22.03 RC1

See original GitHub issue

Steps to reproduce:

  1. 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
  2. Login to LuCI
  3. Click on “Network” > “Wireless” and click “Scan” on a 2.4G radio

Actual behavior:

  1. 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.
  2. 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:closed
  • Created 9 months ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
jow-commented, Dec 15, 2022

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-b2de369571d0d39ce8545fa2d6b1b6021ff4c101f73498570bc4da702832202b

Please follow up on https://github.com/openwrt/openwrt/pull/11280, not a LuCI issue.

0reactions
humaita-githubcommented, Dec 15, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found