X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;f=modules%2Fadmin-full%2Fluasrc%2Fview%2Fadmin_network%2Fwifi_overview.htm;h=046b769566e6cb6611f99f08c7a10004c4795765;hb=5e83af45ae21ff3b4f77309c667b738ec0982e70;hp=f4a44d9a579a91137a075f9c32172141a1157308;hpb=1f653ab141be18e8ae61aa85937b721a39db3670;p=project%2Fluci.git diff --git a/modules/admin-full/luasrc/view/admin_network/wifi_overview.htm b/modules/admin-full/luasrc/view/admin_network/wifi_overview.htm index f4a44d9a5..046b76956 100644 --- a/modules/admin-full/luasrc/view/admin_network/wifi_overview.htm +++ b/modules/admin-full/luasrc/view/admin_network/wifi_overview.htm @@ -1,7 +1,7 @@ <%# LuCI - Lua Configuration Interface Copyright 2008-2009 Steven Barth -Copyright 2008-2010 Jo-Philipp Wich +Copyright 2008-2011 Jo-Philipp Wich Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ $Id$ <%- local sys = require "luci.sys" + local fs = require "luci.fs" local utl = require "luci.util" local uci = require "luci.model.uci".cursor() local ntm = require "luci.model.network" @@ -76,9 +77,13 @@ $Id$ elseif name == "ra" then return "RaLink 802.11%s Wireless Controller" % bands - -- prism? + -- hermes elseif name == "eth" then - return "Prism 802.11%s Wireless Controller" % bands + return "Hermes 802.11b Wireless Controller" + + -- hostap + elseif name == "wlan" and fs.isdirectory("/proc/net/hostap/" .. ifname) then + return "Prism2/2.5/3 802.11b Wireless Controller" -- dunno yet else @@ -97,8 +102,8 @@ $Id$ for _, dev in ipairs(devices) do local net for _, net in ipairs(dev:get_wifinets()) do - netlist[#netlist+1] = net:ifname() - netdevs[net:ifname()] = dev:name() + netlist[#netlist+1] = net:id() + netdevs[net:id()] = dev:name() end end -%> @@ -108,170 +113,236 @@ $Id$ <% if not has_iwinfo then %>
<%:Package libiwinfo required!%>
- <%_The libiwinfo package is not installed. You must install this component for working wireless configuration!%> + <%_The libiwinfo-lua package is not installed. You must install this component for working wireless configuration!%>
<% end %>

<%:Wireless Overview%>

+ +
<% for _, dev in ipairs(devices) do local nets = dev:get_wifinets() %> @@ -285,9 +356,9 @@ $Id$ <%=guess_wifi_hw(dev:name())%> (<%=dev:name()%>)
- - ?device=<%=dev:name()%>"><%:Find and join network%> - ?device=<%=dev:name()%>"><%:Provide new network%> + + ?device=<%=dev:name()%>'" title="<%:Find and join network%>" value="<%:Scan%>" /> + ?device=<%=dev:name()%>'" title="<%:Provide new network%>" value="<%:Add%>" /> @@ -297,16 +368,17 @@ $Id$ <% for i, net in ipairs(nets) do %> - +
0% - + <%:Collecting data...%> - - <%:Edit this network%> - " onclick="return confirm('<%:Really delete this wireless network? The deletion cannot be undone!\nYou might loose access to this router if you are connected via this network.%>')"><%:Delete this network%> + + + + '" title="<%:Delete this network%>" value="<%:Remove%>" /> <% end %>