From 87a0126e84c26e59da8b1579b064a95afccaf3ce Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Sun, 7 Sep 2008 19:21:53 +0000 Subject: set auto channel properly --- etc/inc/interfaces.inc | 8 ++++---- 1 file 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 = <<