From 9dd6bbca905fb2499bbeedb32da33ff025d58a41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Sa=C5=A1ek?= Date: Tue, 27 Apr 2021 19:34:48 +0200 Subject: [PATCH] Fix switching Wi-Fi modes depending on bands in WiFiForm --- src/common/WiFiSettings/WiFiForm.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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", + }, }, }, }))}