git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5835 818b1a75-f10b-46b9-bf7c-635c3b92a50f
This commit is contained in:
@@ -576,7 +576,7 @@ void schedule_ulsch_rnti(module_id_t module_idP,
|
|||||||
eNB_MAC_INST *eNB=&eNB_mac_inst[module_idP];
|
eNB_MAC_INST *eNB=&eNB_mac_inst[module_idP];
|
||||||
UE_list_t *UE_list=&eNB->UE_list;
|
UE_list_t *UE_list=&eNB->UE_list;
|
||||||
UE_TEMPLATE *UE_template;
|
UE_TEMPLATE *UE_template;
|
||||||
int rvidx_tab[4] = {0,3,1,2};
|
int rvidx_tab[4] = {0,2,3,1};
|
||||||
LTE_DL_FRAME_PARMS *frame_parms;
|
LTE_DL_FRAME_PARMS *frame_parms;
|
||||||
|
|
||||||
LOG_I(MAC,"entering ulsch preprocesor\n");
|
LOG_I(MAC,"entering ulsch preprocesor\n");
|
||||||
@@ -649,8 +649,9 @@ void schedule_ulsch_rnti(module_id_t module_idP,
|
|||||||
mcs = cmin (UE_template->pre_assigned_mcs_ul, openair_daq_vars.target_ue_ul_mcs); // adjust, based on user-defined MCS
|
mcs = cmin (UE_template->pre_assigned_mcs_ul, openair_daq_vars.target_ue_ul_mcs); // adjust, based on user-defined MCS
|
||||||
if (UE_template->pre_allocated_rb_table_index_ul >=0)
|
if (UE_template->pre_allocated_rb_table_index_ul >=0)
|
||||||
rb_table_index=UE_template->pre_allocated_rb_table_index_ul;
|
rb_table_index=UE_template->pre_allocated_rb_table_index_ul;
|
||||||
else // NN-->RK: check this condition
|
else {// NN-->RK: check this condition
|
||||||
rb_table_index=1; // for PHR
|
mcs=5;rb_table_index=1; // for PHR
|
||||||
|
}
|
||||||
buffer_occupancy = UE_template->ul_total_buffer;
|
buffer_occupancy = UE_template->ul_total_buffer;
|
||||||
|
|
||||||
while ((rb_table[rb_table_index]>(frame_parms->N_RB_UL-1-first_rb[CC_id])) &&
|
while ((rb_table[rb_table_index]>(frame_parms->N_RB_UL-1-first_rb[CC_id])) &&
|
||||||
@@ -689,7 +690,7 @@ void schedule_ulsch_rnti(module_id_t module_idP,
|
|||||||
LOG_I(MAC,"[eNB %d][PUSCH %d/%x] Frame %d subframeP %d Scheduled UE retransmission (mcs %d, first rb %d, nb_rb %d, TBS %d, harq_pid %d, round %d)\n",
|
LOG_I(MAC,"[eNB %d][PUSCH %d/%x] Frame %d subframeP %d Scheduled UE retransmission (mcs %d, first rb %d, nb_rb %d, TBS %d, harq_pid %d, round %d)\n",
|
||||||
module_idP,UE_id,rnti,frameP,subframeP,mcs,
|
module_idP,UE_id,rnti,frameP,subframeP,mcs,
|
||||||
first_rb[CC_id],UE_template->nb_rb_ul[harq_pid],
|
first_rb[CC_id],UE_template->nb_rb_ul[harq_pid],
|
||||||
mac_xface->get_TBS_UL(mcs,UE_template->nb_rb_ul[harq_pid]),
|
TBS,//mac_xface->get_TBS_UL(mcs,UE_template->nb_rb_ul[harq_pid]),
|
||||||
harq_pid, round);
|
harq_pid, round);
|
||||||
|
|
||||||
rballoc = mac_xface->computeRIV(frame_parms->N_RB_UL,
|
rballoc = mac_xface->computeRIV(frame_parms->N_RB_UL,
|
||||||
|
|||||||
@@ -940,7 +940,7 @@ void assign_max_mcs_min_rb(module_id_t module_idP,int frameP, sub_frame_t subfra
|
|||||||
tx_power= mac_xface->estimate_ue_tx_power(tbs,rb_table[rb_table_index],0,frame_parms->Ncp,0);
|
tx_power= mac_xface->estimate_ue_tx_power(tbs,rb_table[rb_table_index],0,frame_parms->Ncp,0);
|
||||||
|
|
||||||
while (((UE_template->phr_info - tx_power) < 0 ) &&
|
while (((UE_template->phr_info - tx_power) < 0 ) &&
|
||||||
(mcs > 0)){
|
(mcs > 3)){
|
||||||
// LOG_I(MAC,"UE_template->phr_info %d tx_power %d mcs %d\n", UE_template->phr_info,tx_power, mcs);
|
// LOG_I(MAC,"UE_template->phr_info %d tx_power %d mcs %d\n", UE_template->phr_info,tx_power, mcs);
|
||||||
mcs--;
|
mcs--;
|
||||||
tbs = mac_xface->get_TBS_UL(mcs,rb_table[rb_table_index]);
|
tbs = mac_xface->get_TBS_UL(mcs,rb_table[rb_table_index]);
|
||||||
@@ -1026,4 +1026,3 @@ void sort_ue_ul (module_id_t module_idP,int frameP, sub_frame_t subframeP){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user