Commit f594ae8b authored by Cedric Roux's avatar Cedric Roux

release DRB1 on LTE side of things to configure UE for endc

parent 6970bea6
...@@ -47,12 +47,16 @@ int rrc_eNB_generate_RRCConnectionReconfiguration_endc(protocol_ctxt_t *ctxt, ...@@ -47,12 +47,16 @@ int rrc_eNB_generate_RRCConnectionReconfiguration_endc(protocol_ctxt_t *ctxt,
LTE_RRCConnectionReconfiguration_t *r; LTE_RRCConnectionReconfiguration_t *r;
int trans_id; int trans_id;
LTE_RadioResourceConfigDedicated_t rrcd; LTE_RadioResourceConfigDedicated_t rrcd;
#if 0
LTE_DRB_ToAddModList_t drb_list; LTE_DRB_ToAddModList_t drb_list;
struct LTE_DRB_ToAddMod drb; struct LTE_DRB_ToAddMod drb;
long eps_bearer_id; long eps_bearer_id;
struct LTE_RLC_Config rlc; struct LTE_RLC_Config rlc;
long lcid; long lcid;
struct LTE_LogicalChannelConfig lc; struct LTE_LogicalChannelConfig lc;
#endif
LTE_DRB_ToReleaseList_t drb_list;
LTE_DRB_Identity_t drb;
struct LTE_LogicalChannelConfig__ul_SpecificParameters ul_params; struct LTE_LogicalChannelConfig__ul_SpecificParameters ul_params;
long lcg; long lcg;
struct LTE_RadioResourceConfigDedicated__mac_MainConfig mac; struct LTE_RadioResourceConfigDedicated__mac_MainConfig mac;
...@@ -62,8 +66,10 @@ int rrc_eNB_generate_RRCConnectionReconfiguration_endc(protocol_ctxt_t *ctxt, ...@@ -62,8 +66,10 @@ int rrc_eNB_generate_RRCConnectionReconfiguration_endc(protocol_ctxt_t *ctxt,
memset(&rrcd, 0, sizeof(rrcd)); memset(&rrcd, 0, sizeof(rrcd));
memset(&drb_list, 0, sizeof(drb_list)); memset(&drb_list, 0, sizeof(drb_list));
memset(&drb, 0, sizeof(drb)); memset(&drb, 0, sizeof(drb));
#if 0
memset(&rlc, 0, sizeof(rlc)); memset(&rlc, 0, sizeof(rlc));
memset(&lc, 0, sizeof(lc)); memset(&lc, 0, sizeof(lc));
#endif
memset(&ul_params, 0, sizeof(ul_params)); memset(&ul_params, 0, sizeof(ul_params));
memset(&mac, 0, sizeof(mac)); memset(&mac, 0, sizeof(mac));
memset(&mac_ext4, 0, sizeof(mac_ext4)); memset(&mac_ext4, 0, sizeof(mac_ext4));
...@@ -83,6 +89,7 @@ int rrc_eNB_generate_RRCConnectionReconfiguration_endc(protocol_ctxt_t *ctxt, ...@@ -83,6 +89,7 @@ int rrc_eNB_generate_RRCConnectionReconfiguration_endc(protocol_ctxt_t *ctxt,
r->criticalExtensions.choice.c1.present = LTE_RRCConnectionReconfiguration__criticalExtensions__c1_PR_rrcConnectionReconfiguration_r8; r->criticalExtensions.choice.c1.present = LTE_RRCConnectionReconfiguration__criticalExtensions__c1_PR_rrcConnectionReconfiguration_r8;
r->criticalExtensions.choice.c1.choice.rrcConnectionReconfiguration_r8.radioResourceConfigDedicated = &rrcd; r->criticalExtensions.choice.c1.choice.rrcConnectionReconfiguration_r8.radioResourceConfigDedicated = &rrcd;
#if 0
rrcd.drb_ToAddModList = &drb_list; rrcd.drb_ToAddModList = &drb_list;
eps_bearer_id = 5; eps_bearer_id = 5;
...@@ -93,6 +100,8 @@ int rrc_eNB_generate_RRCConnectionReconfiguration_endc(protocol_ctxt_t *ctxt, ...@@ -93,6 +100,8 @@ int rrc_eNB_generate_RRCConnectionReconfiguration_endc(protocol_ctxt_t *ctxt,
drb.logicalChannelIdentity = &lcid; drb.logicalChannelIdentity = &lcid;
drb.logicalChannelConfig = &lc; drb.logicalChannelConfig = &lc;
ASN_SEQUENCE_ADD(&drb_list.list, &drb);
rlc.present = LTE_RLC_Config_PR_am; rlc.present = LTE_RLC_Config_PR_am;
rlc.choice.am.ul_AM_RLC.t_PollRetransmit = LTE_T_PollRetransmit_ms50; rlc.choice.am.ul_AM_RLC.t_PollRetransmit = LTE_T_PollRetransmit_ms50;
rlc.choice.am.ul_AM_RLC.pollPDU = LTE_PollPDU_p16; rlc.choice.am.ul_AM_RLC.pollPDU = LTE_PollPDU_p16;
...@@ -102,6 +111,12 @@ int rrc_eNB_generate_RRCConnectionReconfiguration_endc(protocol_ctxt_t *ctxt, ...@@ -102,6 +111,12 @@ int rrc_eNB_generate_RRCConnectionReconfiguration_endc(protocol_ctxt_t *ctxt,
rlc.choice.am.dl_AM_RLC.t_StatusProhibit = LTE_T_StatusProhibit_ms25; rlc.choice.am.dl_AM_RLC.t_StatusProhibit = LTE_T_StatusProhibit_ms25;
lc.ul_SpecificParameters = &ul_params; lc.ul_SpecificParameters = &ul_params;
#endif
/* release drb 1 */
drb = 1;
ASN_SEQUENCE_ADD(&drb_list.list, &drb);
rrcd.drb_ToReleaseList = &drb_list;
ul_params.priority = 12; ul_params.priority = 12;
ul_params.prioritisedBitRate = LTE_LogicalChannelConfig__ul_SpecificParameters__prioritisedBitRate_kBps8; ul_params.prioritisedBitRate = LTE_LogicalChannelConfig__ul_SpecificParameters__prioritisedBitRate_kBps8;
...@@ -202,13 +217,13 @@ int rrc_eNB_generate_RRCConnectionReconfiguration_endc(protocol_ctxt_t *ctxt, ...@@ -202,13 +217,13 @@ int rrc_eNB_generate_RRCConnectionReconfiguration_endc(protocol_ctxt_t *ctxt,
#endif #endif
#if 0
OCTET_STRING_t nr2_conf; OCTET_STRING_t nr2_conf;
unsigned char nr2_buf[4] = { 0, 0, 0, 0 }; unsigned char nr2_buf[4] = { 0, 0, 0, 0 };
cr_1510.nr_RadioBearerConfig2_r15 = &nr2_conf; cr_1510.nr_RadioBearerConfig2_r15 = &nr2_conf;
nr2_conf.buf = nr2_buf; nr2_conf.buf = nr2_buf;
nr2_conf.size = 4; nr2_conf.size = 4;
#endif
ASN_SEQUENCE_ADD(&drb_list.list, &drb);
enc_rval = uper_encode_to_buffer(&asn_DEF_LTE_DL_DCCH_Message, enc_rval = uper_encode_to_buffer(&asn_DEF_LTE_DL_DCCH_Message,
NULL, NULL,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment