<%+header%> <% local mtkwifi = require("mtkwifi") %> <% if not mtkwifi then %>
mtkwifi lua module is not available!
<% 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 %>
l1profile.dat file is not available!
<% 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 %>
EasyMesh feature is not supported for this platform!
<% else %> <% if not driver_cfgs or not map_cfgs then %>
Profile settings file is not available!
<% else %>
EasyMesh Configurations
" enctype="multipart/form-data" onsubmit="return validate_all()" autocomplete="off"> <% if appliedMapEnableDiff and appliedMapEnableDiff ~= "1" and map_cfgs.MapEnable == "1" then %> <% end %> <% if appliedMapEnableDiff and appliedMapEnableDiff == "1" and map_cfgs.MapEnable ~= "1" then %> <% end %> <% if not appliedMapEnableDiff and map_cfgs.MapEnable ~= "1" then %> <% end %> <% if not appliedMapEnableDiff and map_cfgs.MapEnable == "1" then %> <% end %>
EasyMesh checked="checked"<% end %> /> Enable checked="checked"<% end %> /> Disable
Set Device Role as
Reset EasyMesh Settings to default
EasyMesh has not been enabled yet!
Please click on Save and Apply button to enable the EasyMesh.
Reset EasyMesh Settings to default
EasyMesh has not been disabled yet!
Please click on Save and Apply button to disable the EasyMesh.
Reset EasyMesh Settings to default
Other EasyMesh related settings will be displayed only after enabling EasyMesh!
Please check Enable radio button of EasyMesh and then click on Save and Apply button to enable EasyMesh.
Current Device Role Not configured
Reset EasyMesh Settings to default
EasyMesh On-board
(Wi-Fi will select the back-haul band automatically)
Other EasyMesh related settings will be displayed once Device Role is configured.
<% if not appliedMapEnableDiff and map_cfgs.MapEnable == "1" then %> <% end %> <% if not appliedMapEnableDiff and map_cfgs.MapEnable == "1" then %> <% end %>
<% end %> <% end %> <% end %> <% end %> <%+footer%>