From 1523d7039d9b8c49a2174d93c3673aa8c5a100a9 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Wed, 4 Aug 2010 11:46:44 +0200 Subject: Import gsm48_decode_freq_list() from osmocom-bb/layer23 This will enable us to use this function from OpenBSC / ipaccess-config --- include/osmocore/gsm48_ie.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include/osmocore') 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 -- cgit v1.2.3