aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2015-11-30 16:05:51 +0100
committerDaniel Willmann <dwillmann@sysmocom.de>2015-11-30 16:05:51 +0100
commite2956431e8f938daff35efd35b9019a99c0e46ca (patch)
tree1c546b7f90096623596064a0e6d6258024c3726a /src
parent23c86e38bc3879c0ba8283d457014931f414c23e (diff)
test-hnbap: Check CID and Identity Info as well
Diffstat (limited to 'src')
-rw-r--r--src/tests/test-hnbap.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tests/test-hnbap.c b/src/tests/test-hnbap.c
index 01119c3..7773b97 100644
--- a/src/tests/test-hnbap.c
+++ b/src/tests/test-hnbap.c
@@ -110,11 +110,16 @@ void test_asn1_decoding(void)
lac = asn1str_to_u16(&hnb_ies.lac);
sac = asn1str_to_u16(&hnb_ies.sac);
rac = asn1str_to_u8(&hnb_ies.rac);
+ cid = asn1bitstr_to_u32(&hnb_ies.cellIdentity);
ASSERT(lac == 0x4020);
ASSERT(sac == 0x0001);
ASSERT(rac == 0x64);
+ ASSERT(cid == 0x0000000);
+ ASSERT(!strcmp((char *) hnb_ies.hnB_Identity.hNB_Identity_Info.buf, "10005B9-0010942050@"));
+
+ printf("HNBAP register request for HNB %s\n", (char *) hnb_ies.hnB_Identity.hNB_Identity_Info.buf);
dec_ret = aper_decode(NULL, &asn_DEF_HNBAP_PDU, (void **) &pdu,
hnbap_ue_reg_req, sizeof(hnbap_ue_reg_req), 0, 0);