From 3813d639debd6c73f46590a29215c2ccd079843e Mon Sep 17 00:00:00 2001 From: Manuel Munz Date: Thu, 27 Jan 2011 13:52:37 +0000 Subject: applications/ffwizard: Do not disable diversity because we don't know which antenna is connected. Instead show a warning on admin/freifunk/adminindex when diversity is enabled and tell the user to change that. --- modules/freifunk/luasrc/view/freifunk/adminindex.htm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'modules/freifunk') diff --git a/modules/freifunk/luasrc/view/freifunk/adminindex.htm b/modules/freifunk/luasrc/view/freifunk/adminindex.htm index d2bf0b7ea..57f6bddba 100644 --- a/modules/freifunk/luasrc/view/freifunk/adminindex.htm +++ b/modules/freifunk/luasrc/view/freifunk/adminindex.htm @@ -26,8 +26,17 @@ local basicsurl = luci.dispatcher.build_url(luci.dispatcher.context.path[1], "fr <% if not (contact.nickname and contact.name and contact.mail) then%>
<%:Contact information missing. Please go to this page and fill all required fields: %> - <%:Contact%> + <%:Contact%>

<%end%> +<% 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 + print('
Diversity is enabled for device ' .. device .. '. Go to wireless settings to change that.

') + end +end) %> + + <%+footer%> -- cgit v1.2.3