diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-10-21 22:03:48 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-10-21 22:03:48 +0000 |
commit | da1dab20b0ca56e79d172f6f52574f4a05f3e7e6 (patch) | |
tree | ae3bedcd7da118284c34318ab4ff63f86c209590 /etc | |
parent | 82184ab0835bb5fa189e118b9aacb121b2dc483d (diff) | |
download | pfsense-da1dab20b0ca56e79d172f6f52574f4a05f3e7e6.zip pfsense-da1dab20b0ca56e79d172f6f52574f4a05f3e7e6.tar.gz |
MFC 7034
Fix bug with turbomode and reboot (hopefully)
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/interfaces.inc | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 2bb79e1..1fdcac8 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -602,21 +602,29 @@ EOD; } /* start up everything */ - - mwexec("$ifconfig {$if}" . " down"); + + mwexec("$ifconfig $if" . " -mediaopt hostap, turbo"); // Fix bug with turbomode and reboot (hopefully) + mwexec("$ifconfig $if" . " down"); mwexec("$ifconfig $if" . " " . $standard); mwexec("$ifconfig $if" . " " . $channel); mwexec("$ifconfig $if" . " " . $ssid); mwexec("$ifconfig $if" . " " . $stationname); - mwexec("$ifconfig $if" . " " . $hostapmode); +// mwexec("$ifconfig $if" . " " . $hostapmode); mwexec("$ifconfig $if" . " " . $adhocmode); + /* fix turbo mode and reboot */ + mwexec("$ifconfig $if" . " up"); + mwexec("$ifconfig $if" . " " . $hostapmode); + mwexec("$ifconfig $if" . " " . $turbo); + mwexec("$ifconfig $if" . " down"); + /* fix turbo mode and reboot */ mwexec("$ifconfig $if" . " " . $hidessid); mwexec("$ifconfig $if" . " " . $pureg); mwexec("$ifconfig $if" . " " . $apbridge); - mwexec("$ifconfig $if" . " " . $turbo); +// mwexec("$ifconfig $if" . " " . $turbo); mwexec("$ifconfig $if" . " " . $wme); mwexec("$ifconfig $if" . " " . $wepset); - mwexec("$ifconfig $if" . " up"); + mwexec("$ifconfig $if" . " up"); + if (isset($wlcfg['wpa']['enable'])) { if ($wlcfg['mode'] == BSS) |