summaryrefslogtreecommitdiffstats
path: root/etc/inc/interfaces.inc
diff options
context:
space:
mode:
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