summaryrefslogtreecommitdiffstats
path: root/etc/inc/interfaces.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-01-19 06:10:05 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-01-19 06:10:05 +0000
commit789229149ab7a4d4f17745c189074d563496a46b (patch)
tree80e7c21d5906bb9b1f5470db109eab1cf98a6b45 /etc/inc/interfaces.inc
parent98db4dd5ffbaa7e5cad3775da7ad98c265b129e0 (diff)
downloadpfsense-789229149ab7a4d4f17745c189074d563496a46b.zip
pfsense-789229149ab7a4d4f17745c189074d563496a46b.tar.gz
MFC 7912
Move wireless distance tuning up in the code (before we down and up the interface). Remove temp writeout of distance settings.
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r--etc/inc/interfaces.inc15
1 files changed, 7 insertions, 8 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index dc2810f..228ee40 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -670,6 +670,12 @@ EOD;
/* all variables are set, lets start up everything */
+ /* set ack timers according to users preference (if he/she has any) */
+
+ if($distance) {
+ mwexec("/sbin/athctrl.sh -i {$if} -d {$distance}");
+ }
+
mwexec("$ifconfig $if" . " -mediaopt hostap,turbo"); // Fix bug with turbomode and reboot (hopefully)
mwexec("$ifconfig $if" . " down");
mwexec("$ifconfig $if" . " " . $standard);
@@ -698,13 +704,6 @@ EOD;
mwexec("{$hostapd} -B {$g['varetc_path']}/hostapd_{$if}.conf");
}
- /* set ack timers according to users preference (if he/she has any) */
- if($distance) {
- mwexec("/sbin/athctrl.sh -i {$if} -d {$distance}");
- $fd = fopen("/tmp/athctrl.txt", "w");
- fwrite($fd, "/sbin/athctrl.sh -i {$if} -d {$distance}");
- fclose($fd);
- }
if(isset($wlcfg['useolsr']))
setup_wireless_olsr($if);
@@ -1507,4 +1506,4 @@ function discover_bridge($interface1, $interface2) {
return "-1";
}
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud