1
0
mirror of https://gitlab.nic.cz/turris/reforis/foris-js.git synced 2024-12-26 00:21:36 +01:00

Fix switching Wi-Fi modes depending on bands in WiFiForm

This commit is contained in:
Marek Sašek 2021-04-27 19:34:48 +02:00 committed by Aleksandr Gumroian
parent d5bb99570c
commit 9dd6bbca90
No known key found for this signature in database
GPG Key ID: 9E77849C64F0A733

View File

@ -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",
},
},
},
}))}