From: Jo-Philipp Wich Date: Wed, 19 Aug 2009 23:31:33 +0000 (+0000) Subject: modules/admin-full: only allow multiple wireless interfaces if the driver actually... X-Git-Tag: 0.10.0~1163 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a0d353e3327a0b25f55800626a6143127b36de6b;p=oweals%2Fluci.git modules/admin-full: only allow multiple wireless interfaces if the driver actually supports it --- 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]