aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/arfcn_range_encode.h
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2014-01-14 10:42:58 +0100
committerJacob Erlbeck <jerlbeck@sysmocom.de>2014-01-16 12:04:30 +0100
commit45014a0cadfd1f28d68d61b5160ee18fa391c4ba (patch)
tree428329d79af34cf66fb8aae804b90d2859ad8214 /openbsc/include/openbsc/arfcn_range_encode.h
parent131406c86dc1c589af8dea91e772eac01340ac94 (diff)
si: Fix range1024 encoding
f0 is currently set to arfcns[0] in range_enc_determine_range(), while GSM 04.08 requires f0 to be ARFCN 0 in range1024 encoding. This patch modifies range_enc_determine_range() to force f0 to be 0 if this encoding is used. This way the case distinction in range_enc_filter_arfcns() is not longer necessary. Sponsored-by: On-Waves ehf
Diffstat (limited to 'openbsc/include/openbsc/arfcn_range_encode.h')
-rw-r--r--openbsc/include/openbsc/arfcn_range_encode.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/include/openbsc/arfcn_range_encode.h b/openbsc/include/openbsc/arfcn_range_encode.h
index 7a6fff000..bd85d6af4 100644
--- a/openbsc/include/openbsc/arfcn_range_encode.h
+++ b/openbsc/include/openbsc/arfcn_range_encode.h
@@ -16,7 +16,7 @@ enum {
int range_enc_determine_range(const int *arfcns, int size, int *f0_out);
int range_enc_arfcns(const int rng, const int *arfcns, int sze, int *out, int idx);
int range_enc_find_index(const int rng, const int *arfcns, int size);
-int range_enc_filter_arfcns(const int rng, int *arfcns, const int sze, const int f0, int *f0_included);
+int range_enc_filter_arfcns(int *arfcns, const int sze, const int f0, int *f0_included);
int range_enc_range128(uint8_t *chan_list, int f0, int *w);
int range_enc_range256(uint8_t *chan_list, int f0, int *w);