From 1321fd8d5d312e3145af61c108e373941f581fe2 Mon Sep 17 00:00:00 2001 From: Kiet CHau Date: Sat, 27 Apr 2024 09:58:53 -0700 Subject: [PATCH] post champs 1.1.2 changes --- radio/radio_robot.go | 5 ++++- web/configuration_page.html | 36 +++--------------------------------- 2 files changed, 7 insertions(+), 34 deletions(-) diff --git a/radio/radio_robot.go b/radio/radio_robot.go index e55d73c..0ea61e4 100644 --- a/radio/radio_robot.go +++ b/radio/radio_robot.go @@ -140,6 +140,8 @@ func (radio *Radio) configure(request ConfigurationRequest) error { // Handle IP address when in STA mode. uciTree.SetType("network", "lan", "ipaddr", uci.TypeOption, fmt.Sprintf("10.%s.1", teamPartialIp)) uciTree.SetType("network", "lan", "gateway", uci.TypeOption, fmt.Sprintf("10.%s.4", teamPartialIp)) + uciTree.SetType("dhcp", "lan", "start", uci.TypeOption, "200") + uciTree.SetType("dhcp", "lan", "limit", uci.TypeOption, "20") } else { uciTree.SetType("wireless", wifiInterface6, "mode", uci.TypeOption, "ap") @@ -155,6 +157,8 @@ func (radio *Radio) configure(request ConfigurationRequest) error { // Handle IP address when in AP mode. uciTree.SetType("network", "lan", "ipaddr", uci.TypeOption, fmt.Sprintf("10.%s.4", teamPartialIp)) uciTree.SetType("network", "lan", "gateway", uci.TypeOption, fmt.Sprintf("10.%s.4", teamPartialIp)) + uciTree.SetType("dhcp", "lan", "start", uci.TypeOption, "20") + uciTree.SetType("dhcp", "lan", "limit", uci.TypeOption, "180") } // Handle DHCP. @@ -172,7 +176,6 @@ func (radio *Radio) configure(request ConfigurationRequest) error { } time.Sleep(wifiReloadBackoffDuration) - var err error radio.Ssid, err = getSsid(radioInterface6) if err != nil { return err diff --git a/web/configuration_page.html b/web/configuration_page.html index 6f3255d..a5c9224 100644 --- a/web/configuration_page.html +++ b/web/configuration_page.html @@ -100,69 +100,39 @@
- + -
Wi-Fi 6E 20 MHz channel
+
Wi-Fi 6E Channel
@@ -356,4 +326,4 @@

Firmware Upload

- \ No newline at end of file +