<%+header%> <% local mtkwifi = require("mtkwifi") local mtkwifis = require("mtkwifis") local devs = mtkwifi.get_all_devs() if not mtkwifi.exists("/etc/wireless/mt7603/") then mt1 = "mt7622" elseif mtkwifi.exists("/etc/wireless/mt7603/") and mtkwifi.exists("/etc/wireless/mt7612/") then mt1 = "mt7612" else mt1 = "mt7603" end %>

Wireless Overview

<% if #devs == 0 then %>
No wireless device found.
<% end %> <% for _,dev in ipairs(devs) do %>
<% for _,vif in ipairs(dev.vifs) do %> <% end %> <% if dev.apcli then %> <% end %>
Mediatek <%=dev.devname%>
Work mode: <% if dev.ApCliEnable == "1" then %> APCli <% else %> Master AP<% end %> <% local diff = mtkwifi.diff_profile(dev.profile) if next(diff) ~= nil then %>
* need reload to apply changes <% end %>
'" /> '" />
<% if vif.state == "up" then %> <% else %> <% end %> Interface: <%=vif.vifname%> | Type: AP | SSID: <%=vif.__ssid%> | Channel: <%=vif.__channel%>
<% if vif.state == "up" then %> BSSID: <%=vif.__bssid%> | Mode: <%=dev.WirelessModeList[tonumber(vif.__wirelessmode or dev.WirelessMode)]%> <% else %> Wireless is disabled <% end %>
<% if not vif.state then %> <% elseif vif.state == "up" then %> '" /> <% else %> <% end %> '" /> '" />
<% if dev.apcli.state == "up" then %> <% if dev.apcli.status == "Connected" then %> <% else %> <% end %> <% else %> <% end %> Interface: <%=dev.apcli.devname%> | Type: STA | Status: <%=dev.apcli.status%>
<% if dev.apcli.status == "Connected" then %> BSSID: <%=dev.apcli.bssid%> | SSID: <%=dev.apcli.ssid%>
Signal level: <%=dev.apcli.signal%> | Bit Rate: <%=dev.apcli.rate%> <% else %> <% if dev.apcli.state == "up" then %> Wireless is not associated <% else %> Wireless is disabled <% end %> <% end %>
<% if dev.apcli.state == "up" then %> <% else %> <% end %> '" />
<% end %>

Associated Stations

<% if mt1 == "mt7622" then %>
MAC-Address
Hostname
IPv4 (DHCP)
RSSI - 0/1/2/3
BW (T/R)
MCS (T/R)
GI (T/R)
Rate (T/R)
<%=MAC%>
<%=Host%>
<%=IP%>
<%=RSSI%>
<%=BW%>
<%=MCS%>
<%=SGI%>
<%=Rate%>
<% elseif mt1 == "mt76xx" then %> mt7622
MAC-Address
Hostname
IPv4 (DHCP)
RSSI - 0/1
BW
MCS
GI
Rate
<%=MAC2%>
<%=Host2%>
<%=IP2%>
<%=RSSI2%>
<%=BW2%>
<%=MCS2%>
<%=SGI2%>
<%=Rate2%>

mt7915
MAC-Address
Hostname
IPv4 (DHCP)
RSSI - 0/1/2/3
BW (T/R)
MCS (T/R)
GI (T/R)
Rate (T/R)
<%=MAC%>
<%=Host%>
<%=IP%>
<%=RSSI%>
<%=BW%>
<%=MCS%>
<%=SGI%>
<%=Rate%>
<% else %>
MAC-Address
Hostname
IPv4 (DHCP)
RSSI - 0/1
BW
MCS
GI
Rate
<%=MAC%>
<%=Host%>
<%=IP%>
<%=RSSI%>
<%=BW%>
<%=MCS%>
<%=SGI%>
<%=Rate%>
<% end %>
<%+footer%>