diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-05-06 02:42:53 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-05-06 02:42:53 +0000 |
commit | 4d857dcff82a52c931fd73df5a99eccf2491c980 (patch) | |
tree | 7316ac5f27adcfa2ac74dc1b166f58ad4fb7cf89 /etc | |
parent | d36088d22841458d4dd9d012dc4dfe1c051060fa (diff) | |
download | pfsense-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.inc | 34 |
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} |