%+header%> <% local disp = require "luci.dispatcher" -- local request = disp.context.path local request = disp.context.request local mtkwifi = require("mtkwifi") local devname = request[5] local devs = mtkwifi.get_all_devs() local dev = {} for _,v in ipairs(devs) do if v.devname == devname then dev = v end end local cfgs = mtkwifi.load_profile(dev.profile) local map_cfgs local first_card_cfgs local appliedMapModeDiff 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 %>
<%+footer%>