%+header%> <% local uci = require("luci.model.uci").cursor() local disp = require "luci.dispatcher" local country = uci:get('wireless','wifi1','country'); local mesh, channel, passwd, deviceName local mesh_5g, channel_5g, rssi local mesh_disabled = uci:get("mesh","wifi","disabled") mesh = uci:get("wireless","wifi0_mesh","disabled") passwd = uci:get("wireless","wifi0_mesh","aeskey") --channel = uci:get("wireless","wifi0","channel") mesh_ID = uci:get("wireless","wifi0_mesh","Mesh_id") mesh_5g = uci:get("wireless","wifi1_mesh","disabled") mesh_ID_5g = uci:get("wireless","wifi1_mesh","Mesh_id") passwd_5g = uci:get("wireless","wifi1_mesh","aeskey") channel_5g = uci:get("wireless","wifi1","channel") rssi = uci:get("wireless","wifi0_mesh","LinkRobustThreshold") deviceName = uci:get_first("system","system","SystemName") if passwd ~= nil then passwd = string.gsub(passwd,"\\","\\\\") passwd = string.gsub(passwd,"\"","\\\"") else passwd = "" end if passwd_5g ~= nil then passwd_5g = string.gsub(passwd_5g,"\\","\\\\") passwd_5g = string.gsub(passwd_5g,"\"","\\\"") else passwd_5g = "" end operation_mode = uci:get("mesh","wifi","mode") %>
<%+footer%>