modules/admin-full: allow bssid for sta wds as well
[oweals/luci.git] / modules / admin-full / luasrc / model / cbi / admin_network / wifi.lua
index 447f0e3e15b8632959aba17428bd5e7abdc25206..77e68d5a03bc52b602b11e3030638b26ce8b3b3a 100644 (file)
@@ -373,6 +373,8 @@ if hwtype == "mac80211" then
        mode:value("ahdemo", translate("Pseudo Ad-Hoc (ahdemo)"))
        mode:value("monitor", translate("Monitor"))
        bssid:depends({mode="adhoc"})
+       bssid:depends({mode="sta"})
+       bssid:depends({mode="sta-wds"})
 
        mp = s:taboption("macfilter", ListValue, "macfilter", translate("MAC-Address Filter"))
        mp:depends({mode="ap"})
@@ -578,7 +580,6 @@ encr:depends({mode="sta-wds"})
 encr:depends({mode="mesh"})
 
 cipher = s:taboption("encryption", ListValue, "cipher", translate("Cipher"))
-cipher.rmempty = false
 cipher:depends({encryption="wpa"})
 cipher:depends({encryption="wpa2"})
 cipher:depends({encryption="psk"})