1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2<html xmlns="http://www.w3.org/1999/xhtml"> 3<html xmlns:v> 4<head> 5<meta http-equiv="X-UA-Compatible" content="IE=Edge"/> 6<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 7<meta HTTP-EQUIV="Pragma" CONTENT="no-cache"> 8<meta HTTP-EQUIV="Expires" CONTENT="-1"> 9<link rel="shortcut icon" href="images/favicon.png"> 10<link rel="icon" href="images/favicon.png"> 11 12<title><#Web_Title#> - <#menu5_1_1#></title> 13<link rel="stylesheet" type="text/css" href="index_style.css"> 14<link rel="stylesheet" type="text/css" href="form_style.css"> 15<link rel="stylesheet" type="text/css" href="usp_style.css"> 16<link href="other.css" rel="stylesheet" type="text/css"> 17<script type="text/javascript" src="/state.js"></script> 18<script type="text/javascript" src="/help.js"></script> 19<script type="text/javascript" src="/general.js"></script> 20<script type="text/javascript" src="/popup.js"></script> 21<script type="text/javascript" src="/md5.js"></script> 22<script type="text/javascript" src="/chanspec.js"></script> 23<script type="text/javascript" src="/validator.js"></script> 24<script type="text/javascript" src="/js/jquery.js"></script> 25<script type="text/javascript" src="/switcherplugin/jquery.iphone-switch.js"></script> 26<script> 27<% wl_get_parameter(); %> 28 29wl_channel_list_2g = <% channel_list_2g(); %>; 30wl_channel_list_5g = <% channel_list_5g(); %>; 31var cur_control_channel = [<% wl_control_channel(); %>][0]; 32var wl_unit = <% nvram_get("wl_unit"); %>; 33var country = ''; 34if(wl_unit == '1') 35 country = '<% nvram_get("wl1_country_code"); %>'; 36else 37 country = '<% nvram_get("wl0_country_code"); %>'; 38 39function initial(){ 40 show_menu(); 41 if(band5g_11ac_support){ 42 regen_5G_mode(document.form.wl_nmode_x, wl_unit) 43 } 44 45 genBWTable(wl_unit); 46 47 if((sw_mode == 2 || sw_mode == 4) && wl_unit == '<% nvram_get("wlc_band"); %>' && '<% nvram_get("wl_subunit"); %>' != '1'){ 48 _change_wl_unit(wl_unit); 49 } 50 51 //Change wireless mode help desc 52 if(band5g_support && band5g_11ac_support && document.form.wl_unit[1].selected == true){ //AC 5G 53 if(based_modelid == "RT-AC87U") 54 document.getElementById('wl_mode_desc').onclick=function(){return openHint(1, 6)};//#WLANConfig11b_x_Mode_itemdescAC2# 55 else if(based_modelid == "DSL-AC68U" || based_modelid == "RT-AC68U" || based_modelid == "RT-AC68U_V2" || based_modelid == "RT-AC69U" || 56 based_modelid == "RT-AC56U" || based_modelid == "RT-AC56S" || based_modelid == "RT-AC53U"){ 57 document.getElementById('wl_mode_desc').onclick=function(){return openHint(1, 7)};//#WLANConfig11b_x_Mode_itemdescAC3# 58 } 59 else 60 document.getElementById('wl_mode_desc').onclick=function(){return openHint(1, 5)};//#WLANConfig11b_x_Mode_itemdescAC# 61 } 62 else if(band5g_support && document.form.wl_unit[1].selected == true){ //N 5G 63 document.getElementById('wl_mode_desc').onclick=function(){return openHint(1, 4)}; 64 } 65 66 // special case after modifing GuestNetwork 67 if(wl_unit == "-1" && "<% nvram_get("wl_subunit"); %>" == "-1"){ 68 change_wl_unit(); 69 } 70 71 wl_auth_mode_change(1); 72 73 if(optimizeXbox_support){ 74 document.getElementById("wl_optimizexbox_span").style.display = ""; 75 document.form.wl_optimizexbox_ckb.checked = ('<% nvram_get("wl_optimizexbox"); %>' == 1) ? true : false; 76 } 77 78 document.form.wl_ssid.value = decodeURIComponent('<% nvram_char_to_ascii("", "wl_ssid"); %>'); 79 document.form.wl_wpa_psk.value = decodeURIComponent('<% nvram_char_to_ascii("", "wl_wpa_psk"); %>'); 80 document.form.wl_key1.value = decodeURIComponent('<% nvram_char_to_ascii("", "wl_key1"); %>'); 81 document.form.wl_key2.value = decodeURIComponent('<% nvram_char_to_ascii("", "wl_key2"); %>'); 82 document.form.wl_key3.value = decodeURIComponent('<% nvram_char_to_ascii("", "wl_key3"); %>'); 83 document.form.wl_key4.value = decodeURIComponent('<% nvram_char_to_ascii("", "wl_key4"); %>'); 84 document.form.wl_phrase_x.value = decodeURIComponent('<% nvram_char_to_ascii("", "wl_phrase_x"); %>'); 85 document.form.wl_channel.value = document.form.wl_channel_orig.value; 86 87 regen_band(document.form.wl_unit); 88 89 if(document.form.wl_unit[0].selected == true){ 90 document.getElementById("wl_gmode_checkbox").style.display = ""; 91 } 92 93 if(tmo_support) 94 tmo_wl_nmode(); 95 96 if(document.form.wl_nmode_x.value=='1'){ 97 document.form.wl_gmode_check.checked = false; 98 document.getElementById("wl_gmode_check").disabled = true; 99 } 100 else{ 101 document.form.wl_gmode_check.checked = true; 102 document.getElementById("wl_gmode_check").disabled = false; 103 } 104 105 if(document.form.wl_gmode_protection.value == "auto") 106 document.form.wl_gmode_check.checked = true; 107 else 108 document.form.wl_gmode_check.checked = false; 109 110 if(!band5g_support) 111 document.getElementById("wl_unit_field").style.display = "none"; 112 113 if(sw_mode == 2 || sw_mode == 4) 114 document.form.wl_subunit.value = (wl_unit == '<% nvram_get("wlc_band"); %>') ? 1 : -1; 115 116 change_wl_nmode(document.form.wl_nmode_x); 117 if(country == "EU"){ //display checkbox of DFS channel under 5GHz 118 if(based_modelid == "RT-AC68U" || based_modelid == "RT-AC68U_V2" || based_modelid == "DSL-AC68U" || based_modelid == "RT-AC69U" 119 || based_modelid == "RT-AC87U" 120 || based_modelid == "RT-AC3200" 121 || (based_modelid == "RT-AC66U" && wl1_dfs == "1") //0: A2 not support, 1: B0 support 122 || based_modelid == "RT-N66U"){ 123 if(document.form.wl_channel.value == '0' && wl_unit == '1'){ 124 document.getElementById('dfs_checkbox').style.display = ""; 125 check_DFS_support(document.form.acs_dfs_checkbox); 126 } 127 } 128 } 129 else if(country == "US" || country == "SG"){ //display checkbox of band1 channel under 5GHz 130 if(based_modelid == "RT-AC68U" || based_modelid == "RT-AC68U_V2" || based_modelid == "RT-AC69U" || based_modelid == "DSL-AC68U" 131 || based_modelid == "RT-AC56U" || based_modelid == "RT-AC56S" 132 || based_modelid == "RT-N18U" 133 || based_modelid == "RT-AC66U" 134 || based_modelid == "RT-N66U" 135 || based_modelid == "RT-AC53U"){ 136 if(document.form.wl_channel.value == '0' && wl_unit == '1') 137 document.getElementById('acs_band1_checkbox').style.display = ""; 138 } 139 } 140 141 if(smart_connect_support){ 142 var flag = '<% get_parameter("flag"); %>'; 143 var smart_connect_flag_t; 144 145 if(based_modelid == "RT-AC5300" || based_modelid == "RT-AC5300R") 146 inputCtrl(document.form.smart_connect_t, 1); 147 148 document.getElementById("smartcon_enable_field").style.display = ""; 149 150 if(flag == '') 151 smart_connect_flag_t = '<% nvram_get("smart_connect_x"); %>'; 152 else 153 smart_connect_flag_t = flag; 154 155 document.form.smart_connect_x.value = smart_connect_flag_t; 156 if(smart_connect_flag_t == 0) 157 document.form.smart_connect_t.value = 1; 158 else 159 document.form.smart_connect_t.value = smart_connect_flag_t; 160 161 enableSmartCon(smart_connect_flag_t); 162 } 163 if(history.pushState != undefined) history.pushState("", document.title, window.location.pathname); 164 165 if(document.form.wl_channel.value == '0'){ 166 document.getElementById("auto_channel").style.display = ""; 167 document.getElementById("auto_channel").innerHTML = "Current control channel: "+cur_control_channel[wl_unit]; 168 } 169} 170 171 172function change_wl_nmode(o){ 173 if(o.value=='1') /* Jerry5: to be verified */ 174 inputCtrl(document.form.wl_gmode_check, 0); 175 else 176 inputCtrl(document.form.wl_gmode_check, 1); 177 178 limit_auth_method(); 179 if(o.value == "3"){ 180 document.form.wl_wme.value = "on"; 181 } 182 183 184 wl_chanspec_list_change(); 185 genBWTable(wl_unit); 186} 187 188function genBWTable(_unit){ 189 cur = '<% nvram_get("wl_bw"); %>'; 190 var bws = new Array(); 191 var bwsDesc = new Array(); 192 193 if(document.form.wl_nmode_x.value == 2){ 194 bws = [1]; 195 bwsDesc = ["20 MHz"]; 196 if(tmo_support && _unit == 0){ // for 2.4G B/G Mixed 197 inputCtrl(document.form.wl_bw,0); 198 } 199 else{ 200 inputCtrl(document.form.wl_bw,1); 201 } 202 } 203 else if(_unit == 0){ 204 bws = [0, 1, 2]; 205 bwsDesc = ["20/40 MHz", "20 MHz", "40 MHz"]; 206 if(tmo_support){ 207 if(document.form.wl_nmode_x.value == 6 || document.form.wl_nmode_x.value == 5){ // B only or G only 208 inputCtrl(document.form.wl_bw,0); 209 } 210 else{ 211 inputCtrl(document.form.wl_bw,1); 212 } 213 } 214 } 215 else{ 216 if(tmo_support){ 217 if(document.form.wl_nmode_x.value == 7){ // A only 218 inputCtrl(document.form.wl_bw,0); 219 } 220 else{ 221 inputCtrl(document.form.wl_bw,1); 222 223 if(document.form.wl_nmode_x.value == 0 || document.form.wl_nmode_x.value == 3){ // Auto or AC only 224 bws = [0, 1, 2, 3]; 225 bwsDesc = ["20/40/80 MHz", "20 MHz", "40 MHz", "80 MHz"]; 226 } 227 else{ // N only or A/N Mixed 228 bws = [0, 1, 2]; 229 bwsDesc = ["20/40 MHz", "20 MHz", "40 MHz"]; 230 } 231 } 232 } 233 else{ 234 if (!band5g_11ac_support){ //for RT-N66U SDK 6.x 235 bws = [0, 1, 2]; 236 bwsDesc = ["20/40 MHz", "20 MHz", "40 MHz"]; 237 }else if (based_modelid == "RT-AC87U"){ 238 if(document.form.wl_nmode_x.value == 1){ 239 bws = [1, 2]; 240 bwsDesc = ["20 MHz", "40 MHz"]; 241 }else{ 242 bws = [1, 2, 3]; 243 bwsDesc = ["20 MHz", "40 MHz", "80 MHz"]; 244 } 245 } 246 else if((based_modelid == "DSL-AC68U" || based_modelid == "RT-AC68U" || based_modelid == "RT-AC68U_V2" || based_modelid == "RT-AC69U" || 247 based_modelid == "RT-AC56U" || based_modelid == "RT-AC56S" || 248 based_modelid == "RT-AC66U" || 249 based_modelid == "RT-AC3200" || 250 based_modelid == "RT-AC3100" || based_modelid == "RT-AC88U" || 251 based_modelid == "RT-AC5300" || based_modelid == "RT-AC5300R" || 252 based_modelid == "RT-AC53U") && document.form.wl_nmode_x.value == 1){ //N only 253 bws = [0, 1, 2]; 254 bwsDesc = ["20/40 MHz", "20 MHz", "40 MHz"]; 255 } 256 else{ 257 bws = [0, 1, 2, 3]; 258 bwsDesc = ["20/40/80 MHz", "20 MHz", "40 MHz", "80 MHz"]; 259 } 260 } 261 } 262 263 add_options_x2(document.form.wl_bw, bwsDesc, bws, cur); 264 wl_chanspec_list_change(); 265} 266 267function mbss_display_ctrl(){ 268 // generate options 269 if(multissid_support){ 270 for(var i=1; i<multissid_support+1; i++) 271 add_options_value(document.form.wl_subunit, i, '<% nvram_get("wl_subunit"); %>'); 272 } 273 else 274 document.getElementById("wl_subunit_field").style.display = "none"; 275 276 if(document.form.wl_subunit.value != 0){ 277 document.getElementById("wl_bw_field").style.display = "none"; 278 document.getElementById("wl_channel_field").style.display = "none"; 279 document.getElementById("wl_nctrlsb_field").style.display = "none"; 280 } 281 else 282 document.getElementById("wl_bss_enabled_field").style.display = "none"; 283} 284 285function add_options_value(o, arr, orig){ 286 if(orig == arr) 287 add_option(o, "mbss_"+arr, arr, 1); 288 else 289 add_option(o, "mbss_"+arr, arr, 0); 290} 291 292function detect_qtn_ready(){ 293 if(qtn_state_t != "1") 294 setTimeout('detect_qtn_ready();', 1000); 295 else 296 document.form.submit(); 297} 298 299function applyRule(){ 300 var auth_mode = document.form.wl_auth_mode_x.value; 301 302 if(document.form.wl_wpa_psk.value == "<#wireless_psk_fillin#>") 303 document.form.wl_wpa_psk.value = ""; 304 305 if(validForm()){ 306 if(document.form.wl_closed[0].checked && document.form.wps_enable.value == 1){ 307 if(!confirm("<#wireless_JS_Hide_SSID#>")){ 308 return false; 309 } 310 311 document.form.wps_enable.value = "0"; 312 } 313 314 if(document.form.wps_enable.value == 1){ 315 if(document.form.wps_dualband.value == "1" || document.form.wl_unit.value == document.form.wps_band.value){ //9: RT-AC87U dual band WPS 316 if(document.form.wl_auth_mode_x.value == "open" && document.form.wl_wep_x.value == "0"){ 317 if(!confirm("<#wireless_JS_WPS_open#>")) 318 return false; 319 } 320 321 if( document.form.wl_auth_mode_x.value == "shared" 322 || document.form.wl_auth_mode_x.value == "psk" || document.form.wl_auth_mode_x.value == "wpa" 323 || document.form.wl_auth_mode_x.value == "open" && (document.form.wl_wep_x.value == "1" || document.form.wl_wep_x.value == "2")){ //open wep case 324 if(!confirm("<#wireless_JS_disable_WPS#>")) 325 return false; 326 327 document.form.wps_enable.value = "0"; 328 } 329 } 330 else{ 331 if(document.form.wl_auth_mode_x.value == "open" && document.form.wl_wep_x.value == "0"){ 332 if(!confirm("<#wireless_JS_WPS_open#>")) 333 return false; 334 } 335 } 336 } 337 338 if(smart_connect_support && document.form.smart_connect_x.value != 0 339 && (based_modelid == "RT-AC5300" || based_modelid == "RT-AC5300R")) 340 document.form.smart_connect_x.value = document.form.smart_connect_t.value; 341 342 showLoading(); 343 if(based_modelid == "RT-AC87U" && wl_unit == "1") 344 stopFlag = '0'; 345 346 document.form.wps_config_state.value = "1"; 347 if((auth_mode == "shared" || auth_mode == "wpa" || auth_mode == "wpa2" || auth_mode == "wpawpa2" || auth_mode == "radius" 348 ||((auth_mode == "open") && !(document.form.wl_wep_x.value == "0"))) 349 && document.form.wps_mode.value == "enabled"){ 350 document.form.wps_mode.value = "disabled"; 351 } 352 353 if(auth_mode == "wpa" || auth_mode == "wpa2" || auth_mode == "wpawpa2" || auth_mode == "radius") 354 document.form.next_page.value = "/Advanced_WSecurity_Content.asp"; 355 356 if(document.form.wl_nmode_x.value == "1" && wl_unit == "0") 357 document.form.wl_gmode_protection.value = "off"; 358 359 if(sw_mode == 2 || sw_mode == 4) 360 document.form.action_wait.value = "5"; 361 362 if(document.form.wl_bw.value == 1) // 20MHz 363 document.form.wl_chanspec.value = document.form.wl_channel.value; 364 else{ 365 if(document.form.wl_channel.value == 0) // Auto case 366 document.form.wl_chanspec.value = document.form.wl_channel.value; 367 else{ 368 if(tmo_support && (document.form.wl_nmode_x.value == 6 || document.form.wl_nmode_x.value == 5 || document.form.wl_nmode_x.value == 2 || document.form.wl_nmode_x.value == 7)){ // B only, G only, B/G Mixed, A only 369 document.form.wl_chanspec.value = document.form.wl_channel.value; 370 } 371 else{ 372 document.form.wl_chanspec.value = document.form.wl_channel.value + document.form.wl_nctrlsb.value; 373 } 374 } 375 } 376 377 if(country == "EU" && based_modelid == "RT-AC87U" && wl_unit == '1'){ //Interlocking setting to enable 'wl1_80211h' in EU RT-AC87U under 5GHz 378 if(document.form.wl_channel.value == '0' && document.form.acs_dfs.value == '1') //Auto channel with DFS channel 379 document.form.wl1_80211h.value = "1"; 380 } 381 382 if(smart_connect_support && document.form.smart_connect_x.value == '1') 383 document.form.wl_unit.value = 0; 384 385 if (based_modelid == "RT-AC87U" && wl_unit == "1") 386 detect_qtn_ready(); 387 else 388 document.form.submit(); 389 } 390} 391 392function validForm(){ 393 var auth_mode = document.form.wl_auth_mode_x.value; 394 395 if(!validator.stringSSID(document.form.wl_ssid)) 396 return false; 397 398 if(!check_NOnly_to_GN()){ 399 autoFocus('wl_nmode_x'); 400 return false; 401 } 402 403 if(document.form.wl_wep_x.value != "0") 404 if(!validate_wlphrase('WLANConfig11b', 'wl_phrase_x', document.form.wl_phrase_x)) 405 return false; 406 if(auth_mode == "psk" || auth_mode == "psk2" || auth_mode == "pskpsk2"){ //2008.08.04 lock modified 407 if(is_KR_sku){ 408 if(!validator.psk_KR(document.form.wl_wpa_psk)) 409 return false; 410 } 411 else{ 412 if(!validator.psk(document.form.wl_wpa_psk)) 413 return false; 414 } 415 416 //confirm common string combination #JS_common_passwd# 417 var is_common_string = check_common_string(document.form.wl_wpa_psk.value, "wpa_key"); 418 if(is_common_string){ 419 if(confirm("<#JS_common_passwd#>")){ 420 document.form.wl_wpa_psk.focus(); 421 document.form.wl_wpa_psk.select(); 422 return false; 423 } 424 } 425 426 if(!validator.range(document.form.wl_wpa_gtk_rekey, 0, 2592000)) 427 return false; 428 } 429 else if(auth_mode == "wpa" || auth_mode == "wpa2" || auth_mode == "wpawpa2"){ 430 if(!validator.range(document.form.wl_wpa_gtk_rekey, 0, 2592000)) 431 return false; 432 } 433 else{ 434 var cur_wep_key = eval('document.form.wl_key'+document.form.wl_key.value); 435 if(auth_mode != "radius" && !validator.wlKey(cur_wep_key)) 436 return false; 437 } 438 return true; 439} 440 441function done_validating(action){ 442 refreshpage(); 443} 444 445function validate_wlphrase(s, v, obj){ 446 if(!validator.string(obj)){ 447 is_wlphrase(s, v, obj); 448 return false; 449 } 450 return true; 451} 452 453function disableAdvFn(){ 454 for(var i=18; i>=3; i--) 455 document.getElementById("WLgeneral").deleteRow(i); 456} 457 458function _change_wl_unit(val){ 459 if(sw_mode == 2 || sw_mode == 4) 460 document.form.wl_subunit.value = (val == '<% nvram_get("wlc_band"); %>') ? 1 : -1; 461 462 if(smart_connect_support){ 463 if(document.form.smart_connect_x.value != 0) 464 document.form.smart_connect_x.value = document.form.smart_connect_t.value; 465 var smart_connect_flag = document.form.smart_connect_x.value; 466 document.form.current_page.value = "Advanced_Wireless_Content.asp?flag=" + smart_connect_flag; 467 } 468 change_wl_unit(); 469} 470 471function _change_smart_connect(val){ 472 current_band = wl_unit; 473 document.getElementById("wl_unit_field").style.display = ""; 474 var band_desc = new Array(); 475 var band_value = new Array(); 476 if(val == 0){ 477 band_value = [0, 1, 2]; 478 band_desc = ['2.4GHz', '5GHz-1', '5GHz-2']; 479 }else if(val == 1){ 480 document.getElementById("wl_unit_field").style.display = "none"; 481 band_value = [0]; 482 band_desc = ['2.4GHz, 5GHz-1 and 5GHz-2']; 483 }else if(val == 2){ 484 band_value = [0, 1]; 485 band_desc = ['2.4GHz', '5GHz-1 and 5GHz-2']; 486 } 487 add_options_x2(document.form.wl_unit, band_desc, band_value, current_band); 488} 489 490function checkBW(){ 491 if(wifilogo_support) 492 return false; 493 494 if(document.form.wl_channel.value != 0 && document.form.wl_bw.value == 0){ //Auto but set specific channel 495 if(document.form.wl_channel.value == "165") // channel 165 only for 20MHz 496 document.form.wl_bw.selectedIndex = 1; 497 else if(wl_unit == 0) //2.4GHz for 40MHz 498 document.form.wl_bw.selectedIndex = 2; 499 else{ //5GHz else for 80MHz 500 if(band5g_11ac_support) 501 document.form.wl_bw.selectedIndex = 3; 502 else 503 document.form.wl_bw.selectedIndex = 2; 504 505 if (wl_channel_list_5g.getIndexByValue("165") >= 0 ) // rm option 165 if not Auto 506 document.form.wl_channel.remove(wl_channel_list_5g.getIndexByValue("165")); 507 } 508 } 509} 510 511function check_NOnly_to_GN(){ 512 //var gn_array_2g = [["1", "ASUS_Guest1", "psk", "tkip", "1234567890", "0", "1", "", "", "", "", "0", "off", "0"], ["1", "ASUS_Guest2", "shared", "aes", "", "1", "1", "55555", "", "", "", "0", "off", "0"], ["1", "ASUS_Guest3", "open", "aes", "", "2", "4", "", "", "", "1234567890123", "0", "off", "0"]]; 513 // Y/N mssid auth asyn wpa_psk wl_wep_x wl_key k1 k2 k3 k4 514 //var gn_array_5g = [["1", "ASUS_5G_Guest1", "open", "aes", "", "0", "1", "", "", "", "", "0", "off", "0"], ["0", "ASUS_5G_Guest2", "open", "aes", "", "0", "1", "", "", "", "", "0", "off", ""], ["0", "ASUS_5G_Guest3", "open", "aes", "", "0", "1", "", "", "", "", "0", "off", ""]]; 515 // Viz add 2012.11.05 restriction for 'N Only' mode ( start 516 517 if(document.form.wl_nmode_x.value == "0" || document.form.wl_nmode_x.value == "1"){ 518 if(wl_unit == "1"){ //5G 519 for(var i=0;i<gn_array_5g.length;i++){ 520 if(gn_array_5g[i][0] == "1" && (gn_array_5g[i][3] == "tkip" || gn_array_5g[i][5] == "1" || gn_array_5g[i][5] == "2")){ 521 if(document.form.wl_nmode_x.value == "0") 522 document.getElementById('wl_NOnly_note').innerHTML = '<br>* <#WLANConfig11n_Auto_note#>'; 523 else{ 524 if(band5g_11ac_support) 525 document.getElementById('wl_NOnly_note').innerHTML = '<br>* <#WLANConfig11n_NAC_note#>'; 526 else 527 document.getElementById('wl_NOnly_note').innerHTML = '<br>* <#WLANConfig11n_NOnly_note#>'; 528 } 529 530 document.getElementById('wl_NOnly_note').style.display = ""; 531 return false; 532 } 533 } 534 } 535 else if(wl_unit == "0"){ //2.4G 536 for(var i=0;i<gn_array_2g.length;i++){ 537 if(gn_array_2g[i][0] == "1" && (gn_array_2g[i][3] == "tkip" || gn_array_2g[i][5] == "1" || gn_array_2g[i][5] == "2")){ 538 if(document.form.wl_nmode_x.value == "0") 539 document.getElementById('wl_NOnly_note').innerHTML = '<br>* <#WLANConfig11n_Auto_note#>'; 540 else 541 document.getElementById('wl_NOnly_note').innerHTML = '<br>* <#WLANConfig11n_NOnly_note#>'; 542 543 document.getElementById('wl_NOnly_note').style.display = ""; 544 return false; 545 } 546 } 547 } 548 } 549 550 document.getElementById('wl_NOnly_note').style.display = "none"; 551 return true; 552// Viz add 2012.11.05 restriction for 'N Only' mode ) end 553} 554 555function regen_5G_mode(obj,flag){ //please sync to initial() : //Change wireless mode help desc 556 free_options(obj); 557 if(flag == 1 || flag == 2){ 558 if(based_modelid == "RT-AC87U"){ 559 obj.options[0] = new Option("<#Auto#>", 0); 560 obj.options[1] = new Option("N only", 1); 561 } 562 else{ 563 obj.options[0] = new Option("<#Auto#>", 0); 564 obj.options[1] = new Option("N only", 1); 565 obj.options[2] = new Option("N/AC mixed", 8); 566 obj.options[3] = new Option("Legacy", 2); 567 } 568 }else{ 569 obj.options[0] = new Option("<#Auto#>", 0); 570 obj.options[1] = new Option("N only", 1); 571 obj.options[2] = new Option("Legacy", 2); 572 } 573 obj.value = '<% nvram_get("wl_nmode_x"); %>'; 574} 575 576function check_DFS_support(obj){ 577 if(obj.checked) 578 document.form.acs_dfs.value = 1; 579 else 580 document.form.acs_dfs.value = 0; 581} 582 583function check_acs_band1_support(obj){ 584 if(obj.checked) 585 document.form.acs_band1.value = 1; 586 else 587 document.form.acs_band1.value = 0; 588} 589 590function tmo_wl_nmode(){ 591 var tmo2nmode = [["0", "<#Auto#>"],["6", "B Only"],["5", "G Only"],["1", "N Only"],["2", "B/G Mixed"],["4", "G/N Mixed"]]; 592 var tmo5nmode = [["0", "<#Auto#>"],["7", "A Only"],["1", "N Only"],["3", "AC Only"],["4", "A/N Mixed"]]; 593 free_options(document.form.wl_nmode_x); 594 if(wl_unit == "0"){ //2.4GHz 595 for(var i = 0; i < tmo2nmode.length; i++){ 596 add_option(document.form.wl_nmode_x,tmo2nmode[i][1], tmo2nmode[i][0],(document.form.wl_nmode_x_orig.value == tmo2nmode[i][0])); 597 } 598 } 599 else{ //5GHz 600 for(var i = 0; i < tmo5nmode.length; i++){ 601 add_option(document.form.wl_nmode_x,tmo5nmode[i][1], tmo5nmode[i][0],(document.form.wl_nmode_x_orig.value == tmo5nmode[i][0])); 602 } 603 } 604} 605 606function enableSmartCon(val){ 607 document.form.smart_connect_x.value = val; 608 609 if(based_modelid=="RT-AC5300" || based_modelid=="RT-AC5300R"){ 610 if(val == 0){ 611 document.getElementById("smart_connect_field").style.display = "none"; 612 document.getElementById("smartcon_rule_link").style.display = "none"; 613 }else if(val > 0){ 614 document.getElementById("smart_connect_field").style.display = ""; 615 document.getElementById("smartcon_rule_link").style.display = "table-cell"; 616 } 617 } 618 619 if(val == 0 || (val == 2 && wl_unit == 0)){ 620 document.getElementById("wl_unit_field").style.display = ""; 621 document.form.wl_nmode_x.disabled = ""; 622 document.getElementById("wl_optimizexbox_span").style.display = ""; 623 if(document.form.wl_unit[0].selected == true){ 624 document.getElementById("wl_gmode_checkbox").style.display = ""; 625 } 626 if(band5g_11ac_support){ 627 regen_5G_mode(document.form.wl_nmode_x, wl_unit) 628 }else{ 629 free_options(document.form.wl_nmode_x); 630 document.form.wl_nmode_x.options[0] = new Option("<#Auto#>", 0); 631 document.form.wl_nmode_x.options[1] = new Option("N only", 1); 632 document.form.wl_nmode_x.options[2] = new Option("Legacy", 2); 633 } 634 change_wl_nmode(document.form.wl_nmode_x); 635 }else{ 636 document.getElementById("wl_unit_field").style.display = "none"; 637 regen_auto_option(document.form.wl_nmode_x); 638 document.getElementById("wl_optimizexbox_span").style.display = "none"; 639 document.getElementById("wl_gmode_checkbox").style.display = "none"; 640 regen_auto_option(document.form.wl_bw); 641 regen_auto_option(document.form.wl_channel); 642 regen_auto_option(document.form.wl_nctrlsb); 643 } 644 645 if(based_modelid=="RT-AC5300" || based_modelid=="RT-AC5300R") 646 _change_smart_connect(val); 647} 648 649function regen_auto_option(obj){ 650 free_options(obj); 651 obj.options[0] = new Option("<#Auto#>", 0); 652 obj.selectedIndex = 0; 653} 654</script> 655</head> 656 657<body onload="initial();" onunLoad="return unload_body();"> 658<div id="TopBanner"></div> 659<div id="Loading" class="popup_bg"></div> 660<div id="hiddenMask" class="popup_bg"> 661 <table cellpadding="4" cellspacing="0" id="dr_sweet_advise" class="dr_sweet_advise" align="center"> 662 <tr> 663 <td> 664 <div class="drword" id="drword"><#Main_alert_proceeding_desc4#> <#Main_alert_proceeding_desc1#>... 665 <br/> 666 <div id="disconnect_hint" style="display:none;"><#Main_alert_proceeding_desc2#></div> 667 <br/> 668 </div> 669 <div id="wireless_client_detect" style="margin-left:10px;position:absolute;display:none;width:400px;"> 670 <img src="images/loading.gif"> 671 <div style="margin:-55px 0 0 75px;"><#QKSet_Internet_Setup_fail_method1#></div> 672 </div> 673 <div class="drImg"><img src="images/alertImg.png"></div> 674 <div style="height:100px; "></div> 675 </td> 676 </tr> 677 </table> 678<!--[if lte IE 6.5]><iframe class="hackiframe"></iframe><![endif]--> 679</div> 680 681<iframe name="hidden_frame" id="hidden_frame" width="0" height="0" frameborder="0"></iframe> 682<form method="post" name="autochannelform" action="/start_apply2.htm" target="hidden_frame"> 683<input type="hidden" name="productid" value="<% nvram_get("productid"); %>"> 684<input type="hidden" name="current_page" value="Advanced_Wireless_Content.asp"> 685<input type="hidden" name="next_page" value="Advanced_Wireless_Content.asp"> 686<input type="hidden" name="modified" value="0"> 687<input type="hidden" name="action_mode" value="apply_new"> 688<input type="hidden" name="action_script" value="restart_wireless"> 689<input type="hidden" name="action_wait" value="10"> 690<input type="hidden" name="preferred_lang" id="preferred_lang" value="<% nvram_get("preferred_lang"); %>"> 691<input type="hidden" name="wl_country_code" value="<% nvram_get("wl0_country_code"); %>" disabled> 692<input type="hidden" name="firmver" value="<% nvram_get("firmver"); %>"> 693<input type="hidden" name="wl_chanspec" value=""> 694<input type="hidden" name="wl_unit" value=""> 695<input type="hidden" name="force_change" value="<% nvram_get("force_change"); %>"> 696</form> 697<form method="post" name="form" action="/start_apply2.htm" target="hidden_frame"> 698<input type="hidden" name="productid" value="<% nvram_get("productid"); %>"> 699<input type="hidden" name="current_page" value="Advanced_Wireless_Content.asp"> 700<input type="hidden" name="next_page" value="Advanced_Wireless_Content.asp"> 701<input type="hidden" name="modified" value="0"> 702<input type="hidden" name="action_mode" value="apply_new"> 703<input type="hidden" name="action_script" value="restart_wireless"> 704<input type="hidden" name="action_wait" value="10"> 705<input type="hidden" name="preferred_lang" id="preferred_lang" value="<% nvram_get("preferred_lang"); %>"> 706<input type="hidden" name="wl_country_code" value="<% nvram_get("wl0_country_code"); %>" disabled> 707<input type="hidden" name="firmver" value="<% nvram_get("firmver"); %>"> 708<input type="hidden" name="wps_mode" value="<% nvram_get("wps_mode"); %>"> 709<input type="hidden" name="wps_config_state" value="<% nvram_get("wps_config_state"); %>"> 710<input type="hidden" name="wl_ssid_org" value="<% nvram_char_to_ascii("WLANConfig11b", "wl_ssid"); %>"> 711<input type="hidden" name="wlc_ure_ssid_org" value="<% nvram_char_to_ascii("WLANConfig11b", "wlc_ure_ssid"); %>" disabled> 712<input type="hidden" name="wl_wpa_psk_org" value="<% nvram_char_to_ascii("WLANConfig11b", "wl_wpa_psk"); %>"> 713<input type="hidden" name="wl_key1_org" value="<% nvram_char_to_ascii("WLANConfig11b", "wl_key1"); %>"> 714<input type="hidden" name="wl_key2_org" value="<% nvram_char_to_ascii("WLANConfig11b", "wl_key2"); %>"> 715<input type="hidden" name="wl_key3_org" value="<% nvram_char_to_ascii("WLANConfig11b", "wl_key3"); %>"> 716<input type="hidden" name="wl_key4_org" value="<% nvram_char_to_ascii("WLANConfig11b", "wl_key4"); %>"> 717<input type="hidden" name="wl_phrase_x_org" value="<% nvram_char_to_ascii("WLANConfig11b", "wl_phrase_x"); %>"> 718<input type="hidden" maxlength="15" size="15" name="x_RegulatoryDomain" value="<% nvram_get("x_RegulatoryDomain"); %>" readonly="1"> 719<input type="hidden" name="wl_gmode_protection" value="<% nvram_get("wl_gmode_protection"); %>"> 720<input type="hidden" name="wl_wme" value="<% nvram_get("wl_wme"); %>"> 721<input type="hidden" name="wl_mode_x" value="<% nvram_get("wl_mode_x"); %>"> 722<input type="hidden" name="wl_nmode" value="<% nvram_get("wl_nmode"); %>"> 723<input type="hidden" name="wl_nmode_x_orig" value="<% nvram_get("wl_nmode_x"); %>"> 724<input type="hidden" name="wl_nctrlsb_old" value="<% nvram_get("wl_nctrlsb"); %>"> 725<input type="hidden" name="wl_key_type" value='<% nvram_get("wl_key_type"); %>'> <!--Lock Add 2009.03.10 for ralink platform--> 726<input type="hidden" name="wl_channel_orig" value='<% nvram_get("wl_channel"); %>'> 727<input type="hidden" name="wl_chanspec" value=''> 728<input type="hidden" name="wl_wep_x_orig" value='<% nvram_get("wl_wep_x"); %>'> 729<input type="hidden" name="wl_optimizexbox" value='<% nvram_get("wl_optimizexbox"); %>'> 730<input type="hidden" name="wl_subunit" value='-1'> 731<input type="hidden" name="acs_dfs" value='<% nvram_get("acs_dfs"); %>'> 732<input type="hidden" name="acs_band1" value='<% nvram_get("acs_band1"); %>'> 733<input type="hidden" name="wps_enable" value="<% nvram_get("wps_enable"); %>"> 734<input type="hidden" name="wps_band" value="<% nvram_get("wps_band"); %>"> 735<input type="hidden" name="wps_dualband" value="<% nvram_get("wps_dualband"); %>"> 736<input type="hidden" name="smart_connect_x" value="<% nvram_get("smart_connect_x"); %>"> 737<input type="hidden" name="wl1_80211h" value="<% nvram_get("wl1_80211h"); %>" > 738<input type="hidden" name="w_Setting" value="1"> 739<table class="content" align="center" cellpadding="0" cellspacing="0"> 740 <tr> 741 <td width="17"> </td> 742 743 <!--=====Beginning of Main Menu=====--> 744 <td valign="top" width="202"> 745 <div id="mainMenu"></div> 746 <div id="subMenu"></div> 747 </td> 748 749 <td valign="top"> 750 <div id="tabMenu" class="submenuBlock"></div> 751 752<!--===================================Beginning of Main Content===========================================--> 753<table width="98%" border="0" align="left" cellpadding="0" cellspacing="0"> 754 <tr> 755 <td align="left" valign="top" > 756 <table width="760px" border="0" cellpadding="4" cellspacing="0" class="FormTitle" id="FormTitle"> 757 <tbody> 758 <tr> 759 <td bgcolor="#4D595D" valign="top"> 760 <div> </div> 761 <div class="formfonttitle"><#menu5_1#> - <#menu5_1_1#></div> 762 <div style="margin-left:5px;margin-top:10px;margin-bottom:10px"><img src="/images/New_ui/export/line_export.png"></div> 763 <div class="formfontdesc"><#adv_wl_desc#></div> 764 765 <table width="99%" border="1" align="center" cellpadding="4" cellspacing="0" id="WLgeneral" class="FormTable"> 766 767 <tr id="smartcon_enable_field" style="display:none;"> 768 <th width="30%"><a class="hintstyle" href="javascript:void(0);" onClick="openHint(13,1);"><#smart_connect_enable#></a></th> 769 <td> 770 <div id="smartcon_enable_block" style="display:none;"> 771 <span style="color:#FFF;" id="smart_connect_enable_word"> </span> 772 <input type="button" name="enableSmartConbtn" id="enableSmartConbtn" value="" class="button_gen" onClick="enableSmartCon();"> 773 <br> 774 </div> 775 776 <div id="radio_smartcon_enable" class="left" style="width: 94px;display:table-cell;"></div><div id="smartcon_rule_link" style="display:table-cell; vertical-align: middle;"><a href="Advanced_Smart_Connect.asp" style="font-family:Lucida Console;color:#FC0;text-decoration:underline;cursor:pointer;">Smart Connect Rule</a></div> 777 <div class="clear"></div> 778 <script type="text/javascript"> 779 var flag = '<% get_parameter("flag"); %>'; 780 var smart_connect_flag_t; 781 782 if(flag == '') 783 smart_connect_flag_t = '<% nvram_get("smart_connect_x"); %>'; 784 else 785 smart_connect_flag_t = flag; 786 787 $('#radio_smartcon_enable').iphoneSwitch( smart_connect_flag_t > 0, 788 function() { 789 if(based_modelid != "RT-AC5300" && based_modelid != "RT-AC5300R") 790 enableSmartCon(1); 791 else{ 792 if(document.form.smart_connect_t.value) 793 enableSmartCon(document.form.smart_connect_t.value); 794 else 795 enableSmartCon(smart_connect_flag_t); 796 797 } 798 }, 799 function() { 800 enableSmartCon(0); 801 } 802 ); 803 </script> 804 </td> 805 </tr> 806 <tr id="smart_connect_field" style="display:none;"> 807 <th>Smart Connect</th> 808 <td id="smart_connect_switch"> 809 <select name="smart_connect_t" class="input_option" onChange="enableSmartCon(this.value);"> 810 <option class="content_input_fd" value="1" >Tri-band Smart Connect (2.4GHz, 5GHz-1 and 5GHz-2)</optio> 811 <option class="content_input_fd" value="2">5GHz Smart Connect (5GHz-1 and 5GHz-2)</option> 812 </select> 813 </td> 814 </tr> 815 <tr id="wl_unit_field"> 816 <th><#Interface#></th> 817 <td> 818 <select name="wl_unit" class="input_option" onChange="_change_wl_unit(this.value);"> 819 <option class="content_input_fd" value="0" <% nvram_match("wl_unit", "0","selected"); %>>2.4GHz</option> 820 <option class="content_input_fd" value="1" <% nvram_match("wl_unit", "1","selected"); %>>5GHz</option> 821 </select> 822 </td> 823 </tr> 824 825 <!--tr id="wl_subunit_field" style="display:none"> 826 <th>Multiple SSID index</th> 827 <td> 828 <select name="wl_subunit" class="input_option" onChange="change_wl_unit();"> 829 <option class="content_input_fd" value="0" <% nvram_match("wl_subunit", "0","selected"); %>>Primary</option> 830 </select> 831 <select id="wl_bss_enabled_field" name="wl_bss_enabled" class="input_option" onChange="mbss_switch();"> 832 <option class="content_input_fd" value="0" <% nvram_match("wl_bss_enabled", "0","selected"); %>><#WLANConfig11b_WirelessCtrl_buttonname#></option> 833 <option class="content_input_fd" value="1" <% nvram_match("wl_bss_enabled", "1","selected"); %>><#WLANConfig11b_WirelessCtrl_button1name#></option> 834 </select> 835 </td> 836 </tr--> 837 838 <tr> 839 <th><a class="hintstyle" href="javascript:void(0);" onClick="openHint(0, 1);"><#QIS_finish_wireless_item1#></a></th> 840 <td> 841 <input type="text" maxlength="32" class="input_32_table" id="wl_ssid" name="wl_ssid" value="<% nvram_get("wl_ssid"); %>" onkeypress="return validator.isString(this, event)" autocorrect="off" autocapitalize="off"> 842 </td> 843 </tr> 844 845 <tr> 846 <th><a class="hintstyle" href="javascript:void(0);" onClick="openHint(0, 2);"><#WLANConfig11b_x_BlockBCSSID_itemname#></a></th> 847 <td> 848 <input type="radio" value="1" name="wl_closed" class="input" <% nvram_match("wl_closed", "1", "checked"); %>><#checkbox_Yes#> 849 <input type="radio" value="0" name="wl_closed" class="input" <% nvram_match("wl_closed", "0", "checked"); %>><#checkbox_No#> 850 </td> 851 </tr> 852 853 <tr> 854 <th><a id="wl_mode_desc" class="hintstyle" href="javascript:void(0);" onClick="openHint(0, 4);"><#WLANConfig11b_x_Mode_itemname#></a></th> 855 <td> 856 <select name="wl_nmode_x" class="input_option" onChange="change_wl_nmode(this);check_NOnly_to_GN();"> 857 <option value="0" <% nvram_match("wl_nmode_x", "0","selected"); %>><#Auto#></option> 858 <option value="1" <% nvram_match("wl_nmode_x", "1","selected"); %>>N Only</option> 859 <option value="2" <% nvram_match("wl_nmode_x", "2","selected"); %>>Legacy</option> 860 </select> 861 <span id="wl_optimizexbox_span" style="display:none"><input type="checkbox" name="wl_optimizexbox_ckb" id="wl_optimizexbox_ckb" value="<% nvram_get("wl_optimizexbox"); %>" onclick="document.form.wl_optimizexbox.value=(this.checked==true)?1:0;"> <#WLANConfig11b_x_Mode_xbox#></input></span> 862 <span id="wl_gmode_checkbox" style="display:none;"><input type="checkbox" name="wl_gmode_check" id="wl_gmode_check" value="" onClick="wl_gmode_protection_check();"> <#WLANConfig11b_x_Mode_protectbg#></input></span> 863 <span id="wl_nmode_x_hint" style="display:none;"><br><#WLANConfig11n_automode_limition_hint#><br></span> 864 <span id="wl_NOnly_note" style="display:none;"></span> 865 <!-- [N + AC] is not compatible with current guest network authentication method(TKIP or WEP), Please go to <a id="gn_link" href="/Guest_network.asp?af=wl_NOnly_note" target="_blank" style="color:#FFCC00;font-family:Lucida Console;text-decoration:underline;">guest network</a> and change the authentication method. --> 866 </td> 867 </tr> 868 <tr id="wl_bw_field"> 869 <th><#WLANConfig11b_ChannelBW_itemname#></th> 870 <td> 871 <select name="wl_bw" class="input_option" onChange="wl_chanspec_list_change();"> 872 <option class="content_input_fd" value="0" <% nvram_match("wl_bw", "0","selected"); %>>20 MHz</option> 873 <option class="content_input_fd" value="1" <% nvram_match("wl_bw", "1","selected"); %>>20/40 MHz</option> 874 <option class="content_input_fd" value="2" <% nvram_match("wl_bw", "2","selected"); %>>40 MHz</option> 875 </select> 876 </td> 877 </tr> 878 <!-- ac channel --> 879 <tr> 880 <th> 881 <a id="wl_channel_select" class="hintstyle" href="javascript:void(0);" onClick="openHint(0, 3);"><#WLANConfig11b_Channel_itemname#></a> 882 </th> 883 <td> 884 <select name="wl_channel" class="input_option" onChange="change_channel(this);"></select> 885 <span id="auto_channel" style="display:none;margin-left:10px;"></span><br> 886 <span id="dfs_checkbox" style="display:none"><input type="checkbox" onClick="check_DFS_support(this);" name="acs_dfs_checkbox" <% nvram_match("acs_dfs", "1", "checked"); %>><#WLANConfig11b_EChannel_dfs#></input></span> 887 <span id="acs_band1_checkbox" style="display:none;"><input type="checkbox" onClick="check_acs_band1_support(this);" <% nvram_match("acs_band1", "1", "checked"); %>><#WLANConfig11b_EChannel_band1#></input></span> 888 </td> 889 </tr> 890 <!-- end --> 891 <tr id="wl_nctrlsb_field"> 892 <th><a class="hintstyle" href="javascript:void(0);" onClick="openHint(0, 15);"><#WLANConfig11b_EChannel_itemname#></a></th> 893 <td> 894 <select name="wl_nctrlsb" class="input_option"> 895 <option value=""></option> 896 <option value=""></option> 897 </select> 898 </td> 899 </tr> 900 901 <tr> 902 <th><a class="hintstyle" href="javascript:void(0);" onClick="openHint(0, 5);"><#WLANConfig11b_AuthenticationMethod_itemname#></a></th> 903 <td> 904 <select name="wl_auth_mode_x" class="input_option" onChange="authentication_method_change(this);"> 905 <option value="open" <% nvram_match("wl_auth_mode_x", "open", "selected"); %>>Open System</option> 906 <option value="shared" <% nvram_match("wl_auth_mode_x", "shared", "selected"); %>>Shared Key</option> 907 <option value="psk" <% nvram_match("wl_auth_mode_x", "psk", "selected"); %>>WPA-Personal</option> 908 <option value="psk2" <% nvram_match("wl_auth_mode_x", "psk2", "selected"); %>>WPA2-Personal</option> 909 <option value="pskpsk2" <% nvram_match("wl_auth_mode_x", "pskpsk2","selected"); %>>WPA-Auto-Personal</option> 910 <option value="wpa" <% nvram_match("wl_auth_mode_x", "wpa", "selected"); %>>WPA-Enterprise</option> 911 <option value="wpa2" <% nvram_match("wl_auth_mode_x", "wpa2", "selected"); %>>WPA2-Enterprise</option> 912 <option value="wpawpa2" <% nvram_match("wl_auth_mode_x", "wpawpa2","selected"); %>>WPA-Auto-Enterprise</option> 913 <option value="radius" <% nvram_match("wl_auth_mode_x", "radius", "selected"); %>>Radius with 802.1x</option> 914 </select> 915 </td> 916 </tr> 917 918 <tr> 919 <th><a class="hintstyle" href="javascript:void(0);" onClick="openHint(0, 6);"><#WLANConfig11b_WPAType_itemname#></a></th> 920 <td> 921 <select name="wl_crypto" class="input_option"> 922 <option value="aes" <% nvram_match("wl_crypto", "aes", "selected"); %>>AES</option> 923 <option value="tkip+aes" <% nvram_match("wl_crypto", "tkip+aes", "selected"); %>>TKIP+AES</option> 924 </select> 925 </td> 926 </tr> 927 928 <tr> 929 <th><a class="hintstyle" href="javascript:void(0);" onClick="openHint(0, 7);"><#WLANConfig11b_x_PSKKey_itemname#></a></th> 930 <td> 931 <input type="text" name="wl_wpa_psk" maxlength="64" class="input_32_table" value="<% nvram_get("wl_wpa_psk"); %>" autocorrect="off" autocapitalize="off"> 932 </td> 933 </tr> 934 935 <tr> 936 <th><a class="hintstyle" href="javascript:void(0);" onClick="openHint(0, 9);"><#WLANConfig11b_WEPType_itemname#></a></th> 937 <td> 938 <select name="wl_wep_x" class="input_option" onChange="wep_encryption_change(this);"> 939 <option value="0" <% nvram_match("wl_wep_x", "0", "selected"); %>><#wl_securitylevel_0#></option> 940 <option value="1" <% nvram_match("wl_wep_x", "1", "selected"); %>>WEP-64bits</option> 941 <option value="2" <% nvram_match("wl_wep_x", "2", "selected"); %>>WEP-128bits</option> 942 </select> 943 <span name="key_des"></span> 944 </td> 945 </tr> 946 947 <tr> 948 <th><a class="hintstyle" href="javascript:void(0);" onClick="openHint(0, 10);"><#WLANConfig11b_WEPDefaultKey_itemname#></a></th> 949 <td> 950 <select name="wl_key" class="input_option" onChange="wep_key_index_change(this);"> 951 <option value="1" <% nvram_match("wl_key", "1","selected"); %>>1</option> 952 <option value="2" <% nvram_match("wl_key", "2","selected"); %>>2</option> 953 <option value="3" <% nvram_match("wl_key", "3","selected"); %>>3</option> 954 <option value="4" <% nvram_match("wl_key", "4","selected"); %>>4</option> 955 </select> 956 </td> 957 </tr> 958 959 <tr> 960 <th><a class="hintstyle" href="javascript:void(0);" onClick="openHint(0, 18);"><#WLANConfig11b_WEPKey1_itemname#></th> 961 <td><input type="text" name="wl_key1" id="wl_key1" maxlength="32" class="input_32_table" value="<% nvram_get("wl_key1"); %>" onKeyUp="return change_wlkey(this, 'WLANConfig11b');" autocorrect="off" autocapitalize="off"></td> 962 </tr> 963 964 <tr> 965 <th><a class="hintstyle" href="javascript:void(0);" onClick="openHint(0, 18);"><#WLANConfig11b_WEPKey2_itemname#></th> 966 <td><input type="text" name="wl_key2" id="wl_key2" maxlength="32" class="input_32_table" value="<% nvram_get("wl_key2"); %>" onKeyUp="return change_wlkey(this, 'WLANConfig11b');" autocorrect="off" autocapitalize="off"></td> 967 </tr> 968 969 <tr> 970 <th><a class="hintstyle" href="javascript:void(0);" onClick="openHint(0, 18);"><#WLANConfig11b_WEPKey3_itemname#></th> 971 <td><input type="text" name="wl_key3" id="wl_key3" maxlength="32" class="input_32_table" value="<% nvram_get("wl_key3"); %>" onKeyUp="return change_wlkey(this, 'WLANConfig11b');" autocorrect="off" autocapitalize="off"></td> 972 </tr> 973 974 <tr> 975 <th><a class="hintstyle" href="javascript:void(0);" onClick="openHint(0, 18);"><#WLANConfig11b_WEPKey4_itemname#></th> 976 <td><input type="text" name="wl_key4" id="wl_key4" maxlength="32" class="input_32_table" value="<% nvram_get("wl_key4"); %>" onKeyUp="return change_wlkey(this, 'WLANConfig11b');" autocorrect="off" autocapitalize="off"></td> 977 </tr> 978 979 <tr> 980 <th><a class="hintstyle" href="javascript:void(0);" onClick="openHint(0, 8);"><#WLANConfig11b_x_Phrase_itemname#></a></th> 981 <td> 982 <input type="text" name="wl_phrase_x" maxlength="64" class="input_32_table" value="<% nvram_get("wl_phrase_x"); %>" onKeyUp="return is_wlphrase('WLANConfig11b', 'wl_phrase_x', this);" autocorrect="off" autocapitalize="off"> 983 </td> 984 </tr> 985 986 <tr style="display:none"> 987 <th><#WLANConfig11b_x_mfp#></th> 988 <td> 989 <select name="wl_mfp" class="input_option" > 990 <option value="0" <% nvram_match("wl_mfp", "0", "selected"); %>><#WLANConfig11b_WirelessCtrl_buttonname#></option> 991 <option value="1" <% nvram_match("wl_mfp", "1", "selected"); %>><#WLANConfig11b_x_mfp_opt1#></option> 992 <option value="2" <% nvram_match("wl_mfp", "2", "selected"); %>><#WLANConfig11b_x_mfp_opt2#></option> 993 </select> 994 </td> 995 </tr> 996 997 <tr> 998 <th><a class="hintstyle" href="javascript:void(0);" onClick="openHint(0, 11);"><#WLANConfig11b_x_Rekey_itemname#></a></th> 999 <td><input type="text" maxlength="7" name="wl_wpa_gtk_rekey" class="input_6_table" value="<% nvram_get("wl_wpa_gtk_rekey"); %>" onKeyPress="return validator.isNumber(this,event);" autocorrect="off" autocapitalize="off"></td> 1000 </tr> 1001 </table> 1002 1003 <div class="apply_gen"> 1004 <input type="button" id="applyButton" class="button_gen" value="<#CTL_apply#>" onclick="applyRule();"> 1005 </div> 1006 1007 </td> 1008 </tr> 1009 </tbody> 1010 1011 </table> 1012 </td> 1013</form> 1014</tr> 1015</table> 1016<!--===================================Ending of Main Content===========================================--> 1017 1018 </td> 1019 <td width="10" align="center" valign="top"></td> 1020 </tr> 1021</table> 1022 1023<div id="footer"></div> 1024</body> 1025</html> 1026