UE_template->mcs_UL[harq_pid]=cmin(UE_template->pre_assigned_mcs_ul,slice_maxmcs_uplink[slice_id]);//cmin (UE_template->pre_assigned_mcs_ul, openair_daq_vars.target_ue_ul_mcs); // adjust, based on user-defined MCS
@@ -1585,7 +1589,6 @@ assign_max_mcs_min_rb(module_id_t module_idP, int slice_id, int frameP,
uint16_tn,UE_id;
uint8_tCC_id;
rnti_trnti=-1;
intmcs;
intrb_table_index=0,tbs,tx_power;
eNB_MAC_INST*eNB=RC.mac[module_idP];
UE_list_t*UE_list=&eNB->UE_list;
...
...
@@ -1609,9 +1612,9 @@ assign_max_mcs_min_rb(module_id_t module_idP, int slice_id, int frameP,
continue;
if(UE_list->UE_sched_ctrl[i].phr_received==1)
mcs=20;// if we've received the power headroom information the UE, we can go to maximum mcs
UE_template->pre_assigned_mcs_ul=cmin(20,slice_maxmcs_uplink[slice_id]);// if we've received the power headroom information the UE, we can go to maximum mcs
else
mcs=10;// otherwise, limit to QPSK PUSCH
UE_template->pre_assigned_mcs_ul=cmin(10,slice_maxmcs_uplink[slice_id]);// otherwise, limit to QPSK PUSCH
UE_id=i;
...
...
@@ -1642,7 +1645,7 @@ assign_max_mcs_min_rb(module_id_t module_idP, int slice_id, int frameP,
// if this UE has UL traffic
if(bits_to_schedule>0){
tbs=get_TBS_UL(mcs,3)<<3;// 1 or 2 PRB with cqi enabled does not work well!
tbs=get_TBS_UL(UE_template->pre_assigned_mcs_ul,3)<<3;// 1 or 2 PRB with cqi enabled does not work well!
rb_table_index=2;
// fixme: set use_srs flag
...
...
@@ -1650,10 +1653,10 @@ assign_max_mcs_min_rb(module_id_t module_idP, int slice_id, int frameP,