<%+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 bands = mtkwifi.detect_triband() 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 %>
" enctype="multipart/form-data" onreset="return cbi_validate_reset(this)" onsubmit="return cbi_validate_form(this, 'Some fields are invalid, cannot save values!') && ValidateAllSettings()" autocomplete="false">
Device Configuration - <%=devname%> <%local diff = mtkwifi.diff_profile(dev.profile)%> <%if next(diff) ~= nil then%> ( '">Click here to apply changes) <%end%> <% if string.split(cfgs.WirelessMode,";")[1] == "16" or string.split(cfgs.WirelessMode,";")[1] == "17" or string.split(cfgs.WirelessMode,";")[1] == "18" then %> <% end %>
Channel <% if cfgs.ApCliEnable == "1" then %> APClient/Repeater Mode. <% end %>
BSS color
Co-located BSSID set max index
TWT Support
<% if string.split(cfgs.WirelessMode,";")[1] == "16" or string.split(cfgs.WirelessMode,";")[1] == "17" or string.split(cfgs.WirelessMode,";")[1] == "18" then %> <% end %> "> <% if mtkwifi.band(string.split(cfgs.WirelessMode,";")[1]) == "5G" then %> <% end %> <% if cfgs.MUTxRxEnable then %> <% end %> <% if string.split(cfgs.WirelessMode,";")[1] == "16" or string.split(cfgs.WirelessMode,";")[1] == "17" or string.split(cfgs.WirelessMode,";")[1] == "18" then %> <% end %> <% if dev.isPowerBoostSupported then%> style="display:none" <% end %>> <% end %>
" enctype="multipart/form-data" onreset="return cbi_validate_reset(this)" onsubmit="return cbi_validate_form(this, 'Some fields are invalid, cannot save values!')" autocomplete="off">
Raw Configurations ( Edit WiFi profile directly )

WARNING : DO NOT MESS WITH IT IF YOU DON'T UNDERSTAND IT!

'" type="button"> '">
<%+footer%>