aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/arfcn_range_encode.h
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2016-12-16 18:45:51 +0100
committerMax <msuraev@sysmocom.de>2017-01-06 11:37:52 +0000
commit34be86b93c243d94619a36a6db6c50021b33d36e (patch)
tree86e7ba1045b846b1240fb342d1bedd81145819f2 /openbsc/include/openbsc/arfcn_range_encode.h
parentfa9abaca261ffd11fa86fa4ff109df719b37c5ff (diff)
Cosmetic fixes around SI generation
* add missing spaces after comma and minus * prevent useless recursion calls * mark static functions as such * name and explicitly use enum for ARFCN range Change-Id: If5b717445c8b24668bad0e78fd5bb51f66c4d18e
Diffstat (limited to 'openbsc/include/openbsc/arfcn_range_encode.h')
-rw-r--r--openbsc/include/openbsc/arfcn_range_encode.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/openbsc/include/openbsc/arfcn_range_encode.h b/openbsc/include/openbsc/arfcn_range_encode.h
index bd85d6af4..7ec710c33 100644
--- a/openbsc/include/openbsc/arfcn_range_encode.h
+++ b/openbsc/include/openbsc/arfcn_range_encode.h
@@ -3,7 +3,7 @@
#include <stdint.h>
-enum {
+enum gsm48_range {
ARFCN_RANGE_INVALID = -1,
ARFCN_RANGE_128 = 127,
ARFCN_RANGE_256 = 255,
@@ -14,8 +14,8 @@ enum {
#define RANGE_ENC_MAX_ARFCNS 29
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_arfcns(enum gsm48_range rng, const int *arfcns, int sze, int *out, int idx);
+int range_enc_find_index(enum gsm48_range rng, const int *arfcns, int size);
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);