diff options
authorSteve Markgraf <>2018-06-08 23:43:25 +0200
committerSteve Markgraf <>2018-06-08 23:58:29 +0200
commite9e757f8f3a1e449fb96e5f0eeb1f84d0c318902 (patch)
parentfcb420d50b2cc3a73487f49d8d09d04d07bab7a8 (diff)
trf6151: Actually fix setting of uplink ARFCN
Some time ago a broken fix was committed which then has been reverted again in commit 17240037376169369b526ee8a8284961b85adbfa. The purpose of this line is to clear the uplink flag from the ARFCN. So far this worked because both gsm_arfcn2band() and gsm_arfcn2freq10() already do this internally. Change-Id: Ie8a05ffc0ddec53d7fd6a25e03ea285fb216df29 Signed-off-by: Steve Markgraf <>
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/firmware/rf/trf6151.c b/src/target/firmware/rf/trf6151.c
index 0a910091..9de2cc8e 100644
--- a/src/target/firmware/rf/trf6151.c
+++ b/src/target/firmware/rf/trf6151.c
@@ -436,7 +436,7 @@ void trf6151_set_arfcn(uint16_t arfcn, int tx)
enum trf6151_gsm_band pll_band;
uplink = !!(arfcn & ARFCN_UPLINK);
- arfcn != ~ARFCN_UPLINK;
+ arfcn &= ~ARFCN_UPLINK;
switch (gsm_arfcn2band(arfcn)) {
case GSM_BAND_850: