minor fix at SIB1 decoding
This commit is contained in:
@@ -160,7 +160,7 @@ int8_t nr_ue_decode_BCCH_DL_SCH(module_id_t module_id,
|
|||||||
uint32_t sibs_mask,
|
uint32_t sibs_mask,
|
||||||
uint8_t *pduP,
|
uint8_t *pduP,
|
||||||
uint32_t pdu_len) {
|
uint32_t pdu_len) {
|
||||||
LOG_D(MAC, "Decode sib1\n");
|
LOG_D(MAC, "Decoding NR-BCCH-DL-SCH-Message\n");
|
||||||
nr_mac_rrc_data_ind_ue(module_id, cc_id, gNB_index, NR_BCCH_DL_SCH, (uint8_t *) pduP, pdu_len);
|
nr_mac_rrc_data_ind_ue(module_id, cc_id, gNB_index, NR_BCCH_DL_SCH, (uint8_t *) pduP, pdu_len);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1181,13 +1181,14 @@ int8_t nr_rrc_ue_decode_NR_BCCH_DL_SCH_Message(
|
|||||||
if ((NR_UE_rrc_inst[module_id].Info[gNB_index].SIStatus&1) == 0) {
|
if ((NR_UE_rrc_inst[module_id].Info[gNB_index].SIStatus&1) == 0) {
|
||||||
NR_SIB1_t *sib1 = NR_UE_rrc_inst[module_id].sib1[gNB_index];
|
NR_SIB1_t *sib1 = NR_UE_rrc_inst[module_id].sib1[gNB_index];
|
||||||
if(sib1 != NULL){
|
if(sib1 != NULL){
|
||||||
SEQUENCE_free(&asn_DEF_NR_BCCH_BCH_Message, (void *)sib1, 1 );
|
SEQUENCE_free(&asn_DEF_NR_SIB1, (void *)sib1, 1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
sib1 = bcch_message->message.choice.c1->choice.systemInformationBlockType1;
|
sib1 = bcch_message->message.choice.c1->choice.systemInformationBlockType1;
|
||||||
if (*(int64_t*)sib1 != 1) {
|
if (*(int64_t*)sib1 != 1) {
|
||||||
if( g_log->log_component[RRC].level >= OAILOG_DEBUG ) {
|
NR_UE_rrc_inst[module_id].sib1[gNB_index] = sib1;
|
||||||
xer_fprint(stdout, &asn_DEF_NR_SIB1, (const void*)sib1);
|
if( g_log->log_component[NR_RRC].level >= OAILOG_DEBUG ) {
|
||||||
|
xer_fprint(stdout, &asn_DEF_NR_SIB1, (const void *) NR_UE_rrc_inst[module_id].sib1[gNB_index]);
|
||||||
}
|
}
|
||||||
LOG_I(NR_RRC, "SIB1 decoded\n");
|
LOG_I(NR_RRC, "SIB1 decoded\n");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user