mirror of
https://gitlab.nic.cz/turris/reforis/foris-js.git
synced 2024-11-14 17:35:35 +01:00
Fix switching Wi-Fi modes depending on bands in WiFiForm
This commit is contained in:
parent
d5bb99570c
commit
9dd6bbca90
|
@ -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",
|
||||
},
|
||||
},
|
||||
},
|
||||
}))}
|
||||
|
|
Loading…
Reference in New Issue
Block a user