From c6169f0fd3df0ebb22b69143318e41fe743ab74e Mon Sep 17 00:00:00 2001
From: Xu Bo <xubo1@cn.fujitsu.com>
Date: Sat, 13 Jan 2018 09:50:17 +0000
Subject: [PATCH] reduce the LC channel number from 11 to 3(DCCH, DCCH1, DTCH)
when schedule dlsch
---
openair2/LAYER2/MAC/eNB_scheduler_dlsch.c | 5 +++++
openair2/LAYER2/MAC/pre_processor.c | 6 +++++-
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/openair2/LAYER2/MAC/eNB_scheduler_dlsch.c b/openair2/LAYER2/MAC/eNB_scheduler_dlsch.c
index 6fa7ce8ad8..1b3a85e5ee 100644
--- a/openair2/LAYER2/MAC/eNB_scheduler_dlsch.c
+++ b/openair2/LAYER2/MAC/eNB_scheduler_dlsch.c
@@ -1048,7 +1048,12 @@ schedule_ue_spec(module_id_t module_idP,
header_len_dtch = 0;
header_len_dtch_last = 0; // the header length of the last mac sdu
// lcid has to be sorted before the actual allocation (similar struct as ue_list).
+#if defined(UE_EXPANSION) || defined(UE_EXPANSION_SIM2)
+ lcid = DTCH;
+ {
+#else
for (lcid = NB_RB_MAX - 1; lcid >= DTCH; lcid--) {
+#endif
// TBD: check if the lcid is active
header_len_dtch += 3;
diff --git a/openair2/LAYER2/MAC/pre_processor.c b/openair2/LAYER2/MAC/pre_processor.c
index 3650601144..a68be45f4b 100644
--- a/openair2/LAYER2/MAC/pre_processor.c
+++ b/openair2/LAYER2/MAC/pre_processor.c
@@ -119,7 +119,11 @@ store_dlsch_buffer(module_id_t Mod_id, frame_t frameP,
rnti = UE_RNTI(Mod_id, UE_id);
- for (i = 0; i < MAX_NUM_LCID; i++) { // loop over all the logical channels
+#if defined(UE_EXPANSION) || defined(UE_EXPANSION_SIM2)
+ for (i = DCCH; i <=DTCH; i++) { // loop over DCCH, DCCH1 and DTCH
+#else
+ for (i = 0; i < MAX_NUM_LCID; i++) { // loop over all the logical channels
+#endif
rlc_status =
mac_rlc_status_ind(Mod_id, rnti, Mod_id, frameP, subframeP,
--
GitLab