summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/include
diff options
context:
space:
mode:
authorHarald Welte2010-07-19 14:24:46 +0200
committerHarald Welte2010-07-19 14:24:46 +0200
commit7b89bb8a846f7a22a908d6be237b6e6dd042e282 (patch)
treedc37e26a38091ff47ca6d15ed44ab1b1c51172d4 /src/target/firmware/include
parent[layer23] Fixed "return to IDLE" after cell re-selection. (diff)
downloadosmocom-7b89bb8a846f7a22a908d6be237b6e6dd042e282.tar.gz
osmocom-7b89bb8a846f7a22a908d6be237b6e6dd042e282.tar.xz
osmocom-7b89bb8a846f7a22a908d6be237b6e6dd042e282.zip
[firmware] TRF6151: fix VGA gain calculation bug
We've had two sets of TRF6151 GAIN related #defines which were used in an incorrect manner, resulting in a vga_gain of 60, which is outside of the allowed gain range. Thanks to Dieter Spaar for spotting this bug
Diffstat (limited to 'src/target/firmware/include')
-rw-r--r--src/target/firmware/include/rf/trf6151.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/target/firmware/include/rf/trf6151.h b/src/target/firmware/include/rf/trf6151.h
index c7951c0..0e27abb 100644
--- a/src/target/firmware/include/rf/trf6151.h
+++ b/src/target/firmware/include/rf/trf6151.h
@@ -3,13 +3,6 @@
#include <osmocore/gsm_utils.h>
-/* minimum gain (FE = LOW, VGA at lowest setting */
-#define TRF6151_GAIN_MIN 14
-/* minimum gain (FE = HIGH, VGA at highest setting */
-#define TRF6151_GAIN_MAX 60
-/* Frontend gain if FE = HIGH */
-#define TRF6151_GAIN_FE 20
-
/* initialize (reset + power up) */
void trf6151_init(void);