From 0856c4acb3d774c97bc8b59d000928242c6bb96f Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 29 Nov 2005 06:59:03 +0000 Subject: MFC 8165 Add 802.11g protection mode. (ticket #715) --- etc/inc/interfaces.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'etc/inc/interfaces.inc') 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 +?> -- cgit v1.1