diff --git a/src/common/WiFiSettings/WiFiForm.js b/src/common/WiFiSettings/WiFiForm.js
index 4be8fc4..b9e1bc6 100644
--- a/src/common/WiFiSettings/WiFiForm.js
+++ b/src/common/WiFiSettings/WiFiForm.js
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2019 CZ.NIC z.s.p.o. (http://www.nic.cz/)
+ * Copyright (C) 2019-2021 CZ.NIC z.s.p.o. (http://www.nic.cz/)
*
* This is free software, licensed under the GNU General Public License v3.
* See /LICENSE for more information.
@@ -163,6 +163,10 @@ function DeviceForm({
[deviceIndex]: {
hwmode: { $set: value },
channel: { $set: "0" },
+ htmode: {
+ $set:
+ value === "11a" ? "VHT80" : "HT20",
+ },
},
},
}))}
diff --git a/src/common/WiFiSettings/__tests__/WiFiSettings.test.js b/src/common/WiFiSettings/__tests__/WiFiSettings.test.js
index 7f533c2..6dd75d0 100644
--- a/src/common/WiFiSettings/__tests__/WiFiSettings.test.js
+++ b/src/common/WiFiSettings/__tests__/WiFiSettings.test.js
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2019 CZ.NIC z.s.p.o. (http://www.nic.cz/)
+ * Copyright (C) 2019-2021 CZ.NIC z.s.p.o. (http://www.nic.cz/)
*
* This is free software, licensed under the GNU General Public License v3.
* See /LICENSE for more information.
@@ -116,7 +116,7 @@ describe("", () => {
enabled: true,
guest_wifi: { enabled: false },
hidden: false,
- htmode: "HT40",
+ htmode: "HT80",
hwmode: "11a",
id: 0,
password: "TestPass",
@@ -145,7 +145,7 @@ describe("", () => {
enabled: true,
guest_wifi: { enabled: false },
hidden: false,
- htmode: "HT40",
+ htmode: "HT20",
hwmode: "11g",
id: 0,
password: "TestPass",
@@ -181,7 +181,7 @@ describe("", () => {
password: "test_password",
},
hidden: false,
- htmode: "HT40",
+ htmode: "HT80",
hwmode: "11a",
id: 0,
password: "TestPass",
diff --git a/src/common/WiFiSettings/__tests__/__fixtures__/wifiSettings.js b/src/common/WiFiSettings/__tests__/__fixtures__/wifiSettings.js
index 5b45398..0e9b74f 100644
--- a/src/common/WiFiSettings/__tests__/__fixtures__/wifiSettings.js
+++ b/src/common/WiFiSettings/__tests__/__fixtures__/wifiSettings.js
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2019 CZ.NIC z.s.p.o. (http://www.nic.cz/)
+ * Copyright (C) 2019-2021 CZ.NIC z.s.p.o. (http://www.nic.cz/)
*
* This is free software, licensed under the GNU General Public License v3.
* See /LICENSE for more information.
@@ -226,7 +226,7 @@ export function wifiSettingsFixture() {
password: "",
},
hidden: false,
- htmode: "HT40",
+ htmode: "HT80",
hwmode: "11a",
id: 0,
password: "TestPass",