1 <!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML
4.0//EN'
>
4 Copyright (C) 2006-2009 Jonathan Zarate
5 http://www.polarcloud.com/tomato/
7 For use with Tomato Firmware only.
8 No part of this file may be used without permission.
12 <meta http-equiv='content-type' content='text/html;charset=utf-
8'
>
13 <meta name='robots' content='noindex,nofollow'
>
14 <title>[<%
ident(); %>] Advanced: Wireless
</title>
15 <link rel='stylesheet' type='text/css' href='tomato.css'
>
16 <link rel='stylesheet' type='text/css' href='color.css'
>
17 <script type='text/javascript' src='tomato.js'
></script>
21 <script type='text/javascript' src='debug.js'
></script>
23 <script type='text/javascript'
>
26 !!TB - Added wl_reg_mode, wl_country, wl_country_code, wl_btc_mode
28 // <% nvram("security_mode,wl_afterburner,wl_antdiv,wl_ap_isolate,wl_auth,wl_bcn,wl_dtim,wl_frag,wl_frameburst,wl_gmode_protection,wl_plcphdr,wl_rate,wl_rateset,wl_rts,wl_txant,wl_wme,wl_wme_no_ack,wl_wme_apsd,wl_txpwr,wl_mrate,t_features,wl_distance,wl_maxassoc,wlx_hpamp,wlx_hperx,wl_reg_mode,wl_country_code,wl_country,wl_btc_mode"); %>
30 hp
= features('hpamp');
32 function verifyFields(focused
, quiet
)
34 if (!v_range('_f_distance', quiet
, 0, 99999)) return 0;
35 if (!v_range('_wl_maxassoc', quiet
, 0, 255)) return 0;
36 if (!v_range('_wl_bcn', quiet
, 1, 65535)) return 0;
37 if (!v_range('_wl_dtim', quiet
, 1, 255)) return 0;
38 if (!v_range('_wl_frag', quiet
, 256, 2346)) return 0;
39 if (!v_range('_wl_rts', quiet
, 0, 2347)) return 0;
40 if (!v_range(E('_wl_txpwr'), quiet
, 1, 251)) return 0;
42 E('_wl_wme_no_ack').disabled
= E('_wl_wme').selectedIndex
!= 1;
43 E('_wl_wme_apsd').disabled
= E('_wl_wme').selectedIndex
!= 1;
52 if (!verifyFields(null, false)) return;
55 n
= fom
._f_distance
.value
* 1;
56 fom
.wl_distance
.value
= n
? n
: '';
59 if ((fom
.wlx_hpamp
.value
!= nvram
.wlx_hpamp
) || (fom
.wlx_hperx
.value
!= nvram
.wlx_hperx
)) {
60 fom
._service
.disabled
= 1;
61 fom
._reboot
.value
= 1;
67 fom
.wlx_hpamp
.disabled
= 1;
68 fom
.wlx_hperx
.disabled
= 1;
71 fom
.wl_country
.value
= fom
._wl_country_code
.value
;
79 <form id='_fom' method='post' action='tomato.cgi'
>
80 <table id='container' cellspacing=
0>
81 <tr><td colspan=
2 id='header'
>
82 <div class='title'
>Tomato
</div>
83 <div class='version'
>Version <%
version(); %></div>
85 <tr id='body'
><td id='navi'
><script type='text/javascript'
>navi()</script></td>
87 <div id='ident'
><%
ident(); %></div>
91 <input type='hidden' name='_nextpage' value='advanced-wireless.asp'
>
92 <input type='hidden' name='_nextwait' value='
10'
>
93 <input type='hidden' name='_service' value='*'
>
94 <input type='hidden' name='_reboot' value='
0'
>
96 <input type='hidden' name='wl_distance'
>
97 <input type='hidden' name='wl_country'
>
99 <div class='section-title'
>Settings
</div>
100 <div class='section'
>
101 <script type='text/javascript'
>
102 at
= ((nvram
.security_mode
!= "wep") && (nvram
.security_mode
!= "radius") && (nvram
.security_mode
!= "disabled"));
103 createFieldTable('', [
104 { title
: 'Afterburner', name
: 'wl_afterburner', type
: 'select', options
: [['auto','Auto'],['on','Enable'],['off','Disable *']],
105 value
: nvram
.wl_afterburner
},
106 { title
: 'AP Isolation', name
: 'wl_ap_isolate', type
: 'select', options
: [['0','Disable *'],['1','Enable']],
107 value
: nvram
.wl_ap_isolate
},
108 { title
: 'Authentication Type', name
: 'wl_auth', type
: 'select',
109 options
: [['0','Auto *'],['1','Shared Key']], attrib
: at
? 'disabled' : '',
110 value
: at
? 0 : nvram
.wl_auth
},
111 { title
: 'Basic Rate', name
: 'wl_rateset', type
: 'select', options
: [['default','Default *'],['12','1-2 Mbps'],['all','All']],
112 value
: nvram
.wl_rateset
},
113 { title
: 'Beacon Interval', name
: 'wl_bcn', type
: 'text', maxlen
: 5, size
: 7,
114 suffix
: ' <small>(range: 1 - 65535; default: 100)</small>', value
: nvram
.wl_bcn
},
115 { title
: 'CTS Protection Mode', name
: 'wl_gmode_protection', type
: 'select', options
: [['off','Disable *'],['auto','Auto']],
116 value
: nvram
.wl_gmode_protection
},
118 !!TB - Added wl_reg_mode, wl_country, wl_btc_mode
120 { title
: 'Regulatory Mode', name
: 'wl_reg_mode', type
: 'select',
121 options
: [['off', 'Off *'],['d', '802.11d'],['h', '802.11h']],
122 value
: nvram
.wl_reg_mode
},
123 { title
: 'Country / Region', name
: 'wl_country_code', type
: 'select',
124 options
: [['CN','China'],['DE','Europe'],['IL','Israel'],['JP','Japan'],['JO','Jordan'],['SG','Singapore'],['TW','Taiwan'],['TH','Thailand'],['US','U.S. / Americas, FCC'],['AU','Worldwide']],
125 value
: nvram
.wl_country_code
},
126 { title
: 'Bluetooth Coexistence', name
: 'wl_btc_mode', type
: 'select',
127 options
: [['0', 'Disable *'],['1', 'Enable'],['2', 'Preemption']],
128 value
: nvram
.wl_btc_mode
},
129 { title
: 'Distance / ACK Timing', name
: 'f_distance', type
: 'text', maxlen
: 5, size
: 7,
130 suffix
: ' <small>meters</small> <small>(range: 0 - 99999; 0 = use default)</small>',
131 value
: (nvram
.wl_distance
== '') ? '0' : nvram
.wl_distance
},
132 { title
: 'DTIM Interval', name
: 'wl_dtim', type
: 'text', maxlen
: 3, size
: 5,
133 suffix
: ' <small>(range: 1 - 255; default: 1)</small>', value
: nvram
.wl_dtim
},
134 { title
: 'Fragmentation Threshold', name
: 'wl_frag', type
: 'text', maxlen
: 4, size
: 6,
135 suffix
: ' <small>(range: 256 - 2346; default: 2346)</small>', value
: nvram
.wl_frag
},
136 { title
: 'Frame Burst', name
: 'wl_frameburst', type
: 'select', options
: [['off','Disable *'],['on','Enable']],
137 value
: nvram
.wl_frameburst
},
138 { title
: 'HP', hidden
: !hp
},
139 { title
: 'Amplifier', indent
: 2, name
: 'wlx_hpamp', type
: 'select', options
: [['0','Disable'],['1','Enable *']],
140 value
: nvram
.wlx_hpamp
!= '0', hidden
: !hp
},
141 { title
: 'Enhanced RX Sensitivity', indent
: 2, name
: 'wlx_hperx', type
: 'select', options
: [['0','Disable *'],['1','Enable']],
142 value
: nvram
.wlx_hperx
!= '0', hidden
: !hp
},
143 { title
: 'Maximum Clients', name
: 'wl_maxassoc', type
: 'text', maxlen
: 3, size
: 5,
144 suffix
: ' <small>(range: 1 - 255; default: 128)</small>', value
: nvram
.wl_maxassoc
},
145 { title
: 'Multicast Rate', name
: 'wl_mrate', type
: 'select',
146 options
: [['0','Auto *'],['1000000','1 Mbps'],['2000000','2 Mbps'],['5500000','5.5 Mbps'],['6000000','6 Mbps'],['9000000','9 Mbps'],['11000000','11 Mbps'],['12000000','12 Mbps'],['18000000','18 Mbps'],['24000000','24 Mbps'],['36000000','36 Mbps'],['48000000','48 Mbps'],['54000000','54 Mbps']],
147 value
: nvram
.wl_mrate
},
148 { title
: 'Preamble', name
: 'wl_plcphdr', type
: 'select', options
: [['long','Long *'],['short','Short']],
149 value
: nvram
.wl_plcphdr
},
150 { title
: 'RTS Threshold', name
: 'wl_rts', type
: 'text', maxlen
: 4, size
: 6,
151 suffix
: ' <small>(range: 0 - 2347; default: 2347)</small>', value
: nvram
.wl_rts
},
152 { title
: 'Receive Antenna', name
: 'wl_antdiv', type
: 'select', options
: [['3','Auto *'],['1','A'],['0','B']],
153 value
: nvram
.wl_antdiv
},
154 { title
: 'Transmit Antenna', name
: 'wl_txant', type
: 'select', options
: [['3','Auto *'],['1','A'],['0','B']],
155 value
: nvram
.wl_txant
},
156 { title
: 'Transmit Power', name
: 'wl_txpwr', type
: 'text', maxlen
: 3, size
: 5,
158 ' <small>mW (before amplification)</small> <small>(range: 1 - 251; default: 10)</small>' :
159 ' <small>mW</small> <small>(range: 1 - 251, actual max depends on Country selected; default: 42)</small>',
160 value
: nvram
.wl_txpwr
},
161 { title
: 'Transmission Rate', name
: 'wl_rate', type
: 'select',
162 options
: [['0','Auto *'],['1000000','1 Mbps'],['2000000','2 Mbps'],['5500000','5.5 Mbps'],['6000000','6 Mbps'],['9000000','9 Mbps'],['11000000','11 Mbps'],['12000000','12 Mbps'],['18000000','18 Mbps'],['24000000','24 Mbps'],['36000000','36 Mbps'],['48000000','48 Mbps'],['54000000','54 Mbps']],
163 value
: nvram
.wl_rate
},
164 { title
: 'WMM', name
: 'wl_wme', type
: 'select', options
: [['off','Disable *'],['on','Enable']], value
: nvram
.wl_wme
},
165 { title
: 'No ACK', name
: 'wl_wme_no_ack', indent
: 2, type
: 'select', options
: [['off','Disable *'],['on','Enable']],
166 value
: nvram
.wl_wme_no_ack
},
167 { title
: 'APSD Mode', name
: 'wl_wme_apsd', indent
: 2, type
: 'select', options
: [['off','Disable'],['on','Enable *']],
168 value
: nvram
.wl_wme_apsd
}
172 <small>The default settings are indicated with the asterisk
<b style='font-size:
1.5em'
>*
</b> symbol.
</small>
177 <tr><td id='footer' colspan=
2>
178 <span id='footer-msg'
></span>
179 <input type='button' value='Save' id='save-button' onclick='save()'
>
180 <input type='button' value='Cancel' id='cancel-button' onclick='reloadPage();'
>
184 <script type='text/javascript'
>verifyFields(null, 1);</script>