From 02686ce804ffad77c279d1d7a85ea54399701f34 Mon Sep 17 00:00:00 2001 From: Xenofon Foukas <x.foukas@sms.ed.ac.uk> Date: Mon, 22 Feb 2016 15:29:10 +0000 Subject: [PATCH] Added temporary notification for the deactivation of a UE in the MAC --- openair2/LAYER2/MAC/eNB_scheduler.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/openair2/LAYER2/MAC/eNB_scheduler.c b/openair2/LAYER2/MAC/eNB_scheduler.c index a39b9efb54..774feda961 100644 --- a/openair2/LAYER2/MAC/eNB_scheduler.c +++ b/openair2/LAYER2/MAC/eNB_scheduler.c @@ -135,6 +135,12 @@ void eNB_dlsch_ulsch_scheduler(module_id_t module_idP,uint8_t cooperation_flag, if (mac_xface->get_eNB_UE_stats(module_idP, CC_id, rnti)==NULL) { mac_remove_ue(module_idP, i, frameP, subframeP); + //Inform the controller about the UE deactivation. Should be moved to RRC agent in the future + if (mac_agent_registered[module_idP]) { + agent_mac_xface[module_idP]->enb_agent_notify_ue_state_change(module_idP, + rnti, + PROTOCOL__PRP_UE_STATE_CHANGE_TYPE__PRUESC_DEACTIVATED); + } } i = next_i; } -- GitLab