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.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 4945da5..634c4e3 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -416,7 +416,10 @@ function interfaces_wireless_configure($if, $wlcfg) {
$fd = fopen("{$g['tmp_path']}/ifconfig_wireless", "w");
fwrite($fd, "/sbin/ifconfig {$ifcargs}");
fclose($fd);
-
+
+ if($wlcfg['txpower'] <> "")
+ mwexec("/sbin/ifconfig {$ifcargs} txpower {$wlcfg['txpower']}");
+
return 0;
}
OpenPOWER on IntegriCloud