summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-08-19 23:31:33 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-08-19 23:31:33 +0000
commita0d353e3327a0b25f55800626a6143127b36de6b (patch)
tree08dd93025d92aa3646056f223c6965b37506d47d
parentcca896a02bda07d823898bcfab667859c60dcd07 (diff)
modules/admin-full: only allow multiple wireless interfaces if the driver actually supports it
-rw-r--r--modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua b/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua
index f6027594f6..bf7f5b2f61 100644
--- a/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua
+++ b/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua
@@ -197,7 +197,7 @@ end
----------------------- Interface -----------------------
s = m:section(TypedSection, "wifi-iface", translate("interfaces"))
-s.addremove = true
+s.addremove = (iw and iw.mbssid_support) and true or false
s.anonymous = true
s:depends("device", arg[1])
s.defaults.device = arg[1]