diff options
author | Harald Welte <laforge@gnumonks.org> | 2010-08-04 11:46:44 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2010-08-04 11:46:44 +0200 |
commit | 1523d7039d9b8c49a2174d93c3673aa8c5a100a9 (patch) | |
tree | 2e568de6072f6315a46069dd8fa2b3b6bcde7d03 /include/osmocore | |
parent | 18e6298e88284f82e2d5cf2f9509f580beb3555b (diff) |
Import gsm48_decode_freq_list() from osmocom-bb/layer23
This will enable us to use this function from OpenBSC / ipaccess-config
Diffstat (limited to 'include/osmocore')
-rw-r--r-- | include/osmocore/gsm48_ie.h | 10 |
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 |