From 8425998355cb90ddab57439c1f9b0b603f262f30 Mon Sep 17 00:00:00 2001 From: Conrad Lara - KG6JEI Date: Sun, 8 Dec 2013 16:11:50 -0800 Subject: [PATCH] Adjust RF Power for Bullet M's Bullet M2 has a maxpower of 28dbm. Unit has a 12db amplifier closes #5 --- files/www/cgi-bin/perlfunc.pm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/files/www/cgi-bin/perlfunc.pm b/files/www/cgi-bin/perlfunc.pm index 355bb765..6c65ca03 100644 --- a/files/www/cgi-bin/perlfunc.pm +++ b/files/www/cgi-bin/perlfunc.pm @@ -870,7 +870,8 @@ sub wifi_maxpower $boardtype = `/usr/local/bin/get_hardwaretype`; chomp($boardtype); if ($boardtype eq "bullet-m"){ - return 27; + #bullet-m has a 12db offchip amp. + return 16; } elsif ($boardtype eq "rocket-m") { #Rocket-m is 28dbm but has a 10db offchip amp. @@ -942,7 +943,10 @@ sub wifi_txpoweroffset { $boardtype = `/usr/local/bin/get_hardwaretype`; chomp($boardtype); - if ($boardtype eq "rocket-m"){ + if ($boardtype eq "bullet-m"){ + return 12; + } + elsif ($boardtype eq "rocket--m"){ return 10; } else