modules/admin-full: only allow multiple wireless interfaces if the driver actually...
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 19 Aug 2009 23:31:33 +0000 (23:31 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 19 Aug 2009 23:31:33 +0000 (23:31 +0000)
modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua

index f602759..bf7f5b2 100644 (file)
@@ -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]