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.
- package/common/WiFiSettings/WiFiForm.js +10 -5
- package/foris-6.11.1.tgz +0 -0
- package/package.json +1 -1
- package/foris-6.11.0.tgz +0 -0
|
@@ -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
|
})}
|
package/foris-6.11.1.tgz
ADDED
|
Binary file
|
package/package.json
CHANGED
package/foris-6.11.0.tgz
DELETED
|
Binary file
|