From e9e757f8f3a1e449fb96e5f0eeb1f84d0c318902 Mon Sep 17 00:00:00 2001 From: Steve Markgraf Date: Fri, 8 Jun 2018 23:43:25 +0200 Subject: 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 --- src/target/firmware/rf/trf6151.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/target') 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: -- cgit v1.2.3