<%+header%> <% local mtkwifi = require("mtkwifi") local devs = mtkwifi.get_all_devs() -- Go blame the M.A.N. designer if you think the code looks odd. -- 1. there may be more than one interface that supports M.A.N. -- 2. all interfaces that supports M.A.N will share the same params in their profiles. -- so we choose only one dev to manipulate those M.A.N params, then copy them to other devs. local dev = nil -- this is the dev we choose local cfgs = nil -- profile of chosen dev %>

M.A.N. (MediaTek Adaptive Netowrk)

" enctype="multipart/form-data" onreset="return cbi_validate_reset(this)" onsubmit="return cbi_validate_form(this, 'Some fields are invalid, cannot save values!')" autocomplete="false">
Disable/Enable Easy Setup
Important Notes:
1. Please use the following recommanded configurations, or the function may not work!
    7615 DBDC, enable both.
    7615 DBDC + 7615N, enable 7615N.
    7615N + 7615N, enable both.
    7603 + 7615N, enable 7615N.
2. Once M.A.N. is enabled, it will overwrite some configurations of both AP and APCli interface. Do NOT configure them manually afterwards, or you will mess it up.
    ApCliEnable       ----->  "1"
    ApCliAuthMode     ----->  "WPA2PSK"
    ApCliEncrypType   ----->  "AES"
    ApCliWPAPSK       ----->  "12345678"
    AuthMode          ----->  "WPA2PSK"
    EncrypType        ----->  "AES"
    RekeyMethod       ----->  "TIME"
    WPAPSK1           ----->  ""
    RegroupSupport    ----->  "1:1"
<% for _,tmp_dev in ipairs(devs) do %> <% local tmp_cfgs = mtkwifi.load_profile(tmp_dev.profile) if tmp_cfgs.ApCliEzEnable then %> <% dev = tmp_dev cfgs = tmp_cfgs else -- not support easy-setup yet. %> <% end %> <% end %>
<%=tmp_dev.devname%> checked="checked"<% end %> autocomplete="off"/> Enable checked="checked"<% end %> autocomplete="off"/> Disable

Unable to find "ApCliEzEnable" in its profile.

Current driver does not support MAN feature.

EzEnable & ApCliEzEnable
<% if dev and cfgs then %>
Easy Setup Configurations

M.A.N. provides a simple and efficient way of building extensible wireless network.

Group ID Method
Network ID EzOpenGroupID & ApCliEzOpenGroupID
Mixed WDS checked="checked"<% end %> autocomplete="off"/> Enable checked="checked"<% end %> autocomplete="off"/> Disable ApMWDS & ApCliMWDS
<% end %>
<%+footer%>