1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
|
<?
/* $Id$ */
/*
interfaces_wlan.inc
part of m0n0wall (http://m0n0.ch/wall)
Copyright (C) 2003-2005 Manuel Kasper <mk@neon1.net>.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
$wlchannels = array(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,34,36,38,40,42,44,46,48,50,52,56,58,60,64,100,104,108,112,116,120,124,128,132,136,140,149,152,153,157,160,161,165);
function wireless_config_init() {
global $optcfg, $pconfig;
$pconfig['standard'] = $optcfg['wireless']['standard'];
$pconfig['mode'] = $optcfg['wireless']['mode'];
$pconfig['ssid'] = $optcfg['wireless']['ssid'];
$pconfig['stationname'] = $optcfg['wireless']['stationname'];
$pconfig['channel'] = $optcfg['wireless']['channel'];
$pconfig['txpower'] = $optcfg['wireless']['txpower'];
$pconfig['distance'] = $optcfg['wireless']['distance'];
$pconfig['wme_enable'] = isset($optcfg['wireless']['wme']['enable']);
$pconfig['pureg_enable'] = isset($optcfg['wireless']['pureg']['enable']);
$pconfig['apbridge_enable'] = isset($optcfg['wireless']['apbridge']['enable']);
$pconfig['turbo_enable'] = isset($optcfg['wireless']['turbo']['enable']);
$pconfig['authmode'] = $optcfg['wireless']['authmode'];
$pconfig['hidessid_enable'] = isset($optcfg['wireless']['hidessid']['enable']);
$pconfig['debug_mode'] = $optcfg['wireless']['wpa']['debug_mode'];
$pconfig['macaddr_acl'] = $optcfg['wireless']['wpa']['macaddr_acl'];
$pconfig['mac_acl_enable'] = $optcfg['wireless']['wpa']['mac_acl_enable'];
$pconfig['auth_algs'] = $optcfg['wireless']['wpa']['auth_algs'];
$pconfig['wpa_mode'] = $optcfg['wireless']['wpa']['wpa_mode'];
$pconfig['wpa_key_mgmt'] = $optcfg['wireless']['wpa']['wpa_key_mgmt'];
$pconfig['wpa_pairwise'] = $optcfg['wireless']['wpa']['wpa_pairwise'];
$pconfig['wpa_group_rekey'] = $optcfg['wireless']['wpa']['wpa_group_rekey'];
$pconfig['wpa_gmk_rekey'] = $optcfg['wireless']['wpa']['wpa_gmk_rekey'];
$pconfig['wpa_strict_rekey'] = isset($optcfg['wireless']['wpa']['wpa_strict_rekey']);
$pconfig['passphrase'] = $optcfg['wireless']['wpa']['passphrase'];
$pconfig['ieee8021x_enable'] = isset($optcfg['wireless']['wpa']['ieee8021x']['enable']);
$pconfig['ext_wpa_sw'] = $optcfg['wireless']['wpa']['ext_wpa_sw'];
$pconfig['wpa_enable'] = isset($optcfg['wireless']['wpa']['enable']);
$pconfig['wep_enable'] = isset($optcfg['wireless']['wep']['enable']);
$pconfig['mac_acl'] = $optcfg['wireless']['mac_acl'];
if (is_array($optcfg['wireless']['wep']['key'])) {
$i = 1;
foreach ($optcfg['wireless']['wep']['key'] as $wepkey) {
$pconfig['key' . $i] = $wepkey['value'];
if (isset($wepkey['txkey']))
$pconfig['txkey'] = $i;
$i++;
}
if (!isset($wepkey['txkey']))
$pconfig['txkey'] = 1;
}
}
function wireless_config_post() {
global $optcfg, $pconfig;
unset($input_errors);
/* input validation */
if ($_POST['enable']) {
$reqdfields = explode(" ", "mode ssid");
$reqdfieldsn = explode(",", "Mode,SSID");
do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors);
if (!$input_errors) {
/* bridge check (hostap only!) */
if ($pconfig['bridge'] && ($pconfig['mode'] != "hostap"))
$input_errors[] = "Bridging a wireless interface is only possible in hostap mode.";
}
}
/* loop through keys and enforce size */
for ($i = 1; $i <= 4; $i++) {
if ($_POST['key' . $i]) {
/* 64 bit */
if(strlen($_POST['key' . $i]) == 5)
continue;
if(strlen($_POST['key' . $i]) == 10) {
/* hex key */
if(stristr($_POST['key' . $i], "0x") == false) {
$_POST['key' . $i] = "0x" . $_POST['key' . $i];
}
continue;
}
if(strlen($_POST['key' . $i]) == 12) {
/* hex key */
if(stristr($_POST['key' . $i], "0x") == false) {
$_POST['key' . $i] = "0x" . $_POST['key' . $i];
}
continue;
}
/* 128 bit */
if(strlen($_POST['key' . $i]) == 13)
continue;
if(strlen($_POST['key' . $i]) == 26) {
/* hex key */
if(stristr($_POST['key' . $i], "0x") == false) {
$_POST['key' . $i] = "0x" . $_POST['key' . $i];
}
continue;
}
if(strlen($_POST['key' . $i]) == 28)
continue;
$input_errors[] = "Invalid wep key size. Sizes should be 40 (64) bit keys or 104 (128) bit.";
break;
}
}
if (!$input_errors) {
$optcfg['wireless']['standard'] = $_POST['standard'];
$optcfg['wireless']['mode'] = $_POST['mode'];
$optcfg['wireless']['ssid'] = $_POST['ssid'];
$optcfg['wireless']['stationname'] = $_POST['stationname'];
$optcfg['wireless']['channel'] = $_POST['channel'];
$optcfg['wireless']['authmode'] = $_POST['authmode'];
$optcfg['wireless']['txpower'] = $_POST['txpower'];
$optcfg['wireless']['distance'] = $_POST['distance'];
$optcfg['wireless']['wpa']['macaddr_acl'] = $_POST['macaddr_acl'];
$optcfg['wireless']['wpa']['auth_algs'] = $_POST['auth_algs'];
$optcfg['wireless']['wpa']['wpa_mode'] = $_POST['wpa_mode'];
$optcfg['wireless']['wpa']['wpa_key_mgmt'] = $_POST['wpa_key_mgmt'];
$optcfg['wireless']['wpa']['wpa_pairwise'] = $_POST['wpa_pairwise'];
$optcfg['wireless']['wpa']['wpa_group_rekey'] = $_POST['wpa_group_rekey'];
$optcfg['wireless']['wpa']['wpa_gmk_rekey'] = $_POST['wpa_gmk_rekey'];
$optcfg['wireless']['wpa']['passphrase'] = $_POST['passphrase'];
$optcfg['wireless']['wpa']['ext_wpa_sw'] = $_POST['ext_wpa_sw'];
if($_POST['hidessid_enable'] == "yes")
$optcfg['wireless']['hidessid']['enable'] = true;
else
unset($optcfg['wireless']['hidessid']['enable']);
if($_POST['mac_acl_enable'] == "yes")
$optcfg['wireless']['wpa']['mac_acl_enable'] = true;
else
unset($optcfg['wireless']['wpa']['mac_acl_enable']);
if($_POST['ieee8021x_enable'] == "yes")
$optcfg['wireless']['wpa']['ieee8021x']['enable'] = true;
else
unset($optcfg['wireless']['wpa']['ieee8021x']['enable']);
if($_POST['wpa_strict_rekey'] == "yes")
$optcfg['wireless']['wpa']['wpa_strict_rekey'] = true;
else
unset($optcfg['wireless']['wpa']['wpa_strict_rekey']);
if($_POST['debug_mode'] == "yes")
$optcfg['wireless']['wpa']['debug_mode'] = true;
else
unset($optcfg['wireless']['wpa']['debug_mode']);
if($_POST['wpa_enable'] == "yes")
$optcfg['wireless']['wpa']['enable'] = $_POST['wpa_enable'] = true;
else
unset($optcfg['wireless']['wpa']['enable']);
if($_POST['wep_enable'] == "yes")
$optcfg['wireless']['wep']['enable'] = $_POST['wep_enable'] = true;
else
unset($optcfg['wireless']['wep']['enable']);
if($_POST['wme_enable'] == "yes")
$optcfg['wireless']['wme']['enable'] = $_POST['wme_enable'] = true;
else
unset($optcfg['wireless']['wme']['enable']);
if($_POST['pureg_enable'] == "yes")
$optcfg['wireless']['pureg']['enable'] = $_POST['pureg_enable'] = true;
else
unset($optcfg['wireless']['pureg']['enable']);
if($_POST['apbridge_enable'] == "yes")
$optcfg['wireless']['apbridge']['enable'] = $_POST['apbridge_enable'] = true;
else
unset($optcfg['wireless']['apbridge']['enable']);
if($_POST['turbo_enable'] == "yes")
$optcfg['wireless']['turbo']['enable'] = $_POST['turbo_enable'] = true;
else
unset($optcfg['wireless']['turbo']['enable']);
$optcfg['wireless']['wep']['key'] = array();
for ($i = 1; $i <= 4; $i++) {
if ($_POST['key' . $i]) {
$newkey = array();
$newkey['value'] = $_POST['key' . $i];
if ($_POST['txkey'] == $i)
$newkey['txkey'] = true;
$optcfg['wireless']['wep']['key'][] = $newkey;
}
}
}
return $input_errors;
}
function wireless_config_print() {
global $optcfg, $pconfig, $wlchannels, $g;
?>
<script language="JavaScript">
function openwindow(url) {
var oWin = window.open(url,"pfSensePop","width=620,height=400,top=150,left=150");
if (oWin==null || typeof(oWin)=="undefined") {
return false;
} else {
return true;
}
}
</script>
<tr>
<td colspan="2" valign="top" height="16"></td>
</tr>
<tr>
<td colspan="2" valign="top" class="listtopic">Wireless configuration</td>
</tr>
<tr>
<td valign="top" class="vncellreq">Standard</td>
<td class="vtable">
<select name="standard" class="formfld" id="standard">
<option <? if ($pconfig['standard'] == '11b') echo "selected";?> value="11b">802.11b</option>
<option <? if ($pconfig['standard'] == '11g') echo "selected";?> value="11g">802.11g</option>
<option <? if ($pconfig['standard'] == '11a') echo "selected";?> value="11a">802.11a</option>
</select>
</td>
</tr>
<tr>
<td valign="top" class="vncellreq">Mode</td>
<td class="vtable">
<select name="mode" class="formfld" id="mode">
<option <? if ($pconfig['mode'] == 'bss') echo "selected";?> value="bss">Infrastructure (BSS)</option>
<option <? if ($pconfig['mode'] == 'adhoc') echo "selected";?> value="adhoc">Ad-hoc (IBSS)</option>
<option <? if ($pconfig['mode'] == 'hostap') echo "selected";?> value="hostap">Access Point</option>
</select>
</td>
</tr>
<tr>
<td valign="top" class="vncellreq">SSID</td>
<td class="vtable"><?=$mandfldhtml;?><input name="ssid" type="text" class="formfld" id="ssid" size="20" value="<?=htmlspecialchars($pconfig['ssid']);?>">
</td>
</tr>
<tr>
<td valign="top" class="vncell">802.11g only</td>
<td class="vtable"><input name="pureg_enable" type="checkbox" value="yes" class="formfld" id="pureg_enable" <? if ($pconfig['pureg_enable']) echo "checked";?>>
<br/>When operating as an access point in 802.11g mode allow only 11g-capable stations to associate (11b-only stations are not permitted to associate).
</td>
</tr>
<tr>
<td valign="top" class="vncell">Allow intra-BSS communication</td>
<td class="vtable"><input name="apbridge_enable" type="checkbox" value="yes" class="formfld" id="apbridge_enable" <? if ($pconfig['apbridge_enable']) echo "checked";?>>
<br/>
When operating as an access point, enable this if you want to pass packets between wireless clients directly.
<br/>
Disabling the internal bridging is useful when traffic is to be processed with packet filtering.
</td>
</tr>
<tr>
<td valign="top" class="vncell">Enable turbo mode</td>
<td class="vtable"><input name="turbo_enable" type="checkbox" class="formfld" id="turbo_enable" value="yes" <? if ($pconfig['turbo_enable']) echo "checked";?>>
<br/>Setting this option will force the card to use turbo mode.
<br/>use "ifconfig interface list channel" to list turbo capable channels.
</td>
</tr>
<tr>
<td valign="top" class="vncell">Enable WME</td>
<td class="vtable"><input name="wme_enable" type="checkbox" class="formfld" id="wme_enable" value="yes" <? if ($pconfig['wme_enable']) echo "checked";?>>
<br/>Setting this option will force the card to use WME (wireless QoS).
</td>
</tr>
<tr>
<td valign="top" class="vncell">Enable Hide SSID</td>
<td class="vtable"><input name="hidessid_enable" type="checkbox" class="formfld" id="hidessid_enable" value="yes" <? if ($pconfig['hidessid_enable']) echo "checked";?>>
<br/>
Setting this option will force the card to NOT broadcast it's SSID
<br/>
(this might create problems for some clients). </td>
</tr>
<tr>
<td valign="top" class="vncellreq">Transmit power</td>
<td class="vtable">
<select name="txpower">
<?
for($x = 99; $x > 0; $x--) {
if($pconfig["txpower"] == $x)
$SELECTED = " SELECTED";
else
$SELECTED = "";
echo "<option {$SELECTED}>{$x}</option>\n";
}
?>
</select><br/>
Note: Typically only a few discreet power settings are available and the driver will use the setting closest to the specified value. Not all adaptors support changing the transmit power setting.
</td>
</tr>
<tr>
<td valign="top" class="vncellreq">Channel</td>
<td class="vtable"><select name="channel" class="formfld" id="channel">
<option <? if ($pconfig['channel'] == 0) echo "selected";?> value="0">Auto</option>
<? foreach ($wlchannels as $channel): ?>
<option <? if ($channel == $pconfig['channel']) echo "selected";?> value="<?=$channel;?>">
<?=$channel;?>
</option>
<? endforeach; ?>
</select>
<br/>
Note: Not all channels may be supported by your card
<br/>
use "ifconfig interface list channel" to list channels.</td>
</tr>
<tr>
<td valign="top" class="vncell">Distance setting</td>
<td class="vtable"><input name="distance" type="text" class="formfld" id="distance" size="5" value="<?=htmlspecialchars($pconfig['distance']);?>">
<br/>
Note: This field can used to tune ACK/CTS timers to fit the distance between AP and Client<br/>
(measured in Meters and works only for Atheros based cards !)
</td>
</tr>
<tr>
<td valign="top" class="vncell">Station name</td>
<td class="vtable"><input name="stationname" type="text" class="formfld" id="stationname" size="20" value="<?=htmlspecialchars($pconfig['stationname']);?>">
<br/>
Hint: this field can usually be left blank</td>
</tr>
<tr>
<td valign="top" class="vncell">WEP</td>
<td class="vtable"> <input name="wep_enable" type="checkbox" id="wep_enable" value="yes" <? if ($pconfig['wep_enable']) echo "checked"; ?>>
<strong>Enable WEP</strong>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
<td> </td>
<td> TX key </td>
</tr>
<tr>
<td>Key 1: </td>
<td> <input name="key1" type="text" class="formfld" id="key1" size="30" value="<?=htmlspecialchars($pconfig['key1']);?>"></td>
<td align="center"> <input name="txkey" type="radio" value="1" <? if ($pconfig['txkey'] == 1) echo "checked";?>></td>
</tr>
<tr>
<td>Key 2: </td>
<td> <input name="key2" type="text" class="formfld" id="key2" size="30" value="<?=htmlspecialchars($pconfig['key2']);?>"></td>
<td align="center"> <input name="txkey" type="radio" value="2" <? if ($pconfig['txkey'] == 2) echo "checked";?>></td>
</tr>
<tr>
<td>Key 3: </td>
<td> <input name="key3" type="text" class="formfld" id="key3" size="30" value="<?=htmlspecialchars($pconfig['key3']);?>"></td>
<td align="center"> <input name="txkey" type="radio" value="3" <? if ($pconfig['txkey'] == 3) echo "checked";?>></td>
</tr>
<tr>
<td>Key 4: </td>
<td> <input name="key4" type="text" class="formfld" id="key4" size="30" value="<?=htmlspecialchars($pconfig['key4']);?>"></td>
<td align="center"> <input name="txkey" type="radio" value="4" <? if ($pconfig['txkey'] == 4) echo "checked";?>></td>
</tr>
</table>
<br/>
40 (64) bit keys may be entered as 5 ASCII characters or 10 hex digits preceded by '0x'.<br/>
104 (128) bit keys may be entered as 13 ASCII characters or 26 hex digits preceded by '0x'.
<p>For assistance with creating keys, please see
<a href="javascript:if(openwindow('/wlan_strong_key_generator/generator.php') == false) alert('Popup blocker detected. Action aborted.');">WLAN Strong Key Generator</a>.
</td>
</tr>
<tr>
<td valign="top" class="vncell"><strong>WPA</strong></td>
<td class="vtable"><input name="wpa_enable" type="checkbox" class="formfld" id="wpa_enable" value="yes" <? if ($pconfig['wpa_enable']) echo "checked"; ?>>
<strong>Enable WPA</strong>
<br/><br/>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
<td> WPA Pre Shared Key </td>
</tr>
<tr>
<td>PSK: </td>
<td><input name="passphrase" type="text" class="formfld" id="passphrase" size="66" value="<?=htmlspecialchars($pconfig['passphrase']);?>"></td>
</tr>
</table>
<br/>Passphrase must be from 8 to 63 chars.
</td>
</tr>
<tr>
<td valign="top" class="vncell">WPA Mode</td>
<td class="vtable"><select name="wpa_mode" class="formfld" id="wpa_mode">
<option <? if ($pconfig['wpa_mode'] == '1') echo "selected";?> value="1">WPA</option>
<option <? if ($pconfig['wpa_mode'] == '2') echo "selected";?> value="2">WPA2</option>
<option <? if ($pconfig['wpa_mode'] == '3') echo "selected";?> value="3">Both</option>
</select>
</td>
</tr>
<tr>
<td valign="top" class="vncell">WPA Key Management Mode</td>
<td class="vtable"><select name="wpa_key_mgmt" class="formfld" id="wpa_key_mgmt">
<option <? if ($pconfig['wpa_key_mgmt'] == 'WPA-PSK') echo "selected";?> value="WPA-PSK">Pre Shared Key</option>
<option <? if ($pconfig['wpa_key_mgmt'] == 'WPA-EAP') echo "selected";?> value="WPA-EAP">Extensible Authentication Protocol</option>
<option <? if ($pconfig['wpa_key_mgmt'] == 'WPA-PSK WPA-EAP') echo "selected";?> value="WPA-PSK WPA-EAP">Both</option>
</select>
</td>
</tr>
<tr>
<td valign="top" class="vncell">Authentication</td>
<td class="vtable"><select name="auth_algs" class="formfld" id="auth_algs">
<option <? if ($pconfig['auth_algs'] == '1') echo "selected";?> value="1">Open System Authentication</option>
<option <? if ($pconfig['auth_algs'] == '2') echo "selected";?> value="2">Shared Key Authentication</option>
<option <? if ($pconfig['auth_algs'] == 'both') echo "selected";?> value="3">Both</option>
</select>
<br/>Note: Shared Key Authentication requires WEP.</br>
</td>
</tr>
<tr>
<td valign="top" class="vncell">WPA Pairwise</td>
<td class="vtable"><select name="wpa_pairwise" class="formfld" id="wpa_pairwise">
<option <? if ($pconfig['wpa_pairwise'] == 'CCMP TKIP') echo "selected";?> value="CCMP TKIP">Both</option>
<option <? if ($pconfig['wpa_pairwise'] == 'CCMP') echo "selected";?> value="CCMP">AES</option>
<option <? if ($pconfig['wpa_pairwise'] == 'TKIP') echo "selected";?> value="TKIP">TKIP</option>
</select>
</td>
</tr>
<tr>
<td valign="top" class="vncell">Key Rotation</td>
<td class="vtable"><input name="wpa_group_rekey" type="text" class="formfld" id="wpa_group_rekey" size="30" value="<? echo $pconfig['wpa_group_rekey'] ? $pconfig['wpa_group_rekey'] : "60";?>">
<br/>Allowed values are 1-9999 but should not be longer than Master Key Regeneration time.
</td>
</tr>
<tr>
<td valign="top" class="vncell">Master Key Regeneration</td>
<td class="vtable"><input name="wpa_gmk_rekey" type="text" class="formfld" id="wpa_gmk_rekey" size="30" value="<? echo $pconfig['wpa_gmk_rekey'] ? $pconfig['wpa_gmk_rekey'] : "3600";?>">
<br/>Allowed values are 1-9999 but should not be shorter than Key Rotation time.
</td>
</tr>
<tr>
<td valign="top" class="vncell">Strict Key Regeneration</td>
<td class="vtable"><input name="wpa_strict_rekey" type="checkbox" value="yes" class="formfld" id="wpa_strict_rekey" <? if ($pconfig['wpa_strict_rekey']) echo "checked"; ?>>
<br/>Setting this option will force the AP to rekey whenever a client disassociates.
</td>
</tr>
<tr>
<td valign="top" class="vncell">Enable IEEE802.1X</td>
<td class="vtable"><input name="ieee8021x" type="checkbox" value="yes" class="formfld" id="ieee8021x" <? if ($pconfig['ieee8021x']) echo "checked";?>>
<br/>Setting this option will enable 802.1x authentication.
</td>
</tr>
<? } ?>
|