Commit 8cace653 authored by Robert Schmidt's avatar Robert Schmidt

correctly check for MAC presence in FlexRAN RAN API

parent 307e2f29
...@@ -131,7 +131,7 @@ int8_t flexran_get_ue_phr(mid_t mod_id, mid_t ue_id) ...@@ -131,7 +131,7 @@ int8_t flexran_get_ue_phr(mid_t mod_id, mid_t ue_id)
uint8_t flexran_get_ue_wcqi(mid_t mod_id, mid_t ue_id) uint8_t flexran_get_ue_wcqi(mid_t mod_id, mid_t ue_id)
{ {
if (!phy_is_present(mod_id, 0)) return 0; if (!mac_is_present(mod_id)) return 0;
return RC.mac[mod_id]->UE_list.UE_sched_ctrl[ue_id].dl_cqi[0]; return RC.mac[mod_id]->UE_list.UE_sched_ctrl[ue_id].dl_cqi[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