diff options
Diffstat (limited to 'etc')
-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 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 |