summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-core/root
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-03-04 22:45:02 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-03-04 22:45:02 +0000
commitbddbad34903d6b0f72ca5dd181075805c90a140e (patch)
treec3f12ec7aec0356a0e2557bd5143fff7dda3c870 /modules/admin-core/root
parent0feb0a4607bfe4472c60941b59f2fd7e1c4f4947 (diff)
modules/admin-core: define size constraints for psk in wireless schema
Diffstat (limited to 'modules/admin-core/root')
-rw-r--r--modules/admin-core/root/lib/uci/schema/default/wireless2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/admin-core/root/lib/uci/schema/default/wireless b/modules/admin-core/root/lib/uci/schema/default/wireless
index 3a1b2c349..845706afb 100644
--- a/modules/admin-core/root/lib/uci/schema/default/wireless
+++ b/modules/admin-core/root/lib/uci/schema/default/wireless
@@ -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'