summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-05-06 02:42:53 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-05-06 02:42:53 +0000
commit4d857dcff82a52c931fd73df5a99eccf2491c980 (patch)
tree7316ac5f27adcfa2ac74dc1b166f58ad4fb7cf89 /etc
parentd36088d22841458d4dd9d012dc4dfe1c051060fa (diff)
downloadpfsense-4d857dcff82a52c931fd73df5a99eccf2491c980.zip
pfsense-4d857dcff82a52c931fd73df5a99eccf2491c980.tar.gz
Turn off previous ath settings.
Detective-work-done-by: Holger
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/interfaces.inc34
1 files changed, 19 insertions, 15 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index ff23dc0..b6a4d8c 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -660,27 +660,31 @@ EOD;
fwrite($fd_set, "# Enable ATH distance settings\n");
fwrite($fd_set, "/sbin/athctrl.sh -i {$if} -d {$distance}\n");
}
-
+
+ $standard_no_turbo = str_replace(" Turbo", "", $standard);
+
$settings = <<<EOD
+# We need to undo any previous
+# settings in clean way so that the
+# hal doesnt get confused.
{$ifconfig} {$if} down
{$ifconfig} {$if} -mediaopt hostap,turbo
{$ifconfig} {$if} -pureg
{$ifconfig} {$if} -apbridge
-{$ifconfig} {$if} {$hostapmode}
-{$ifconfig} {$if} {$channel}
-{$ifconfig} {$if} {$turbo}
-{$ifconfig} {$if} {$ssid}
-{$ifconfig} {$if} {$hidessid}
-{$ifconfig} {$if} {$adhocmode}
-{$ifconfig} {$if} {$standard}
-{$ifconfig} {$if} {$protmode}
-{$ifconfig} {$if} {$pureg}
-{$ifconfig} {$if} {$apbridge}
-{$ifconfig} {$if} {$wme}
-{$ifconfig} {$if} {$wepset}
-{$ifconfig} {$if} {$txpower}
-# Issue the commands twice, this hal is %&@*&%@ picky!
+{$ifconfig} {$if} mediaopt hostap
+{$ifconfig} {$if} channel '0'
+{$ifconfig} {$if} ssid 'pfsense'
+{$ifconfig} {$if} hidessid
+{$ifconfig} {$if} -mediaopt adhoc
+{$ifconfig} {$if} {$standard_no_turbo}
+{$ifconfig} {$if} protmode 'off'
+{$ifconfig} {$if} -pureg
+{$ifconfig} {$if} apbridge
+{$ifconfig} {$if} -wme
+{$ifconfig} {$if} authmode open wepmode off
+{$ifconfig} {$if} txpower '99'
+# Now setup the card how the user wants
{$ifconfig} {$if} {$hostapmode}
{$ifconfig} {$if} {$channel}
{$ifconfig} {$if} {$turbo}
OpenPOWER on IntegriCloud