Commit 113bca34 authored by Robert Schmidt's avatar Robert Schmidt

bugfix: deactive slice_counter

slice_counter had a wrong condition, not scheduling in DLSCH if the number of
slices is greater than one
parent 3aedea26
......@@ -1094,7 +1094,7 @@ typedef struct {
typedef struct {
/// counter used to indicate when all slices have pre-allocated UEs
int slice_counter;
//int slice_counter;
/// indicates whether remaining RBs after first intra-slice allocation will
/// be allocated to UEs of the same slice
......
......@@ -415,7 +415,7 @@ schedule_dlsch(module_id_t module_idP, frame_t frameP, sub_frame_t subframeP, in
sli->tot_pct_dl = 0;
sli->avg_pct_dl = 1.0 / sli->n_dl;
sli->slice_counter = sli->n_dl;
//sli->slice_counter = sli->n_dl;
// reset the slice percentage for inactive slices
for (i = sli->n_dl; i < MAX_NUM_SLICES; i++) {
......@@ -736,13 +736,13 @@ schedule_ue_spec(module_id_t module_idP, slice_id_t slice_idP,
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME(VCD_SIGNAL_DUMPER_FUNCTIONS_DLSCH_PREPROCESSOR, VCD_FUNCTION_OUT);
RC.mac[module_idP]->slice_info.slice_counter--;
//RC.mac[module_idP]->slice_info.slice_counter--;
// Do the multiplexing and actual allocation only when all slices have been pre-processed.
if (RC.mac[module_idP]->slice_info.slice_counter > 0) {
stop_meas(&eNB->schedule_dlsch);
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME(VCD_SIGNAL_DUMPER_FUNCTIONS_SCHEDULE_DLSCH, VCD_FUNCTION_OUT);
return;
}
//if (RC.mac[module_idP]->slice_info.slice_counter > 0) {
//stop_meas(&eNB->schedule_dlsch);
//VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME(VCD_SIGNAL_DUMPER_FUNCTIONS_SCHEDULE_DLSCH, VCD_FUNCTION_OUT);
//return;
//}
if (RC.mac[module_idP]->slice_info.interslice_share_active) {
dlsch_scheduler_interslice_multiplexing(module_idP, frameP, subframeP);
......
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