summaryrefslogtreecommitdiffstats
path: root/etc/inc/interfaces.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-11-29 06:59:03 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-11-29 06:59:03 +0000
commit0856c4acb3d774c97bc8b59d000928242c6bb96f (patch)
tree12affc0615b2f3b70aacd742a0379608500bc4c4 /etc/inc/interfaces.inc
parentbfe7a8937dfb3b36c418dc7a6204d156bbe51350 (diff)
downloadpfsense-0856c4acb3d774c97bc8b59d000928242c6bb96f.zip
pfsense-0856c4acb3d774c97bc8b59d000928242c6bb96f.tar.gz
MFC 8165
Add 802.11g protection mode. (ticket #715)
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r--etc/inc/interfaces.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index b6ad801..9bd6d37 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -472,6 +472,9 @@ function interfaces_wireless_configure($if, $wlcfg) {
/* Set a/b/g standard */
$standard = "mode " . escapeshellarg($wlcfg['standard']);
+ /* Set 802.11g protection mode */
+ $protmode = "protmode " . escapeshellarg($wlcfg['protmode']);
+
/* set wireless channel value */
if($wlcfg['channel'])
$channel = "channel " . escapeshellarg($wlcfg['channel']);
@@ -633,6 +636,7 @@ EOD;
mwexec("$ifconfig $if" . " -mediaopt hostap,turbo"); // Fix bug with turbomode and reboot (hopefully)
mwexec("$ifconfig $if" . " down");
mwexec("$ifconfig $if" . " " . $standard);
+ mwexec("$ifconfig $if" . " " . $protmode);
mwexec("$ifconfig $if" . " " . $channel);
mwexec("$ifconfig $if" . " " . $ssid);
mwexec("$ifconfig $if" . " " . $stationname);
@@ -1426,4 +1430,4 @@ function discover_bridge($interface1, $interface2) {
return "-1";
}
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud