summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErik Fonnesbeck <efonnes@gmail.com>2010-03-06 23:57:42 -0700
committerErik Fonnesbeck <efonnes@gmail.com>2010-03-06 23:57:42 -0700
commit23fdc06e2e5a3ef6958dba9f90aefd05d5a43542 (patch)
treef0953247a2f9fe8f2f8afb6455ebeb02473b02f9 /etc
parent39c1349ce1f61d66093692394919378029aa5cfa (diff)
downloadpfsense-23fdc06e2e5a3ef6958dba9f90aefd05d5a43542.zip
pfsense-23fdc06e2e5a3ef6958dba9f90aefd05d5a43542.tar.gz
The mode must be specified in a separate command before ifconfig will allow the mode and channel to be changed.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/interfaces.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index b15567b..88fc9e2 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -1717,6 +1717,10 @@ EOD;
fclose($fd_set);
conf_mount_ro();
+ /* The mode must be specified in a separate command before ifconfig
+ * will allow the mode and channel at the same time in the next. */
+ mwexec("/sbin/ifconfig {$if} mode " . escapeshellarg($wlcfg['standard']));
+
/* configure wireless */
$wlcmd_args = implode(" ", $wlcmd);
mwexec("/sbin/ifconfig {$if} $wlcmd_args", false);
OpenPOWER on IntegriCloud