diff options
author | Manuel Munz <freifunk@somakoma.de> | 2011-11-06 17:13:30 +0000 |
---|---|---|
committer | Manuel Munz <freifunk@somakoma.de> | 2011-11-06 17:13:30 +0000 |
commit | 7d81806393b7c1e9612ef22fb5b3275dbd0f2c01 (patch) | |
tree | b334423679ddc7b10872a115562bb7efb17d7dfb | |
parent | 1ca513cf72a354a234d46958c16dbab3013e13bc (diff) |
modules/freifunk: Show warning about diversity only if not using mac80211
-rw-r--r-- | modules/freifunk/luasrc/view/freifunk/adminindex.htm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/freifunk/luasrc/view/freifunk/adminindex.htm b/modules/freifunk/luasrc/view/freifunk/adminindex.htm index 4fcc16ccd..48e7d8bee 100644 --- a/modules/freifunk/luasrc/view/freifunk/adminindex.htm +++ b/modules/freifunk/luasrc/view/freifunk/adminindex.htm @@ -42,7 +42,7 @@ luci.i18n.loadc("freifunk") <% uci:foreach("wireless", "wifi-device", function(section) local device = section[".name"] local url = luci.dispatcher.build_url(luci.dispatcher.context.path[1], "network", "wireless") - if section.diversity ~= "0" and section.disabled ~= "1" then + if section.diversity ~= "0" and section.disabled ~= "1" and section.type ~= "mac80211" then print('<div class="error">' .. translate("Diversity is enabled for device") .. ' <b>' .. device .. '</b>. ' .. translate("Go to") .. ' <a href="' .. url .. '">' .. translate("wireless settings") .. '</a> ' .. translate("to disable it.") .. '</div><p />') |