From 8debb9019c1c6520e14150f3647cb025384eaf31 Mon Sep 17 00:00:00 2001 From: Conrad Lara - KG6JEI Date: Wed, 28 May 2014 09:57:54 -0700 Subject: [PATCH] bugfix: Node would not set correct power level on reboot. fixes BBHN->ticket:45 --- files/usr/local/bin/node-setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/usr/local/bin/node-setup b/files/usr/local/bin/node-setup index 3cd882f6..058ee00d 100755 --- a/files/usr/local/bin/node-setup +++ b/files/usr/local/bin/node-setup @@ -384,7 +384,7 @@ unless($cfg{wifi_proto} eq "disabled") if(wifi_useschains()){ print FILE "/usr/local/bin/wifi-onbootchains\n"; } - print FILE "/usr/sbin/iwconfig wlan0 txpower $cfg{wifi_txpower}\n"; + print FILE "/usr/sbin/iw dev wlan0 set txpower fixed $cfg{wifi_txpower}00\n" if(defined $cfg{aprs_lat} and defined $cfg{aprs_lon}) { printf FILE "echo %s,%s > /tmp/latlon.txt\n", $cfg{aprs_lat}, $cfg{aprs_lon};