From fe8bf5e5509404e39a8ba1008c7ad4a72b16eee4 Mon Sep 17 00:00:00 2001 From: David Wagner Date: Sat, 9 Mar 2024 19:21:45 +0100 Subject: [PATCH] router: Rewrite WiFi configuration for OpenWrt 23.05.0 --- router/config | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/router/config b/router/config index c015bb1..032ca04 100644 --- a/router/config +++ b/router/config @@ -15,28 +15,28 @@ uci set system.@system[0].zonename="Europe/Zurich" # LAN uci set network.lan.ipaddr=172.16.0.1 -uci set wireless.radio0.country="CH" -uci set wireless.radio1.country="CH" -uci set wireless.radio2.country="CH" +# WIRELESS -# 5 GHz -uci set wireless.@wifi-device[0].disabled=0; -uci set wireless.@wifi-device[0].channel="auto"; +# https://openwrt.org/toh/linksys/wrt3200acm#wifi_driver_bug_and_workaround +opkg remove kmod-mwifiex-sdio -uci set wireless.@wifi-iface[0].disabled=0 -uci set wireless.@wifi-iface[0].ssid="${WIFI_SSID}_5GHz" -uci set wireless.@wifi-iface[0].encryption="psk" -uci set wireless.@wifi-iface[0].key="$WIFI_KEY" - -# 2.4 GHz +wifi config > /etc/config/wireless -uci set wireless.@wifi-device[1].disabled=0; -uci set wireless.@wifi-device[1].channel="auto"; +# 5 GHz +uci set wireless.radio0.disabled="0" +uci set wireless.radio0.country="CH" +uci set wireless.radio0.cell_density="0" +uci set wireless.default_radio0.ssid="${WIFI_SSID}_5GHz" +uci set wireless.default_radio0.encryption='psk2' +uci set wireless.default_radio0.key="$WIFI_KEY" -uci set wireless.@wifi-iface[1].disabled=0 -uci set wireless.@wifi-iface[1].ssid="$WIFI_SSID" -uci set wireless.@wifi-iface[1].encryption="psk" -uci set wireless.@wifi-iface[1].key="$WIFI_KEY" +# 2.4 GHz +uci set wireless.radio1.disabled="0" +uci set wireless.radio1.country="CH" +uci set wireless.radio1.cell_density="0" +uci set wireless.default_radio1.ssid="${WIFI_SSID}" +uci set wireless.default_radio1.encryption='psk2' +uci set wireless.default_radio1.key="$WIFI_KEY" # Local domain uci set dhcp.@dnsmasq[0].domain='thewagner.home'