diff options
author | Harald Welte <laforge@gnumonks.org> | 2014-12-30 13:33:54 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2014-12-30 13:33:54 +0100 |
commit | 1e245336ecfe6cbdf3c4253ca5557146d493126d (patch) | |
tree | a7e912fc4168a8a0a0f2542afdd82af56534f97d | |
parent | 4457c0d9ba73a0f8f9e95bb24dd3f33f469b4fe3 (diff) |
SMS-CB: use gsm412_block_type from libosmocore
.. and not our own local re-definition of the structure.
-rw-r--r-- | src/common/cbch.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/common/cbch.c b/src/common/cbch.c index 0fdd7ae8..3aa1900d 100644 --- a/src/common/cbch.c +++ b/src/common/cbch.c @@ -35,20 +35,12 @@ struct smscb_msg { uint8_t num_segs; /* total number of segments */ }; -/* Figure 3/3GPP TS 04.12 */ -struct sms_cb_block_type { - uint8_t seq_nr:4, /* 0=first, 1=2nd, ... f=null */ - lb:1, /* last block */ - lpd:2, /* always 01 */ - spare:1; -}; - /* get the next block of the current CB message */ static int get_smscb_block(struct gsm_bts *bts, uint8_t *out) { int to_copy; struct gsm_bts_role_bts *btsb = bts_role_bts(bts); - struct sms_cb_block_type *block_type = (struct sms_cb_block_type *) out++; + struct gsm412_block_type *block_type = (struct gsm412_block_type *) out++; struct smscb_msg *msg = btsb->smscb_state.cur_msg; /* LPD is always 01 */ |