mirror of
https://gitlab.nic.cz/turris/reforis/foris-js.git
synced 2025-04-20 08:16:38 +02: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.
|
* This is free software, licensed under the GNU General Public License v3.
|
||||||
* See /LICENSE for more information.
|
* See /LICENSE for more information.
|
||||||
@ -163,6 +163,10 @@ function DeviceForm({
|
|||||||
[deviceIndex]: {
|
[deviceIndex]: {
|
||||||
hwmode: { $set: value },
|
hwmode: { $set: value },
|
||||||
channel: { $set: "0" },
|
channel: { $set: "0" },
|
||||||
|
htmode: {
|
||||||
|
$set:
|
||||||
|
value === "11a" ? "VHT80" : "HT20",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}))}
|
}))}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user