Revision 4c00cc03
Added by Scott Ullrich over 19 years ago
etc/inc/interfaces.inc | ||
---|---|---|
498 | 498 |
/* Set ssid */ |
499 | 499 |
if($wlcfg['ssid']) |
500 | 500 |
$ssid = "ssid " . escapeshellarg($wlcfg['ssid']); |
501 |
|
|
502 |
/* Set stationname */ |
|
503 |
if ($wlcfg['stationname']) |
|
504 |
$stationname = "stationname " . escapeshellarg($wlcfg['stationname']); |
|
505 |
else |
|
506 |
$stationname = "stationname pfsense"; |
|
507 | 501 |
|
508 | 502 |
/* Set wireless hostap mode */ |
509 | 503 |
if ($wlcfg['mode'] == "hostap") |
... | ... | |
657 | 651 |
mwexec("$ifconfig $if" . " " . $protmode); |
658 | 652 |
mwexec("$ifconfig $if" . " " . $channel); |
659 | 653 |
mwexec("$ifconfig $if" . " " . $ssid); |
660 |
mwexec("$ifconfig $if" . " " . $stationname); |
|
661 | 654 |
mwexec("$ifconfig $if" . " " . $adhocmode); |
662 | 655 |
/* fix turbo mode and reboot */ |
663 | 656 |
mwexec("$ifconfig $if" . " up"); |
usr/local/www/interfaces_wlan.inc | ||
---|---|---|
38 | 38 |
$pconfig['mode'] = $optcfg['wireless']['mode']; |
39 | 39 |
$pconfig['protmode'] = $optcfg['wireless']['protmode']; |
40 | 40 |
$pconfig['ssid'] = $optcfg['wireless']['ssid']; |
41 |
$pconfig['stationname'] = $optcfg['wireless']['stationname']; |
|
42 | 41 |
$pconfig['channel'] = $optcfg['wireless']['channel']; |
43 | 42 |
$pconfig['txpower'] = $optcfg['wireless']['txpower']; |
44 | 43 |
$pconfig['distance'] = $optcfg['wireless']['distance']; |
... | ... | |
139 | 138 |
$optcfg['wireless']['mode'] = $_POST['mode']; |
140 | 139 |
$optcfg['wireless']['protmode'] = $_POST['protmode']; |
141 | 140 |
$optcfg['wireless']['ssid'] = $_POST['ssid']; |
142 |
$optcfg['wireless']['stationname'] = $_POST['stationname']; |
|
141 |
|
|
143 | 142 |
$optcfg['wireless']['channel'] = $_POST['channel']; |
144 | 143 |
$optcfg['wireless']['authmode'] = $_POST['authmode']; |
145 | 144 |
$optcfg['wireless']['txpower'] = $_POST['txpower']; |
... | ... | |
375 | 374 |
(measured in Meters and works only for Atheros based cards !) |
376 | 375 |
</td> |
377 | 376 |
</tr> |
378 |
<tr> |
|
379 |
<td valign="top" class="vncell">Station name</td> |
|
380 |
<td class="vtable"><input name="stationname" type="text" class="formfld" id="stationname" size="20" value="<?=htmlspecialchars($pconfig['stationname']);?>"> |
|
381 |
<br/> |
|
382 |
Hint: this field can usually be left blank</td> |
|
383 |
</tr> |
|
384 | 377 |
<tr> |
385 | 378 |
<td valign="top" class="vncell">WEP</td> |
386 | 379 |
<td class="vtable"> <input name="wep_enable" type="checkbox" id="wep_enable" value="yes" <? if ($pconfig['wep_enable']) echo "checked"; ?>> |
Also available in: Unified diff
Nuke stationname