summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-07-29 20:01:42 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-07-29 20:01:42 +0000
commit3108e34ff3ce54489e1510763bc41c280b1db183 (patch)
treef6ff96cbf5bd84b6bfd33f1e710552871e144555 /usr/local
parent65bad23b0a7aa41390f8d077ae8c29825ea3ed2d (diff)
downloadpfsense-3108e34ff3ce54489e1510763bc41c280b1db183.zip
pfsense-3108e34ff3ce54489e1510763bc41c280b1db183.tar.gz
* Allow channel 0 usage (auto)
* Add hidessid option for hostap mode
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/interfaces_wlan.inc19
1 files changed, 18 insertions, 1 deletions
diff --git a/usr/local/www/interfaces_wlan.inc b/usr/local/www/interfaces_wlan.inc
index 5302a9f..6f9a970 100755
--- a/usr/local/www/interfaces_wlan.inc
+++ b/usr/local/www/interfaces_wlan.inc
@@ -29,7 +29,7 @@
POSSIBILITY OF SUCH DAMAGE.
*/
-$wlchannels = array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,36,40,42,44,48,50,52,56,58,60,64,149,152,153,157,160,161,165);
+$wlchannels = array(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,36,40,42,44,48,50,52,56,58,60,64,149,152,153,157,160,161,165);
function wireless_config_init() {
global $optcfg, $pconfig;
@@ -37,6 +37,7 @@ function wireless_config_init() {
$pconfig['standard'] = $optcfg['wireless']['standard'];
$pconfig['mode'] = $optcfg['wireless']['mode'];
$pconfig['ssid'] = $optcfg['wireless']['ssid'];
+ $pconfig['hidessid'] = $optcfg['wireless']['hidessid'];
$pconfig['stationname'] = $optcfg['wireless']['stationname'];
$pconfig['channel'] = $optcfg['wireless']['channel'];
$pconfig['txpower'] = $optcfg['wireless']['txpower'];
@@ -78,6 +79,8 @@ function wireless_config_post() {
$optcfg['wireless']['standard'] = $_POST['standard'];
$optcfg['wireless']['mode'] = $_POST['mode'];
$optcfg['wireless']['ssid'] = $_POST['ssid'];
+ $optcfg['wireless']['ssid'] = $_POST['ssid'];
+ $optcfg['wireless']['hidessid'] = $_POST['hidessid'];
$optcfg['wireless']['stationname'] = $_POST['stationname'];
$optcfg['wireless']['channel'] = $_POST['channel'];
$optcfg['wireless']['txpower'] = $_POST['txpower'];
@@ -149,6 +152,20 @@ function wireless_config_print() {
</tr>
<tr>
+ <td valign="top" class="vncellreq">Hide SSID</td>
+ <td class="vtable">
+ <?php
+ if(isset($pconfig['hidessid']))
+ $CHECKED = " CHECKED";
+ else
+ $CHECKED = "";
+ ?>
+ <input name="hidessid" type="checkbox" class="formfld" id="hidessid"<?php echo $CHECKED; ?>"><br>
+ If your operating an access point this option will hide the SSID from being seen by the general public.
+ </td>
+ </tr>
+
+ <tr>
<td valign="top" class="vncellreq">Transmit power</td>
<td class="vtable">
<select name="txpower">
OpenPOWER on IntegriCloud