Commit b2b74e5d authored by Nick Ho's avatar Nick Ho

Fix the logic of DL scheduling

parent d14c95b6
......@@ -290,6 +290,7 @@ void rx_sdu_NB_IoT(module_id_t module_id, int CC_id, frame_t frame, sub_frame_t
LOG_I(MAC,"DCCH PDU Here\n");
if((UE_state_machine == initial_access)||(UE_state_machine == rach_for_next))
{
block_RLC = 0;
mac_rlc_data_ind(
module_id,
rnti,
......
......@@ -121,4 +121,5 @@ extern int extend_alpha_offset[2];
extern const int si_repetition_pattern[4];
extern int waiting_flag_from_RLC;
extern int block_RLC;
#endif //DEF_H
......@@ -145,6 +145,7 @@ rach_state_t UE_state_machine = initial_access;
const int si_repetition_pattern[4] = {20, 40, 80, 160};
int waiting_flag_from_RLC = 0;
int block_RLC = 0;
#endif
......
......@@ -2616,7 +2616,11 @@ rlc_op_status_t rlc_data_req_NB_IoT (const protocol_ctxt_t* const ctxt_pP,
}
printf("\n");
*/
waiting_flag_from_RLC = 1;
if (block_RLC == 0)
{
waiting_flag_from_RLC = 1;
block_RLC = 1;
}
return RLC_OP_STATUS_OK;
} else {
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME(VCD_SIGNAL_DUMPER_FUNCTIONS_RLC_DATA_REQ,VCD_FUNCTION_OUT);
......
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