diff options
author | Chris Buechler <cmb@pfsense.org> | 2008-09-07 19:21:53 +0000 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2008-09-07 19:21:53 +0000 |
commit | 87a0126e84c26e59da8b1579b064a95afccaf3ce (patch) | |
tree | 3988f18380712ac80b67282d86a742fc03e02a4f /etc/inc/interfaces.inc | |
parent | a9a3c6f2c466f02ec1cdb26aa4ad7daa14b97f00 (diff) | |
download | pfsense-87a0126e84c26e59da8b1579b064a95afccaf3ce.zip pfsense-87a0126e84c26e59da8b1579b064a95afccaf3ce.tar.gz |
set auto channel properly
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r-- | etc/inc/interfaces.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 676c70f..434c362 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -596,7 +596,10 @@ function interfaces_wireless_configure($if, $wlcfg) { /* set wireless channel value */ if(isset($wlcfg['channel'])) - $channel = "channel " . escapeshellarg($wlcfg['channel']); + if($wlcfg['channel'] == "0") + $channel = "channel any"; + else + $channel = "channel " . escapeshellarg($wlcfg['channel']); /* set Distance value */ if($wlcfg['distance']) @@ -760,9 +763,6 @@ EOD; $standard_no_turbo = str_replace(" Turbo", "", $standard); - if($channel == "0") - $channel = "auto"; - $settings = <<<EOD {$ifconfig} {$if} down |