<%+header%> <% local mtkwifi = require("mtkwifi") local devs = mtkwifi.get_all_devs() local map_cfgs local appliedMapEnableDiff if pcall(require, "map_helper") then map_cfgs = mtkwifi.load_profile(mtkwifi.__easymesh_profile_path()) local appliedMapDiffTable = mtkwifi.diff_profile(mtkwifi.__easymesh_profile_path()) appliedMapEnableDiff = appliedMapDiffTable["MapEnable"] and appliedMapDiffTable["MapEnable"][2] or nil end %>

Wireless Overview

<% if #devs == 0 then %>
No wireless device found!
<% end %> <% for _,dev in ipairs(devs) do %>
<% if dev.vifs then%> <% for _,vif in ipairs(dev.vifs) do %> <% end %> <% if dev.apcli then %> <% end %> <% end %>
<%=dev.devname%> <%if not dev.vifs then%> * FATAL ERROR: Incorrect Profile Settings <%else%> <%local diff = mtkwifi.diff_profile(dev.profile)%> <%if next(diff) ~= nil then%> * need reload to apply changes <%end%> <%end%>
Work mode: <% if dev.ApCliEnable == "1" then %> APCli <% else %> AP <% end %>
Driver version: <%=dev.version%>
<%if not dev.vifs then%> ')"> <%else%> ')"> ')"> <%end%>
<% if vif.state == "up" then %> <% else %> <% end %> Interface: <%=vif.vifname%> | Type: AP | SSID: <% if vif.__ssid == "" then %> Error: value not present in dat file | <% else %> <%=vif.__ssid and vif.__ssid:gsub(" "," ") or nil%> <% end %> | Channel: <%=vif.__channel or dev.Channel%>
<% if vif.state == "up" then %> BSSID: <%=vif.__bssid%> | Mode: <%=dev.WirelessModeList[tonumber(vif.__wirelessmode or dev.WirelessMode)]%> <% else %> Wireless is disabled or not associated <% end %>
<% if not vif.state then %> <% elseif vif.state == "up" then %> ')"> <% else %> ')"> <% end %> ')"> ')">
<% if dev.apcli.state == "up" then %> <% else %> <% end %> Interface: <%=dev.apcli.devname%> | Type: STA | Status: <% if dev.ApCliEnable ~= "1" then %> Disconnected <% end %>
style="display:none" <% end %>> <%:Loading%>  Loading connection information of <%=dev.apcli.devname%>
style="display:none" <% end %>>Wireless is disabled or not associated
<% if dev.ApCliEnable ~= "1" then %> <% if dev.apcli.state == "up" then %> ')"> <% else %> ')"> <% end %> ')"> ')"> <% else %> ')"> ')"> ')"> ')"> ')"> <% end %>
<% end %> <%+footer%>