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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user