Commit a5d5a21d authored by Cedric Roux's avatar Cedric Roux

"fix" handling of UE_id in RA.

What if it's -1? Is it possible?
We catch the case and abort.

We may do a proper fix if the case happen.
I don't think it will, but who knows...
parent 89445da9
...@@ -73,7 +73,7 @@ void schedule_RA(module_id_t module_idP,frame_t frameP, sub_frame_t subframeP,un ...@@ -73,7 +73,7 @@ void schedule_RA(module_id_t module_idP,frame_t frameP, sub_frame_t subframeP,un
unsigned char i,harq_pid,round; unsigned char i,harq_pid,round;
int16_t rrc_sdu_length; int16_t rrc_sdu_length;
unsigned char lcid,offset; unsigned char lcid,offset;
module_id_t UE_id= UE_INDEX_INVALID; int UE_id = -1;
unsigned short TBsize = -1; unsigned short TBsize = -1;
unsigned short msg4_padding,msg4_post_padding,msg4_header; unsigned short msg4_padding,msg4_post_padding,msg4_header;
uint8_t *vrb_map; uint8_t *vrb_map;
...@@ -266,6 +266,7 @@ void schedule_RA(module_id_t module_idP,frame_t frameP, sub_frame_t subframeP,un ...@@ -266,6 +266,7 @@ void schedule_RA(module_id_t module_idP,frame_t frameP, sub_frame_t subframeP,un
// check for Msg4 Message // check for Msg4 Message
UE_id = find_UE_id(module_idP,RA_template->rnti); UE_id = find_UE_id(module_idP,RA_template->rnti);
if (UE_id == -1) { printf("%s:%d:%s: FATAL ERROR\n", __FILE__, __LINE__, __FUNCTION__); abort(); }
if (Is_rrc_registered == 1) { if (Is_rrc_registered == 1) {
......
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