diff options
author | Daniel Willmann <dwillmann@sysmocom.de> | 2015-12-08 13:55:17 +0100 |
---|---|---|
committer | Daniel Willmann <dwillmann@sysmocom.de> | 2015-12-14 10:21:51 +0100 |
commit | d6a45b402c5c09e079371eddbb6fbb6c4757aeab (patch) | |
tree | 0955c1b42f8f448313bf7fa4075af5a2ddbc593b /src/hnbgw_hnbap.c | |
parent | a1e202e15eab6c4f5ea84659472a3bb2a503a59a (diff) |
asn1helpers: Add 28 bit conversion function and use it for Cell ID
The padding bits in the bit string are at the end and the byte-order is
MSB-first. This means the number needs to be shifted left so the padding
bits are the least significant.
Diffstat (limited to 'src/hnbgw_hnbap.c')
-rw-r--r-- | src/hnbgw_hnbap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hnbgw_hnbap.c b/src/hnbgw_hnbap.c index 3e3715c..97cb32b 100644 --- a/src/hnbgw_hnbap.c +++ b/src/hnbgw_hnbap.c @@ -120,7 +120,7 @@ static int hnbgw_rx_hnb_register_req(struct hnb_context *ctx, ANY_t *in) ctx->id.lac = asn1str_to_u16(&ies.lac); ctx->id.sac = asn1str_to_u16(&ies.sac); ctx->id.rac = asn1str_to_u8(&ies.rac); - ctx->id.cid = asn1bitstr_to_u32(&ies.cellIdentity); + ctx->id.cid = asn1bitstr_to_u28(&ies.cellIdentity); //ctx->id.mcc FIXME //ctx->id.mnc FIXME |