<%# LuCI - Lua Configuration Interface Copyright 2009 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. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ -%> <%- local sys = require "luci.sys" local utl = require "luci.util" local uci = require "luci.model.uci".cursor_state() local ifaces = { } uci:foreach("network", "interface", function(i) if i.ifname ~= "lo" then ifaces[#ifaces+1] = { i['.name'], i.ifname, i.ipaddr } end end) local dev = luci.http.formvalue("device") local iw = luci.sys.wifi.getiwinfo(dev) -%> <%+header%>

<%:a_s_iw_join Join Network%>

<%=luci.i18n.translatef("a_s_iw_join_desc", "You are about to join the wireless network %s. " .. "In order to complete the process, you need to provide some additional details.", utl.pcdata(luci.http.formvalue("join") or "(hidden)") )%>
" /> " /> " /> " /> " /> " /> " /> <% if luci.http.formvalue("wep") == "1" then %>


<% elseif tonumber(luci.http.formvalue("wpa_version") or 0) > 0 and luci.http.formvalue("wpa_suites") == "PSK" then %>
<% if tonumber(luci.http.formvalue("wpa_version") or 0) == 3 then %> <% else %> " /> <% end %>

<% end %>




<% if luci.http.formvalue("mode") == "Ad-Hoc" then %>
<% end %> <% if iw.mbssid_support then %>
<% else %> <% end %>
<%+footer%>