diff --git a/netjsonconfig/schema.py b/netjsonconfig/schema.py index 7af94641a..a159a7414 100644 --- a/netjsonconfig/schema.py +++ b/netjsonconfig/schema.py @@ -496,7 +496,7 @@ "ieee80211w": { "type": "string", "title": "management frame protection", - "enum": ["1"], + "enum": ["1", "2"], "readOnly": True, "options": {"enum_titles": ["optional", "required"]}, "propertyOrder": 4, diff --git a/tests/openwrt/test_encryption.py b/tests/openwrt/test_encryption.py index f7f75af8c..aeaa25490 100644 --- a/tests/openwrt/test_encryption.py +++ b/tests/openwrt/test_encryption.py @@ -71,7 +71,7 @@ def test_parse_wpa3_personal(self): "protocol": "wpa2_personal_mixed", "cipher": "ccmp", "key": "passphrase012345", - "ieee80211w": "1", + "ieee80211w": "2", }, }, } @@ -91,7 +91,7 @@ def test_parse_wpa3_personal(self): config wifi-iface 'wifi_wlan0' option device 'radio0' option encryption 'sae-mixed+ccmp' - option ieee80211w '1' + option ieee80211w '2' option ifname 'wlan0' option key 'passphrase012345' option mode 'ap'