summaryrefslogtreecommitdiffstats
path: root/etc/inc/interfaces.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-11-16 03:07:03 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-11-16 03:07:03 +0000
commitf134033e1bae9c30d0446c7b149d32028e731e6b (patch)
tree2704cc5064d8ac11502c5c989a1e5ab2a596f181 /etc/inc/interfaces.inc
parent6c80fac70cf94a3a58f28f4e5e28b2bd6dc4f963 (diff)
downloadpfsense-f134033e1bae9c30d0446c7b149d32028e731e6b.zip
pfsense-f134033e1bae9c30d0446c7b149d32028e731e6b.tar.gz
MFC 7717
Add wireless distance tuning.
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r--etc/inc/interfaces.inc12
1 files changed, 10 insertions, 2 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index c9df0a9..5e4269a 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -473,14 +473,19 @@ function interfaces_wireless_configure($if, $wlcfg) {
$standard = ("mode " . escapeshellarg($wlcfg['standard']));
/* set wireless channel value */
- $channel = escapeshellarg($wlcfg['channel']);
-
if($channel == "") {
$channel = "";
} else {
$channel = ("channel " . escapeshellarg($wlcfg['channel']));
}
+ /* set Distance value */
+ if($distance == "") {
+ $distance = "";
+ } else {
+ $distance = escapeshellarg($wlcfg['distance']);
+ }
+
/* Set ssid */
$ssid = ("ssid " . escapeshellarg($wlcfg['ssid']));
@@ -631,6 +636,9 @@ EOD;
}
/* start up everything */
+
+ /* set ack timers according to users preference (if he 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");
OpenPOWER on IntegriCloud