Commit c3c2b774 authored by Cedric Roux's avatar Cedric Roux

bugfix: do not get pCC_id if UE_id is invalid

parent 0d3fa211
......@@ -288,7 +288,7 @@ int rrc_mac_remove_ue(module_id_t mod_idP,rnti_t rntiP)
UE_list_t *UE_list = &eNB_mac_inst[mod_idP].UE_list;
int UE_id = find_UE_id(mod_idP,rntiP);
int pCC_id = UE_PCCID(mod_idP,UE_id);
int pCC_id;
if (UE_id == -1) {
LOG_W(MAC,"rrc_mac_remove_ue: UE %x not found\n", rntiP);
......@@ -296,6 +296,8 @@ int rrc_mac_remove_ue(module_id_t mod_idP,rnti_t rntiP)
return 0;
}
pCC_id = UE_PCCID(mod_idP,UE_id);
LOG_I(MAC,"Removing UE %d from Primary CC_id %d (rnti %x)\n",UE_id,pCC_id, rntiP);
dump_ue_list(UE_list,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