Commit 5feefc89 authored by Chenyu's avatar Chenyu

asn1 for nr msg5 and so on

parent ffde7852
This diff is collapsed.
...@@ -82,3 +82,29 @@ void do_PHYSICALCELLGROUP(uint8_t Mod_id, ...@@ -82,3 +82,29 @@ void do_PHYSICALCELLGROUP(uint8_t Mod_id,
void do_SpCellConfig(gNB_RRC_INST *rrc, void do_SpCellConfig(gNB_RRC_INST *rrc,
struct NR_SpCellConfig *spconfig); struct NR_SpCellConfig *spconfig);
/*MSG 5*/
/** \brief Generate an RRCConnectionSetupComplete UL-DCCH-Message (UE)
* @param buffer Pointer to PER-encoded ASN.1 description of UL-DCCH-Message PDU
* @returns Size of encoded bit stream in bytes*/
uint8_t do_RRCSetupComplete_NR(uint8_t Mod_id, uint8_t *buffer, const uint8_t Transaction_id, uint8_t sel_plmn_id, const int dedicatedInfoNASLength, const char *dedicatedInfoNAS);
uint8_t do_SecurityModeCommand_NR(
const protocol_ctxt_t *const ctxt_pP,
uint8_t *const buffer,
const uint8_t Transaction_id,
const uint8_t cipheringAlgorithm,
const uint8_t integrityProtAlgorithm);
uint8_t do_ULInformationTransfer_NR(uint8_t **buffer, uint32_t pdu_length, uint8_t *pdu_buffer);
uint8_t do_DLInformationTransfer_NR(uint8_t Mod_id, uint8_t **buffer, uint8_t transaction_id, uint32_t pdu_length, uint8_t *pdu_buffer);
...@@ -7899,7 +7899,7 @@ rrc_gNB_decode_dcch( ...@@ -7899,7 +7899,7 @@ rrc_gNB_decode_dcch(
if (eutra_index == -1) if (eutra_index == -1)
break; break;
if (ue_context_p->ue_context.UE_Capability) { if (ue_context_p->ue_context.UE_Capability_nr) {
LOG_I(RRC, "freeing old UE capabilities for UE %x\n", ctxt_pP->rnti); LOG_I(RRC, "freeing old UE capabilities for UE %x\n", ctxt_pP->rnti);
ASN_STRUCT_FREE(asn_DEF_NR_UE_EUTRA_Capability, ASN_STRUCT_FREE(asn_DEF_NR_UE_EUTRA_Capability,
ue_context_p->ue_context.UE_Capability); ue_context_p->ue_context.UE_Capability);
...@@ -7908,7 +7908,7 @@ rrc_gNB_decode_dcch( ...@@ -7908,7 +7908,7 @@ rrc_gNB_decode_dcch(
dec_rval = uper_decode(NULL, dec_rval = uper_decode(NULL,
&asn_DEF_NR_UE_EUTRA_Capability, &asn_DEF_NR_UE_EUTRA_Capability,
(void **)&ue_context_p->ue_context.UE_Capability, (void **)&ue_context_p->ue_context.UE_Capability_nr,
ul_dcch_msg->message.choice.c1.choice.ueCapabilityInformation.criticalExtensions.choice.c1.choice.ueCapabilityInformation_r8.ue_CapabilityRAT_ContainerList.list.array[eutra_index]->ueCapabilityRAT_Container.buf, ul_dcch_msg->message.choice.c1.choice.ueCapabilityInformation.criticalExtensions.choice.c1.choice.ueCapabilityInformation_r8.ue_CapabilityRAT_ContainerList.list.array[eutra_index]->ueCapabilityRAT_Container.buf,
ul_dcch_msg->message.choice.c1.choice.ueCapabilityInformation.criticalExtensions.choice.c1.choice.ueCapabilityInformation_r8.ue_CapabilityRAT_ContainerList.list.array[eutra_index]->ueCapabilityRAT_Container.size, ul_dcch_msg->message.choice.c1.choice.ueCapabilityInformation.criticalExtensions.choice.c1.choice.ueCapabilityInformation_r8.ue_CapabilityRAT_ContainerList.list.array[eutra_index]->ueCapabilityRAT_Container.size,
0, 0); 0, 0);
......
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