From 9f6f3e04c7527781692165adcdf1b392fd0fb765 Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Sun, 7 Sep 2008 19:23:55 +0000 Subject: set auto channel properly --- etc/inc/interfaces.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'etc') 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 = <<