Commit c2148e1e authored by Cedric Roux's avatar Cedric Roux

do not use put_harq_pid_in_freelist/remove_harq_pid_from_freelist

parent b8f42918
...@@ -137,12 +137,15 @@ uint8_t is_SR_subframe(PHY_VARS_eNB *phy_vars_eNB,uint8_t UE_id,uint8_t sched_su ...@@ -137,12 +137,15 @@ uint8_t is_SR_subframe(PHY_VARS_eNB *phy_vars_eNB,uint8_t UE_id,uint8_t sched_su
void put_harq_pid_in_freelist(LTE_eNB_DLSCH_t *DLSCH_ptr, int harq_pid) void put_harq_pid_in_freelist(LTE_eNB_DLSCH_t *DLSCH_ptr, int harq_pid)
{ {
#ifndef FAPI
DLSCH_ptr->harq_pid_freelist[DLSCH_ptr->tail_freelist] = harq_pid; DLSCH_ptr->harq_pid_freelist[DLSCH_ptr->tail_freelist] = harq_pid;
DLSCH_ptr->tail_freelist = (DLSCH_ptr->tail_freelist + 1) % 10; DLSCH_ptr->tail_freelist = (DLSCH_ptr->tail_freelist + 1) % 10;
#endif /* #ifndef FAPI */
} }
void remove_harq_pid_from_freelist(LTE_eNB_DLSCH_t *DLSCH_ptr, int harq_pid) void remove_harq_pid_from_freelist(LTE_eNB_DLSCH_t *DLSCH_ptr, int harq_pid)
{ {
#ifndef FAPI
if (DLSCH_ptr->head_freelist == DLSCH_ptr->tail_freelist) { if (DLSCH_ptr->head_freelist == DLSCH_ptr->tail_freelist) {
LOG_E(PHY, "%s:%d: you cannot read this!\n", __FILE__, __LINE__); LOG_E(PHY, "%s:%d: you cannot read this!\n", __FILE__, __LINE__);
abort(); abort();
...@@ -157,6 +160,7 @@ void remove_harq_pid_from_freelist(LTE_eNB_DLSCH_t *DLSCH_ptr, int harq_pid) ...@@ -157,6 +160,7 @@ void remove_harq_pid_from_freelist(LTE_eNB_DLSCH_t *DLSCH_ptr, int harq_pid)
abort(); abort();
} }
DLSCH_ptr->head_freelist = (DLSCH_ptr->head_freelist + 1) % 10; DLSCH_ptr->head_freelist = (DLSCH_ptr->head_freelist + 1) % 10;
#endif /* #ifndef FAPI */
} }
int32_t add_ue(int16_t rnti, PHY_VARS_eNB *phy_vars_eNB) int32_t add_ue(int16_t rnti, PHY_VARS_eNB *phy_vars_eNB)
......
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