foris 6.11.0 → 6.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -170,13 +170,18 @@ function DeviceForm({
170
170
  // Get the last item in the available HT modes for the selected band
171
171
  const bestHtmode =
172
172
  selectedBand.available_htmodes.slice(-1)[0];
173
+ const deviceUpdate = {
174
+ band: { $set: value },
175
+ channel: { $set: "0" },
176
+ htmode: { $set: bestHtmode },
177
+ };
178
+ // The 6 GHz band supports only WPA3
179
+ if (value === "6g") {
180
+ deviceUpdate.encryption = { $set: "WPA3" };
181
+ }
173
182
  return {
174
183
  devices: {
175
- [deviceIndex]: {
176
- band: { $set: value },
177
- channel: { $set: "0" },
178
- htmode: { $set: bestHtmode },
179
- },
184
+ [deviceIndex]: deviceUpdate,
180
185
  },
181
186
  };
182
187
  })}
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "foris",
3
- "version": "6.11.0",
3
+ "version": "6.11.1",
4
4
  "description": "Foris JS library is a set of components and utils for reForis application and plugins.",
5
5
  "author": "CZ.NIC, z.s.p.o.",
6
6
  "repository": {
package/foris-6.11.0.tgz DELETED
Binary file