mirror of
https://github.com/dikeckaan/mu300-linux.git
synced 2026-12-06 08:03:36 +00:00
The 5 GHz channels list openwrt-wifi-config writes for auto stayed when LuCI switched the band to 2.4 GHz; with channel auto hostapd got chanlist=36 40 44 48 and hw_mode=g, found no channel and never started the AP. The no-DFS wifi-scripts patch now drops chanlist entries that are not on the radio's band (whole list when none is left, so ACS uses the band), with one log line. Reproduced and verified on a U30 Air (OpenWrt v2026.10.28.1, 6.18.59): 2.4 GHz auto with the stale list was AP-DISABLED; with the patch ACS picks channel 1 (HT20 and HT40), and 5 GHz auto keeps its list (36). tests/test_wifi_channels.py's OpenWrt-image test gains three 2.4 GHz cases (fails on the old patch). Fixes #424 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE