<%+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 bands = mtkwifi.detect_triband() local cfg_1905d = mtkwifi.load_profile("/etc/map/1905d.cfg") local driver_cfgs local allDevDiff = {} local map_cfgs = mtkwifi.load_profile(mtkwifi.__read_easymesh_profile_path()) local first_card_cfgs = mtkwifi.load_profile(mtkwifi.detect_first_card()) local appliedMapDiffTable = mtkwifi.diff_profile(mtkwifi.detect_first_card()) local appliedMapModeDiff = appliedMapDiffTable["MapMode"] and appliedMapDiffTable["MapMode"][2] or nil local isMapSupported = true local mapd_default_cfg = mtkwifi.load_profile("/etc/map/mapd_default.cfg") local mapd_user_cfg = mtkwifi.load_profile("/etc/map/mapd_user.cfg") local eth_mode = mapd_default_cfg.mode if mapd_user_cfg.mode then eth_mode = mapd_user_cfg.mode end local dpp_cfg = mtkwifi.load_profile("/etc/dpp_cfg.txt") %> <% 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 bands == 3 and first_card_cfgs.MapMode == "1" then %> <% end %> <% if first_card_cfgs.MapMode == "1" then %> <% if mapd_default_cfg.mode then %> <% end %> <% if appliedMapModeDiff and appliedMapModeDiff ~= "1" and first_card_cfgs.MapMode == "1" then %> <% end %> <% if appliedMapModeDiff and appliedMapModeDiff == "1" and first_card_cfgs.MapMode ~= "1" then %> <% end %> <% if not appliedMapModeDiff and first_card_cfgs.MapMode ~= "1" then %> <% end %> <% end %> <% if not appliedMapModeDiff and first_card_cfgs.MapMode == "1" then %> <% if cfg_1905d.map_ver ~= "R1" and cfg_1905d.map_ver ~= "R2" then %> <% end %> <% if bands == 3 then %> <% else %> <% end %> <% end %>
EasyMesh Mode
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.
Other EasyMesh related settings will be displayed once Device Role is configured.
<% if not appliedMapModeDiff and first_card_cfgs.MapMode == "1" then %> <% if cfg_1905d.map_ver ~= "R1" then %> <% end %> <% if cfg_1905d.map_ver ~= "R1" then %> <% end %> <% if bands == 3 then %> <% else %> <% end %> <% end %> <% if not appliedMapModeDiff and first_card_cfgs.MapMode == "1" then %> <% end %> <% if cfg_1905d.map_ver ~= "R1" and cfg_1905d.map_ver ~= "R2" and not appliedMapModeDiff and first_card_cfgs.MapMode == "1" then %> <% end %>
<% end %> <% end %> <% end %> <% end %> <%+footer%>