Skip to content

Commit

Permalink
router: Rewrite WiFi configuration for OpenWrt 23.05.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wagdav committed Mar 9, 2024
1 parent c1d65c5 commit fe8bf5e
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions router/config
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit fe8bf5e

Please sign in to comment.