Skip to content

Commit a0a7e0c

Browse files
committed
[chores] Adjustments to WiFi6 schema #199
Related to #199
1 parent f1a94f2 commit a0a7e0c

2 files changed

Lines changed: 9 additions & 13 deletions

File tree

netjsonconfig/backends/openwrt/schema.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,12 @@
471471
"radio_80211ac_5ghz_settings": {
472472
"allOf": [{"$ref": "#/definitions/radio_hwmode_11a"}]
473473
},
474+
"radio_80211ax_2ghz_settings": {
475+
"allOf": [{"$ref": "#/definitions/radio_hwmode_11g"}]
476+
},
477+
"radio_80211ax_5ghz_settings": {
478+
"allOf": [{"$ref": "#/definitions/radio_hwmode_11a"}]
479+
},
474480
},
475481
"properties": {
476482
"general": {

netjsonconfig/schema.py

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -802,14 +802,9 @@
802802
],
803803
},
804804
"radio_80211ax_2ghz_settings": {
805-
"title": "802.11AX (2.4 GHz AX)",
805+
"title": "802.11ax (2.4 GHz AX)",
806806
"allOf": [
807-
{
808-
"properties": {
809-
"protocol": {"enum": ["802.11ax"]},
810-
"hwmode": {"enum": ["11g"]},
811-
}
812-
},
807+
{"properties": {"protocol": {"enum": ["802.11ax"]}}},
813808
{"$ref": "#/definitions/base_radio_settings"},
814809
{"$ref": "#/definitions/radio_2ghz_channels"},
815810
{"$ref": "#/definitions/radio_ax_channel_width"},
@@ -818,12 +813,7 @@
818813
"radio_80211ax_5ghz_settings": {
819814
"title": "802.11ax (5 GHz AX)",
820815
"allOf": [
821-
{
822-
"properties": {
823-
"protocol": {"enum": ["802.11ax"]},
824-
"hwmode": {"enum": ["11a"]},
825-
}
826-
},
816+
{"properties": {"protocol": {"enum": ["802.11ax"]}}},
827817
{"$ref": "#/definitions/base_radio_settings"},
828818
{"$ref": "#/definitions/radio_5ghz_channels"},
829819
{"$ref": "#/definitions/radio_ax_channel_width"},

0 commit comments

Comments
 (0)