bugfix: Node would not set correct power level on reboot.

fixes BBHN->ticket:45
This commit is contained in:
Conrad Lara - KG6JEI 2014-05-28 09:57:54 -07:00
parent 62721ea9fa
commit 8debb9019c
1 changed files with 1 additions and 1 deletions

View File

@ -384,7 +384,7 @@ unless($cfg{wifi_proto} eq "disabled")
if(wifi_useschains()){ if(wifi_useschains()){
print FILE "/usr/local/bin/wifi-onbootchains\n"; 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}) 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}; printf FILE "echo %s,%s > /tmp/latlon.txt\n", $cfg{aprs_lat}, $cfg{aprs_lon};