<%+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) if not mtkwifi.exists("/etc/wireless/mt7622/") then mt1 = "" elseif mtkwifi.exists("/etc/wireless/mt7603/") and mtkwifi.exists("/etc/wireless/mt7612/") then mt1 = "mt7612" else mt1 = "mt7603" 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">
Device Configurations - <%=devname%> <% local diff = mtkwifi.diff_profile(dev.profile) if next(diff) ~= nil then %> <% end %> <% if cfgs.WirelessMode then %> <% end %> <% if cfgs.Channel then %> <% end %> <% if cfgs.ACSCheckTime then %> <% end %> <% if cfgs.AutoChannelSkipList then %> <% end %> <% if cfgs.CountryCode then %> <% end %> <% if devname == "mt7615.1" then %> <% if cfgs.GreenAP then %> <% end %> <% end %> <% if cfgs.HT_GI then %> <% end %> <% if devname == "mt7615.2" then %> <% if cfgs.VHT_SGI then %> <% end %> <% end %> <% if devname == "mt7615.1" then %> <% if cfgs.HT_EXTCHA then %> <% end %> <% end %> <% if devname == "mt7615.2" then %> <% end %> <% if cfgs.HT_AMSDU then %> <% end %> <% if cfgs.HT_AutoBA then %> <% end %> <% if cfgs.HT_BADecline then %> <% end %> <% if cfgs.HT_STBC then %> <% end %> <% if devname == "mt7615.2" then %> <% if cfgs.VHT_STBC then %> <% end %> <% end %> <% if devname == "mt7615.1" then %> <% if cfgs.HT_LDPC then %> <% end %> <% end %> <% if devname == "mt7615.2" then %> <% if cfgs.VHT_LDPC then %> <% end %> <% end %> <% if devname == "mt7615.1" then %> <% if cfgs.HT_PROTECT then %> <% end %> <% end %> <% if cfgs.BeaconPeriod then %> <% end %> <% if cfgs.DtimPeriod then %> <% end %> <% if cfgs.FragThreshold then %> <% end %> <% if cfgs.RTSThreshold then %> <% end %> <% if cfgs.MacAddress then %> <% end %> <% if cfgs.SKUenable then %> <% end %> <% if cfgs.TxPreamble then %> <% end %> <% if cfgs.ShortSlot then %> <% end %> <% if cfgs.TxBurst then %> <% end %> <% if cfgs.VOW_Airtime_Fairness_En then %> <% end %> <% if cfgs.ITxBfEn then %> <% end %> <% if cfgs.ETxBfEnCond then %> <% if devname == "mt7615.2" then %> <% else %> <% end %> <% end %> <% if cfgs.MUTxRxEnable then %> <% end %>
Mode
Channel <% if cfgs.ApCliEnable == "1" then %> <% else %> <% end %>
Country Code
Country Region <% if devname == "mt7615.2" then %> <% if cfgs.CountryRegionABand then %> <% end %> <% else %> <% if cfgs.CountryRegion then %> <% end %> <% end %>
Operating Mode
HT Guard Interval
VHT Guard Interval
Channel BandWidth
A-MSDU checked="checked"<% end %>/> Enable checked="checked"<% end %>/> Disable
Auto Block ACK checked="checked"<% end %>/> Enable checked="checked"<% end %>/> Disable
Decline BA Request checked="checked"<% end %>/> Enable checked="checked"<% end %>/> Disable
HT STBC checked="checked"<% end %>/> Enable checked="checked"<% end %>/> Disable
VHT STBC checked="checked"<% end %>/> Enable checked="checked"<% end %>/> Disable
HT LDPC checked="checked"<% end %>/> Enable checked="checked"<% end %>/> Disable
VHT LDPC checked="checked"<% end %>/> Enable checked="checked"<% end %>/> Disable
HT Protection checked="checked"<% end %>/> Enable checked="checked"<% end %>/> Disable
Beacon Interval ms(range 20-999, default 100)
Data Beacon Rate (DTIM) ms(range 1-255, default 1)
Fragment Threshold (range 256-2346, default 2346)
RTS Threshold (range 256-2347, default 2347)
Session Idle Timeout s(range 0-321765887, default 0)
Change MAC-Address e.g. 01:23:45:67:89:AB
TX Power Low checked="checked"<% end %>/> Enable checked="checked"<% end %>/> Disable
Short Preamble checked="checked"<% end %>/> Enable checked="checked"<% end %>/> Disable
Short Slot checked="checked"<% end %>/> Enable checked="checked"<% end %>/> Disable
TX Burst checked="checked"<% end %>/> Enable checked="checked"<% end %>/> Disable
Airtime Fairness checked="checked"<% end %>/> Enable checked="checked"<% end %>/> Disable
Beamforming Implicit checked="checked"<% end %>/> Enable checked="checked"<% end %>/> Disable
Beamforming Explicit checked="checked"<% end %>/> Enable checked="checked"<% end %>/> Disable checked="checked"<% end %>/> Enable checked="checked"<% end %>/> Disable
'" />
" 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%>