Commit ba469c52 authored by gauthier's avatar gauthier

Tested in virtualization, with phy

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5851 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 722d2d63
......@@ -75,11 +75,14 @@ void dl_phy_sync_success(module_id_t module_idP,
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", module_idP, frameP, eNB_index);
#if ! defined(ENABLE_USE_MME)
if (first_sync==1) {
layer2_init_UE(module_idP);
openair_rrc_ue_init(module_idP,eNB_index);
}
else {
else
#endif
{
mac_in_sync_ind(module_idP,frameP,eNB_index);
}
......
......@@ -2886,6 +2886,11 @@ void *rrc_ue_task(void *args_p) {
LOG_I(RRC, "[UE %d] Received %s: state %d, plmnID %d, rat %x\n", ue_mod_id, msg_name, rrc_get_state(ue_mod_id),
NAS_CELL_SELECTION_REQ (msg_p).plmnID, NAS_CELL_SELECTION_REQ (msg_p).rat);
if (rrc_get_state(ue_mod_id) == RRC_STATE_INACTIVE) {
// have a look at MAC/main.c void dl_phy_sync_success(...)
openair_rrc_ue_init(ue_mod_id,0);
}
/* Save cell selection criterion */
{
UE_rrc_inst[ue_mod_id].plmnID = NAS_CELL_SELECTION_REQ (msg_p).plmnID;
......
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