Fix a 4G UE bug
This commit is contained in:
committed by
Robert Schmidt
parent
426e3453cd
commit
02ce4aaf82
@@ -46,8 +46,6 @@
|
|||||||
#include <openair2/RRC/LTE/rrc_proto.h>
|
#include <openair2/RRC/LTE/rrc_proto.h>
|
||||||
#include "executables/softmodem-common.h"
|
#include "executables/softmodem-common.h"
|
||||||
|
|
||||||
extern void openair_rrc_top_init_ue( int eMBMS_active, char *uecap_xer, uint8_t cba_group_active, uint8_t HO_active);
|
|
||||||
|
|
||||||
void dl_phy_sync_success(module_id_t module_idP, frame_t frameP, unsigned char eNB_index, uint8_t first_sync) { //init as MR
|
void dl_phy_sync_success(module_id_t module_idP, frame_t frameP, unsigned char eNB_index, uint8_t first_sync) { //init as MR
|
||||||
LOG_D(MAC, "[UE %d] Frame %d: PHY Sync to eNB_index %d successful \n",
|
LOG_D(MAC, "[UE %d] Frame %d: PHY Sync to eNB_index %d successful \n",
|
||||||
module_idP, frameP, eNB_index);
|
module_idP, frameP, eNB_index);
|
||||||
|
|||||||
@@ -2892,9 +2892,11 @@ int decode_BCCH_DLSCH_Message(
|
|||||||
if ((ctxt_pP->frame % 2) == 0) {
|
if ((ctxt_pP->frame % 2) == 0) {
|
||||||
// even frame
|
// even frame
|
||||||
if ((UE_rrc_inst[ctxt_pP->module_id].Info[eNB_index].SIStatus&1) == 0) {
|
if ((UE_rrc_inst[ctxt_pP->module_id].Info[eNB_index].SIStatus&1) == 0) {
|
||||||
|
if (!UE_rrc_inst[ctxt_pP->module_id].sib1[eNB_index]) {
|
||||||
|
LOG_E(PHY,"UE_rrc_inst[%d].sib1[%d] is null, allocating\n", ctxt_pP->module_id, eNB_index);
|
||||||
|
openair_rrc_ue_init(ctxt_pP->module_id, eNB_index);
|
||||||
|
}
|
||||||
LTE_SystemInformationBlockType1_t *sib1 = UE_rrc_inst[ctxt_pP->module_id].sib1[eNB_index];
|
LTE_SystemInformationBlockType1_t *sib1 = UE_rrc_inst[ctxt_pP->module_id].sib1[eNB_index];
|
||||||
if (!sib1)
|
|
||||||
LOG_E(PHY,"UE_rrc_inst[%d][%d] is null\n", ctxt_pP->module_id, eNB_index);
|
|
||||||
memcpy( sib1,
|
memcpy( sib1,
|
||||||
&bcch_message->message.choice.c1.choice.systemInformationBlockType1,
|
&bcch_message->message.choice.c1.choice.systemInformationBlockType1,
|
||||||
sizeof(LTE_SystemInformationBlockType1_t) );
|
sizeof(LTE_SystemInformationBlockType1_t) );
|
||||||
|
|||||||
Reference in New Issue
Block a user