1 <!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML
4.0//EN'
>
4 Copyright (C) 2006-2010 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'
>
25 // <% 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_txpwr,wl_mrate,t_features,wl_distance,wl_maxassoc,wlx_hpamp,wlx_hperx"); %>
27 hp
= features('hpamp');
29 function verifyFields(focused
, quiet
)
31 if (!v_range('_f_distance', quiet
, 0, 99999)) return 0;
32 if (!v_range('_wl_maxassoc', quiet
, 0, 255)) return 0;
33 if (!v_range('_wl_bcn', quiet
, 1, 65535)) return 0;
34 if (!v_range('_wl_dtim', quiet
, 1, 255)) return 0;
35 if (!v_range('_wl_frag', quiet
, 256, 2346)) return 0;
36 if (!v_range('_wl_rts', quiet
, 0, 2347)) return 0;
37 if (!v_range(E('_wl_txpwr'), quiet
, 1, 251)) return 0;
39 E('_wl_wme_no_ack').disabled
= E('_wl_wme').selectedIndex
!= 1;
48 if (!verifyFields(null, false)) return;
51 n
= fom
._f_distance
.value
* 1;
52 fom
.wl_distance
.value
= n
? n
: '';
55 if ((fom
.wlx_hpamp
.value
!= nvram
.wlx_hpamp
) || (fom
.wlx_hperx
.value
!= nvram
.wlx_hperx
)) {
56 fom
._service
.disabled
= 1;
57 fom
._reboot
.value
= 1;
63 fom
.wlx_hpamp
.disabled
= 1;
64 fom
.wlx_hperx
.disabled
= 1;
73 <form id='_fom' method='post' action='tomato.cgi'
>
74 <table id='container' cellspacing=
0>
75 <tr><td colspan=
2 id='header'
>
76 <div class='title'
>Tomato
</div>
77 <div class='version'
>Version <%
version(); %></div>
79 <tr id='body'
><td id='navi'
><script type='text/javascript'
>navi()</script></td>
81 <div id='ident'
><%
ident(); %></div>
85 <input type='hidden' name='_nextpage' value='advanced-wireless.asp'
>
86 <input type='hidden' name='_nextwait' value='
10'
>
87 <input type='hidden' name='_service' value='*'
>
88 <input type='hidden' name='_reboot' value='
0'
>
90 <input type='hidden' name='wl_distance'
>
92 <div class='section-title'
>Settings
</div>
94 <script type='text/javascript'
>
95 at
= ((nvram
.security_mode
!= "wep") && (nvram
.security_mode
!= "radius") && (nvram
.security_mode
!= "disabled"));
96 createFieldTable('', [
97 { title
: 'Afterburner', name
: 'wl_afterburner', type
: 'select', options
: [['auto','Auto'],['on','Enable'],['off','Disable *']],
98 value
: nvram
.wl_afterburner
},
99 { title
: 'AP Isolation', name
: 'wl_ap_isolate', type
: 'select', options
: [['0','Disable *'],['1','Enable']],
100 value
: nvram
.wl_ap_isolate
},
101 { title
: 'Authentication Type', name
: 'wl_auth', type
: 'select',
102 options
: [['0','Auto *'],['1','Shared Key']], attrib
: at
? 'disabled' : '',
103 value
: at
? 0 : nvram
.wl_auth
},
104 { title
: 'Basic Rate', name
: 'wl_rateset', type
: 'select', options
: [['default','Default *'],['12','1-2 Mbps'],['all','All']],
105 value
: nvram
.wl_rateset
},
106 { title
: 'Beacon Interval', name
: 'wl_bcn', type
: 'text', maxlen
: 5, size
: 7,
107 suffix
: ' <small>(range: 1 - 65535; default: 100)</small>', value
: nvram
.wl_bcn
},
108 { title
: 'CTS Protection Mode', name
: 'wl_gmode_protection', type
: 'select', options
: [['off','Disable *'],['auto','Auto']],
109 value
: nvram
.wl_gmode_protection
},
110 { title
: 'Distance / ACK Timing', name
: 'f_distance', type
: 'text', maxlen
: 5, size
: 7,
111 suffix
: ' <small>meters</small> <small>(range: 0 - 99999; 0 = use default)</small>',
112 value
: (nvram
.wl_distance
== '') ? '0' : nvram
.wl_distance
},
113 { title
: 'DTIM Interval', name
: 'wl_dtim', type
: 'text', maxlen
: 3, size
: 5,
114 suffix
: ' <small>(range: 1 - 255; default: 1)</small>', value
: nvram
.wl_dtim
},
115 { title
: 'Fragmentation Threshold', name
: 'wl_frag', type
: 'text', maxlen
: 4, size
: 6,
116 suffix
: ' <small>(range: 256 - 2346; default: 2346)</small>', value
: nvram
.wl_frag
},
117 { title
: 'Frame Burst', name
: 'wl_frameburst', type
: 'select', options
: [['off','Disable *'],['on','Enable']],
118 value
: nvram
.wl_frameburst
},
119 { title
: 'HP', hidden
: !hp
},
120 { title
: 'Amplifier', indent
: 2, name
: 'wlx_hpamp', type
: 'select', options
: [['0','Disable'],['1','Enable *']],
121 value
: nvram
.wlx_hpamp
!= '0', hidden
: !hp
},
122 { title
: 'Enhanced RX Sensitivity', indent
: 2, name
: 'wlx_hperx', type
: 'select', options
: [['0','Disable *'],['1','Enable']],
123 value
: nvram
.wlx_hperx
!= '0', hidden
: !hp
},
124 { title
: 'Maximum Clients', name
: 'wl_maxassoc', type
: 'text', maxlen
: 3, size
: 5,
125 suffix
: ' <small>(range: 1 - 255; default: 128)</small>', value
: nvram
.wl_maxassoc
},
126 { title
: 'Multicast Rate', name
: 'wl_mrate', type
: 'select',
127 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']],
128 value
: nvram
.wl_mrate
},
129 { title
: 'Preamble', name
: 'wl_plcphdr', type
: 'select', options
: [['long','Long *'],['short','Short']],
130 value
: nvram
.wl_plcphdr
},
131 { title
: 'RTS Threshold', name
: 'wl_rts', type
: 'text', maxlen
: 4, size
: 6,
132 suffix
: ' <small>(range: 0 - 2347; default: 2347)</small>', value
: nvram
.wl_rts
},
133 { title
: 'Receive Antenna', name
: 'wl_antdiv', type
: 'select', options
: [['3','Auto *'],['1','A'],['0','B']],
134 value
: nvram
.wl_antdiv
},
135 { title
: 'Transmit Antenna', name
: 'wl_txant', type
: 'select', options
: [['3','Auto *'],['1','A'],['0','B']],
136 value
: nvram
.wl_txant
},
137 { title
: 'Transmit Power', name
: 'wl_txpwr', type
: 'text', maxlen
: 3, size
: 5,
139 ' <small>mW (before amplification)</small> <small>(range: 1 - 251; default: 10)</small>' :
140 ' <small>mW</small> <small>(range: 1 - 251; default: 42)</small>',
141 value
: nvram
.wl_txpwr
},
142 { title
: 'Transmission Rate', name
: 'wl_rate', type
: 'select',
143 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']],
144 value
: nvram
.wl_rate
},
145 { title
: 'WMM', name
: 'wl_wme', type
: 'select', options
: [['off','Disable *'],['on','Enable']], value
: nvram
.wl_wme
},
146 { title
: 'No ACK', name
: 'wl_wme_no_ack', indent
: 2, type
: 'select', options
: [['off','Disable *'],['on','Enable']],
147 value
: nvram
.wl_wme_no_ack
}
151 <small>The default settings are indicated with the asterisk
<b style='font-size:
1.5em'
>*
</b> symbol.
</small>
156 <tr><td id='footer' colspan=
2>
157 <span id='footer-msg'
></span>
158 <input type='button' value='Save' id='save-button' onclick='save()'
>
159 <input type='button' value='Cancel' id='cancel-button' onclick='reloadPage();'
>
163 <script type='text/javascript'
>verifyFields(null, 1);</script>