aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-08-04 11:46:44 +0200
committerHarald Welte <laforge@gnumonks.org>2010-08-04 11:46:44 +0200
commit1523d7039d9b8c49a2174d93c3673aa8c5a100a9 (patch)
tree2e568de6072f6315a46069dd8fa2b3b6bcde7d03 /include
parent18e6298e88284f82e2d5cf2f9509f580beb3555b (diff)
Import gsm48_decode_freq_list() from osmocom-bb/layer230.1.16
This will enable us to use this function from OpenBSC / ipaccess-config
Diffstat (limited to 'include')
-rw-r--r--include/osmocore/gsm48_ie.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/osmocore/gsm48_ie.h b/include/osmocore/gsm48_ie.h
index 200619a7..fa66159f 100644
--- a/include/osmocore/gsm48_ie.h
+++ b/include/osmocore/gsm48_ie.h
@@ -104,4 +104,14 @@ int gsm48_encode_ssversion(struct msgb *msg,
/* encode 'more data' */
int gsm48_encode_more(struct msgb *msg);
+/* structure of one frequency */
+struct gsm_sysinfo_freq {
+ /* if the frequency included in the sysinfo */
+ uint8_t mask;
+};
+
+/* decode "Cell Channel Description" (10.5.2.1b) and other frequency lists */
+int gsm48_decode_freq_list(struct gsm_sysinfo_freq *f, uint8_t *cd,
+ uint8_t len, uint8_t mask, uint8_t frqt);
+
#endif