%+header%>
<%
local mtkwifi = require("mtkwifi")
local devs = mtkwifi.get_all_devs()
local l1dat, l1 = mtkwifi.__get_l1dat()
local dridx = l1.DEV_RINDEX
local main_ifname
local map_cfgs
local first_card_cfgs
local appliedMapModeDiff
local chipname
if pcall(require, "map_helper") then
map_cfgs = mtkwifi.load_profile(mtkwifi.__read_easymesh_profile_path())
first_card_cfgs = mtkwifi.load_profile(mtkwifi.detect_first_card())
local appliedMapDiffTable = mtkwifi.diff_profile(mtkwifi.detect_first_card())
appliedMapModeDiff = appliedMapDiffTable["MapMode"] and appliedMapDiffTable["MapMode"][2] or nil
end
%>
<% end %>
<% for _,dev in ipairs(devs) do %>
<% main_ifname = l1dat and l1dat[dridx][dev.devname].main_ifname or dbdc_prefix[mainidx][subidx].."0" %>
<% if mtkwifi.exists("/sys/class/net/"..main_ifname) then %>
<% end %>
<% end %>
<%+footer%>