fix(openwrt): enable radio0 and run wifi up before scanning

On a freshly-flashed OpenWrt router, radio0 is disabled by default so
iw dev returns empty. Detect the PHY via /sys/class/ieee80211/, enable
radio0, run `wifi up`, then poll up to 8s for netifd to create the
virtual interface before handing it to iwinfo scan.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-30 17:12:57 +00:00
co-authored by Claude Sonnet 4.6
parent ddc839400a
commit 9dc2343b60
2 changed files with 25 additions and 13 deletions
@@ -73,6 +73,7 @@ pub(super) fn sanitize_error_message(msg: &str) -> String {
"apk update failed",
"No wireless interface",
"No wireless radio",
"WiFi radio enabled but",
"Missing required field",
];
for prefix in &user_facing_prefixes {