diff options
Diffstat (limited to 'src/hnbgw_hnbap.c')
-rw-r--r-- | src/hnbgw_hnbap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hnbgw_hnbap.c b/src/hnbgw_hnbap.c index 97cb32b..b74cdad 100644 --- a/src/hnbgw_hnbap.c +++ b/src/hnbgw_hnbap.c @@ -79,6 +79,7 @@ static int hnbgw_tx_ue_register_acc(struct ue_context *ue) UERegisterAcceptIEs_t accept; struct msgb *msg; uint8_t encoded_imsi[10]; + uint32_t ctx_id; size_t encoded_imsi_len; int rc; @@ -89,8 +90,7 @@ static int hnbgw_tx_ue_register_acc(struct ue_context *ue) accept.uE_Identity.present = UE_Identity_PR_iMSI; OCTET_STRING_fromBuf(&accept.uE_Identity.choice.iMSI, (const char *)encoded_imsi, encoded_imsi_len); - asn1_u32_to_bitstring(&accept.context_ID, &ue->context_id); - accept.context_ID.size = 3; /* 24bit field */ + asn1_u24_to_bitstring(&accept.context_ID, &ctx_id, ue->context_id); memset(&accept_out, 0, sizeof(accept_out)); rc = hnbap_encode_ueregisteraccepties(&accept_out, &accept); |