From a0d353e3327a0b25f55800626a6143127b36de6b Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 19 Aug 2009 23:31:33 +0000 Subject: modules/admin-full: only allow multiple wireless interfaces if the driver actually supports it --- modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 f6027594f..bf7f5b2f6 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] -- cgit v1.2.3