summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-01-15 20:05:39 +0100
committerHarald Welte <laforge@gnumonks.org>2017-01-15 20:45:45 +0100
commitb29c24bcb77e58f8ec57f5180766baafb3a2c7cd (patch)
tree53e4dc0528842cfc55cd9a8289e59e9030ceb403
parenta1830440fc93ecb531f003b524fec9249f020303 (diff)
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.
-rw-r--r--src/target/firmware/rf/trf6151.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/firmware/rf/trf6151.c b/src/target/firmware/rf/trf6151.c
index 36516fe..0a91009 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: