From b29c24bcb77e58f8ec57f5180766baafb3a2c7cd Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 15 Jan 2017 20:05:39 +0100 Subject: Revert "trf6151: Fix setting of uplink ARFCN" This reverts commit 17240037376169369b526ee8a8284961b85adbfa. For some reason the "obviously broken" code is working, but the fixed version is not. Let's go back to step 1 and analyze this in more detail, but meanwhile make the code work again. --- src/target/firmware/rf/trf6151.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/target/firmware/rf/trf6151.c b/src/target/firmware/rf/trf6151.c index 36516fea..0a910091 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