Fix cqi_req_flag, to prevent continously schedule cqi after set it to 1 and before actually receive it at the right subframe.

This commit is contained in:
jftt_wangshanshan
2018-05-09 18:22:22 +08:00
parent f1cd05c1e0
commit 0928f049bb
2 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -1324,6 +1324,7 @@ schedule_ulsch_rnti(module_id_t module_idP,
cqi_req = 0;
} else {
cqi_req = 1;
UE_sched_ctrl->cqi_req_flag |= 1 << sched_subframeP;
}
UE_sched_ctrl->cqi_req_timer = 0;
} else
@@ -1857,7 +1858,7 @@ void schedule_ulsch_rnti(module_id_t module_idP,
else if (UE_sched_ctrl->cqi_req_timer>30) {
cqi_req = 1;
UE_sched_ctrl->cqi_req_timer=0;
UE_sched_ctrl->cqi_req_flag=1;
UE_sched_ctrl->cqi_req_flag |= 1 << sched_subframeP;
}
else
cqi_req = 0;