modules/admin-core: define size constraints for psk in wireless schema
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 4 Mar 2009 22:45:02 +0000 (22:45 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 4 Mar 2009 22:45:02 +0000 (22:45 +0000)
modules/admin-core/root/lib/uci/schema/default/wireless

index 3a1b2c3..845706a 100644 (file)
@@ -453,6 +453,8 @@ config variable
        option name 'key'
        option section 'wireless.wifi-iface'
        option title 'Key'
+       option minlength 8
+       option maxlength 63
        list depends 'encryption=wep'
        list depends 'encryption=psk'
        list depends 'encryption=wpa,mode=ap'