FlexRAN: Circumvent different RRC/MAC layer user ID sorting

* RRC and MAC might sort users differently
* therefore, we have to "reverse lookup" the MAC ID from the RNTI when filling
  user info
* For this purpose, add RAN API function flexran_get_mac_ue_id_rnti()
This commit is contained in:
Robert Schmidt
2018-12-05 11:46:26 +01:00
parent 8d862dace4
commit 62b89f828a
4 changed files with 22 additions and 3 deletions
+2 -1
View File
@@ -249,7 +249,8 @@ int flexran_agent_handle_stats(mid_t mod_id, const void *params, Protocol__Flexr
if (flexran_agent_get_rrc_xface(mod_id) && flexran_agent_get_mac_xface(mod_id)
&& flexran_get_rrc_num_ues(mod_id) != flexran_get_mac_num_ues(mod_id)) {
LOG_E(FLEXRAN_AGENT, "different numbers of UEs in RRC and MAC\n");
LOG_E(FLEXRAN_AGENT, "different numbers of UEs in RRC (%d) and MAC (%d)\n",
flexran_get_rrc_num_ues(mod_id), flexran_get_mac_num_ues(mod_id));
goto error;
}
report_config.ue_report_type = malloc(sizeof(ue_report_type_t) * report_config.nr_ue);