possibility to turn on WPA3
It would be useful to be able to enable WPA3 support and ideally in combination with wpa2 / wpa3 and for purists and only wpa3 alone, which may not always be required due to the lack of support for older devices at present.
Support following modes:
- SAE-mixed
- SAE-only
- psk2-ccmp
- custom (don't set encryption mode; keep it as it is already set)
Add encryption
attribute to json schema:
{
"wifi_encryption_modes": {"enum": ["WPA2", "WPA3", "WPA2/3", "custom"]},
[...]
"wifi_device_guest_get": {
"type": "object",
"properties": {
"enabled": {"type": "boolean"},
"SSID": {"type": "string", "minLength": 1, "maxLength": 32},
"password": {"type": "string"},
"encryption": {"$ref": "#/definitions/wifi_encryption_modes"}
},
"additionalProperties": false,
"required": ["enabled", "SSID", "password", "encryption"]
},
"wifi_device_guest_set": {
"type": "object",
"oneOf": [
{
"properties": {
"enabled": {"enum": [true]},
"SSID": {"type": "string", "minLength": 1, "maxLength": 32},
"password": {"type": "string", "minLength": 8},
"encryption": {"$ref": "#/definitions/wifi_encryption_modes"}
},
"additionalProperties": false,
"required": ["enabled", "SSID", "password", "encryption"]
},
[...]
]
},
"wifi_device_get": {
"type": "object",
"properties": {
"id": {"type": "integer", "minimum": 0},
"enabled": {"type": "boolean"},
"SSID": {"type": "string", "minLength": 1, "maxLength": 32},
"hidden": {"type": "boolean"},
"available_bands": {
"type": "array",
"items": {"$ref": "#/definitions/wifi_device_band"}
},
"hwmode": {"$ref": "#/definitions/wifi_device_hwmode"},
"htmode": {"$ref": "#/definitions/wifi_device_htmode"},
"encryption": {"$ref": "#/definitions/wifi_encryption_modes"},
[...]
},
"additionalProperties": false,
"required": [
"id", "enabled", "SSID", "hidden", "htmode", "available_bands",
"hwmode", "encryption", "password", "guest_wifi", "channel"
]
},
"wifi_device_set": {
"type": "object",
"oneOf": [
{
"properties": {
"id": {"type": "integer", "minimum": 0},
"enabled": {"enum": [true]},
"SSID": {"type": "string", "minLength": 1, "maxLength": 32},
"hidden": {"type": "boolean"},
"hwmode": {"enum":["11g"]},
"htmode": {
"$ref": "#/definitions/wifi_device_htmode",
"enum": ["NOHT", "HT20", "HT40"]
},
"encryption": {"$ref": "#/definitions/wifi_encryption_modes"},
[...]
},
"additionalProperties": false,
"required": [
"id", "enabled", "SSID", "hidden", "htmode", "hwmode", "encryption", "password", "guest_wifi"
]
},
{
"properties": {
"id": {"type": "integer", "minimum": 0},
"enabled": {"enum": [true]},
"SSID": {"type": "string", "minLength": 1, "maxLength": 32},
"hidden": {"type": "boolean"},
"hwmode": {"enum":["11a"]},
"htmode": {"$ref": "#/definitions/wifi_device_htmode"},
"encryption": {"$ref": "#/definitions/wifi_encryption_modes"},
[...]
},
"additionalProperties": false,
"required": [
"id", "enabled", "SSID", "hidden", "htmode", "hwmode", "encryption", "password", "guest_wifi"
]
}
]
}