From: Manuel Munz Date: Sun, 6 Nov 2011 17:13:30 +0000 (+0000) Subject: modules/freifunk: Show warning about diversity only if not using mac80211 X-Git-Tag: 0.11.0~1397 X-Git-Url: http://git.archive.openwrt.org/?a=commitdiff_plain;h=7d81806393b7c1e9612ef22fb5b3275dbd0f2c01;p=project%2Fluci.git modules/freifunk: Show warning about diversity only if not using mac80211 --- 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('
' .. translate("Diversity is enabled for device") .. ' ' .. device .. '. ' .. translate("Go to") .. ' ' .. translate("wireless settings") .. ' ' .. translate("to disable it.") .. '

')