aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2014-02-18 13:33:59 +0000
committerJohn Crispin <blogic@openwrt.org>2014-02-18 13:33:59 +0000
commit9450ebce2b5dc8f65b2ac3d9d262b8dc1cda2264 (patch)
treebf5c54e1d2f9c6c195a83fc8fa862adef0c48c66 /package
parent4aff5a4e3df635e83decd87fd44c88a4a5bc30a2 (diff)
downloadupstream-9450ebce2b5dc8f65b2ac3d9d262b8dc1cda2264.tar.gz
upstream-9450ebce2b5dc8f65b2ac3d9d262b8dc1cda2264.tar.bz2
upstream-9450ebce2b5dc8f65b2ac3d9d262b8dc1cda2264.zip
hostapd: add validation rules to wireless handler
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39620 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/network/services/hostapd/files/netifd.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/package/network/services/hostapd/files/netifd.sh b/package/network/services/hostapd/files/netifd.sh
index 32bf367c53..f06b2ac784 100644
--- a/package/network/services/hostapd/files/netifd.sh
+++ b/package/network/services/hostapd/files/netifd.sh
@@ -89,7 +89,7 @@ EOF
}
hostapd_common_add_bss_config() {
- config_add_string bssid ssid
+ config_add_string 'bssid:macaddr' 'ssid:string'
config_add_boolean wds wmm hidden
config_add_int maxassoc max_inactivity
@@ -102,9 +102,9 @@ hostapd_common_add_bss_config() {
config_add_boolean rsn_preauth auth_cache
config_add_int ieee80211w
- config_add_string auth_server server
+ config_add_string 'auth_server:host' 'server:host'
config_add_string auth_secret
- config_add_int auth_port port
+ config_add_int 'auth_port:port' 'port:port'
config_add_string acct_server
config_add_string acct_secret
@@ -118,15 +118,15 @@ hostapd_common_add_bss_config() {
config_add_string iapp_interface
config_add_string eap_type ca_cert client_cert identity auth priv_key priv_key_pwd
- config_add_string key1 key2 key3 key4 password
+ config_add_string 'key1:wepkey' 'key2:wepkey' 'key3:wepkey' 'key4:wepkey' 'password:wpakey'
config_add_boolean wps_pushbutton wps_label ext_registrar
config_add_string wps_device_type wps_device_name wps_manufacturer wps_pin
config_add_int ieee80211w_max_timeout ieee80211w_retry_timeout
- config_add_string macfilter macfile
- config_add_array maclist
+ config_add_string macfilter 'macfile:file'
+ config_add_array 'maclist:list(macaddr)'
config_add_int mcast_rate
config_add_array basic_rate