%+header%> <% local mtkwifi = require("mtkwifi") %> <% if not mtkwifi then %>
<% else %> <% local devs = mtkwifi.get_all_devs() local l1dat, l1 = mtkwifi.__get_l1dat() local driver_cfgs local allDevDiff = {} local map_cfgs = mtkwifi.load_profile(mtkwifi.__easymesh_profile_path()) local appliedMapDiffTable = mtkwifi.diff_profile(mtkwifi.__easymesh_profile_path()) local appliedMapEnableDiff = appliedMapDiffTable["MapEnable"] and appliedMapDiffTable["MapEnable"][2] or nil local isMapSupported = true %> <% if not l1dat or not l1 then %> <% else %> <% for idx,dev in ipairs(devs) do local zone = l1.l1_path_to_zone(dev.profile) local diff = mtkwifi.diff_profile(dev.profile) if next(diff) ~= nil then allDevDiff[dev.devname] = diff end if not dev.isMultiAPSupported then isMapSupported = false end if zone == "dev1" then driver_cfgs = mtkwifi.load_profile(dev.profile) end end %> <% if not isMapSupported then %> <% else %> <% if not driver_cfgs or not map_cfgs then %> <% else %>