summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2008-09-07 19:23:55 +0000
committerChris Buechler <cmb@pfsense.org>2008-09-07 19:23:55 +0000
commit9f6f3e04c7527781692165adcdf1b392fd0fb765 (patch)
tree4a908c311b7e2880954e3aa80da77eb348cba4fd /etc
parent3f425cda43439020be1bac2e99769b9c03afdad7 (diff)
downloadpfsense-9f6f3e04c7527781692165adcdf1b392fd0fb765.zip
pfsense-9f6f3e04c7527781692165adcdf1b392fd0fb765.tar.gz
set auto channel properly
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/interfaces.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 2082fe4..f95246a 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -851,7 +851,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'])
@@ -1015,9 +1018,6 @@ EOD;
$standard_no_turbo = str_replace(" Turbo", "", $standard);
- if($channel == "0")
- $channel = "auto";
-
$settings = <<<EOD
{$ifconfig} {$if} down
OpenPOWER on IntegriCloud