X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=package%2Fnetwork%2Fservices%2Fhostapd%2Ffiles%2Fnetifd.sh;fp=package%2Fnetwork%2Fservices%2Fhostapd%2Ffiles%2Fnetifd.sh;h=d90ff9ba8760b8cb6743c1801437c2df7a3cb913;hb=e5488123e6336848c7c9dbbcbdfe3b339e048af6;hp=a3ffd9395475c91f764e532379ab9a741c55e7b7;hpb=4463bc017beba6be6c484f0ff5e9d381debafe38;p=openwrt%2Fstaging%2Fdedeckeh.git diff --git a/package/network/services/hostapd/files/netifd.sh b/package/network/services/hostapd/files/netifd.sh index a3ffd93954..d90ff9ba87 100644 --- a/package/network/services/hostapd/files/netifd.sh +++ b/package/network/services/hostapd/files/netifd.sh @@ -140,6 +140,7 @@ hostapd_common_add_bss_config() { config_add_int dynamic_vlan vlan_naming config_add_string vlan_tagged_interface vlan_bridge + config_add_string vlan_file config_add_string 'key1:wepkey' 'key2:wepkey' 'key3:wepkey' 'key4:wepkey' 'password:wpakey' @@ -248,7 +249,7 @@ hostapd_set_bss_options() { ownip \ eap_reauth_period dynamic_vlan \ vlan_naming vlan_tagged_interface \ - vlan_bridge + vlan_bridge vlan_file # legacy compatibility [ -n "$auth_server" ] || json_get_var auth_server server @@ -291,6 +292,10 @@ hostapd_set_bss_options() { append bss_conf "vlan_bridge=$vlan_bridge" "$N" [ -n "$vlan_tagged_interface" ] && \ append bss_conf "vlan_tagged_interface=$vlan_tagged_interface" "$N" + [ -n "$vlan_file" ] && { + [ -e "$vlan_file" ] || touch "$vlan_file" + append bss_conf "vlan_file=$vlan_file" "$N" + } } ;; wep)