<%+functionlist%> <% local cbi = require "luci.cbi" local tpl = require "luci.template" local ntm = require "luci.model.network" local uci = require "luci.model.uci".cursor() ntm.init(uci) local netId = luci.http.formvalue("netId") or netid local countryId = luci.http.formvalue("countryId") or "" local networkName = (ntm:get_wifinet(netId)):name() local opmode = luci.http.formvalue("tmpOpmode") or "" local from_wifi_join = from_wifi_join or "" -- SUPPORT_COMBINED_SSID_SETTING local radio = luci.util.trim(string.sub(netId,5,5)) local wifi0_opmode = luci.http.formvalue("wifi0_select_opmode") or "" local wifi1_opmode = luci.http.formvalue("wifi1_select_opmode") or "" local wifi2_opmode = luci.http.formvalue("wifi2_select_opmode") or "" local displayMode = luci.http.formvalue("displayMode") or "ori" -- ap, wds_ap, sta_ap, ori local checkbox2G = luci.http.formvalue("checkbox2G") or "" local checkbox5G = luci.http.formvalue("checkbox5G") or "" local checkbox52G = luci.http.formvalue("checkbox52G") or "" local guestEn = luci.http.formvalue("guestEn") or "" local device = luci.http.formvalue("device") or "" local MAX_WLAN_MAC_FILTER_NUMBER = uci:get('functionlist','vendorlist','MAX_WLAN_MAC_FILTER_NUMBER') or 32 local support_l2_whitelist = "" wifinet = ntm:get_wifinet(netId) sectionName = wifinet.sid if ( sectionName:match("_ssid_") or "" ) == "_ssid_" then support_l2_whitelist = "1" end local l2_isolation_config=io.open("/etc/config/l2_isolation","r") if l2_isolation_config ~= nil then io.close(l2_isolation_config) else support_l2_whitelist = "0" end local sntcd_unit = uci:get('sntcd','sntcd','rate_unit') or "Mbps" %> <% if uci:get('functionlist','functionlist','SUPPORT_AP_RP_SETUP_WIZARD') == "1" and uci:get("system","firmware","first_login") == "1" then %> <%+header%> <%else%> <% end %>

<%=translate("It can facilitate effective spectrum usage, enabling 5GHz-capable clients to associate with AP's 5GHz radio and offloading air utilization in 2.4GHz-band.")%>

<% if WLAN5G_2 == '1' then --[[ #### WLAN5G_2 START ### --]] %> <% else %> <% end %> <% if displayMode == "ap" or displayMode == "wds_ap" then %>

<%:Block the communication between the associated clients under the same WLAN.%>

<%:When this option is checked with specified VLAN ID in a SSID profile, the traffics from this SSID will be tagged with this VLAN ID upon entering LAN bridge.%>

<% end %>
<% if displayMode == "ap" then %> <% if WLAN5G_2 == '1' then --[[ #### WLAN5G_2 START ### --]] %> <% end --[[ #### WLAN5G_2 END ### --]] %> <% end %>
<%:SSID%>
<%:Band Steering%> <% if uci:get('functionlist','functionlist','SUPPORT_BANDSTEER_SELECT_LIST') == '1' then %> <% if WLAN5G_2 == '1' then --[[ #### WLAN5G_2 START ### --]] %> <%:dBm%> <% end --[[ #### WLAN5G_2 END ### --]] %>
5GHz RSSI  <% bandsteer_rssi=uci:get('wireless',networkName,'bandsteerrssi') or "25" %> <%:dBm%>

<% bandsteerpersent = uci:get("wireless",networkName,"bandsteerpersent") or "75" %> <%:Percent of clients on 5GHz radio %>%
<% else %> <%:Enable%> <%:Disable%> <% end %> <% if uci:get('functionlist','functionlist','SUPPORT_BANDSTEER_FORCE_5G') == '1' then --[[ #### SUPPORT_BANDSTEER_FORCE_5G START ### --]] %> <% end --[[ #### SUPPORT_BANDSTEER_FORCE_5G END ### --]] %>
 <%:NOTE%>: <% if WLAN5G_2 == '1' then --[[ #### WLAN5G_2 START ### --]] %> <%:In order for Band Steering function to work properly, 2.4GHz and 5GHz-1 and 5GHz-2 SSID and Security Settings must be the same.%> <% else --[[ #### WLAN5G_2 ELSE ### --]] %> <%:In order for Band Steering function to work properly, both 2.4GHz and 5GHz SSID and Security Settings must be the same.%> <% end --[[ #### WLAN5G_2 END ### --]] %>
<%:5GHz Load Balance%>  <%:NOTE%>: <%:The SSID on both the low-band and high-band should be set to the same name and encryption.%>
<% if uci:get('functionlist','vendorlist','WEB_GUI_VER') ~= nil and uci:get('functionlist','vendorlist','WEB_GUI_VER') > "1" then -----#### CHECK WEB_GUI_VER START ### if uci:get('functionlist','functionlist','SUPPORT_WPA3') == "1" then SUPPORT_ENCR = "WPA2-Personal, WPA2-Enterprise." else SUPPORT_ENCR = "WPA2-PSK, WPA2-Enterprise." end else SUPPORT_ENCR = "WPA2-PSK, WPA-PSK Mixed, WPA2-Enterprise, or WPA Mixed-Enterprise." end -----#### CHECK WEB_GUI_VER END ### %>

<%:Can be enabled to facilitate client roaming, across AP under the same ESS WLAN. This option is available, upon choosing:%> <%=SUPPORT_ENCR%>

<% if uci:get('functionlist','functionlist','SUPPORT_COMBINED_SSID_SETTING') == '1' then %> <% if uci:get('functionlist','functionlist','SUPPORT_WLAN5G') then %> <% end %> <% if uci:get('functionlist','functionlist','SUPPORT_WLAN5G_2') then %> <% end %> <% end %> " /> " />
<% if uci:get('functionlist','functionlist','SUPPORT_AP_RP_SETUP_WIZARD') == "1" and uci:get("system","firmware","first_login") == "1" then %>

<%:STEP 2: Enter Password (security key)%>

<% end %>
<%if uci:get('functionlist','functionlist','SUPPORT_AP_RP_SETUP_WIZARD') == "1" and ( displayMode == "sta_ap" or from_wifi_join == "1" ) then%> <% else %> <% end %>
<%if uci:get('functionlist','functionlist','SUPPORT_AP_RP_SETUP_WIZARD') == "1" and ( displayMode == "sta_ap" or from_wifi_join == "1" ) then%>
<% end %> <% if uci:get('functionlist','functionlist','SUPPORT_ALL_ENCRYPTION_HAS_RADIUS_SETTING') == '1' then -----#### SUPPORT_ALL_ENCRYPTION_HAS_RADIUS_SETTING START ### if (wnet:get("mode_display") == "ap") and not string.find(networkName, "guest") then local nasid = luci.util.repSpec(tostring(uci:get('wireless',networkName,'nasid') or "")) %> <% local nasid_enable_status="" local nasport_enable_status="" local nasip_enable_status="" if uci:get('wireless',networkName,'nasid_enable') == '1' then nasid_enable_status = "checked" end if uci:get('wireless',networkName,'nasport_enable') == '1' then nasport_enable_status = "checked" end if uci:get('wireless',networkName,'nasip_enable') == '1' then nasip_enable_status = "checked" end %>
<% if uci:get('functionlist','functionlist','SUPPORT_NAS_IP_ADDR') == '1' then %>
<%:Radius Settings%>
><%:NAS-ID%>
><%:NAS-PORT%> (0 ~ 65535)
><%:NAS-IP%>
<% end end end -----#### SUPPORT_ALL_ENCRYPTION_HAS_RADIUS_SETTING END ### %> <% if uci:get('functionlist','functionlist','SUPPORT_ALL_ENCRYPTION_HAS_RADIUS_ACCOUNTING') == '1' then -----#### SUPPORT_ALL_ENCRYPTION_HAS_RADIUS_ACCOUNTING START ### %>
<%:Radius Accounting%>
<% end -----#### SUPPORT_ALL_ENCRYPTION_HAS_RADIUS_ACCOUNTING END ### %> <% if uci:get('functionlist','functionlist','SUPPORT_FAST_ROAMING_SETTING') == '1' then %>
<%:Fast Roaming%>
<% end %>
<%:Wireless MAC Filter%>
<%:Wireless Traffic Shaping%>
<% if uci:get('functionlist','functionlist','SUPPORT_AP_RP_SETUP_WIZARD') == "1" and uci:get('system','firmware','first_login') == "1" then %> <% end %>  <%:Save current setting(s)%>