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 f6027594f6f8174160de35eea9ce012e1d2cac91..bf7f5b2f615a387d248bdbabb588cf6779bca87a 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]