Skip to content

Commit

Permalink
[chores] Adjustments to WiFi6 schema #199
Browse files Browse the repository at this point in the history
Related to #199
  • Loading branch information
nemesifier committed Feb 18, 2022
1 parent f1a94f2 commit a0a7e0c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
6 changes: 6 additions & 0 deletions netjsonconfig/backends/openwrt/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,12 @@
"radio_80211ac_5ghz_settings": {
"allOf": [{"$ref": "#/definitions/radio_hwmode_11a"}]
},
"radio_80211ax_2ghz_settings": {
"allOf": [{"$ref": "#/definitions/radio_hwmode_11g"}]
},
"radio_80211ax_5ghz_settings": {
"allOf": [{"$ref": "#/definitions/radio_hwmode_11a"}]
},
},
"properties": {
"general": {
Expand Down
16 changes: 3 additions & 13 deletions netjsonconfig/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -802,14 +802,9 @@
],
},
"radio_80211ax_2ghz_settings": {
"title": "802.11AX (2.4 GHz AX)",
"title": "802.11ax (2.4 GHz AX)",
"allOf": [
{
"properties": {
"protocol": {"enum": ["802.11ax"]},
"hwmode": {"enum": ["11g"]},
}
},
{"properties": {"protocol": {"enum": ["802.11ax"]}}},
{"$ref": "#/definitions/base_radio_settings"},
{"$ref": "#/definitions/radio_2ghz_channels"},
{"$ref": "#/definitions/radio_ax_channel_width"},
Expand All @@ -818,12 +813,7 @@
"radio_80211ax_5ghz_settings": {
"title": "802.11ax (5 GHz AX)",
"allOf": [
{
"properties": {
"protocol": {"enum": ["802.11ax"]},
"hwmode": {"enum": ["11a"]},
}
},
{"properties": {"protocol": {"enum": ["802.11ax"]}}},
{"$ref": "#/definitions/base_radio_settings"},
{"$ref": "#/definitions/radio_5ghz_channels"},
{"$ref": "#/definitions/radio_ax_channel_width"},
Expand Down

0 comments on commit a0a7e0c

Please sign in to comment.