fix the issue with the pre-ci tests
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5756 818b1a75-f10b-46b9-bf7c-635c3b92a50f
This commit is contained in:
@@ -325,6 +325,8 @@ void schedule_ue_spec(module_id_t module_idP,
|
||||
eNB_MAC_INST *eNB = &eNB_mac_inst[module_idP];
|
||||
UE_list_t *UE_list = &eNB->UE_list;
|
||||
LTE_DL_FRAME_PARMS *frame_parms[MAX_NUM_CCs];
|
||||
int continue_flag=0;
|
||||
|
||||
if (UE_list->head==-1)
|
||||
return;
|
||||
|
||||
@@ -376,21 +378,29 @@ void schedule_ue_spec(module_id_t module_idP,
|
||||
if (rnti==0) {
|
||||
LOG_N(MAC,"Cannot find rnti for UE_id %d (num_UEs %d)\n",UE_id,UE_list->num_UEs);
|
||||
// mac_xface->macphy_exit("Cannot find rnti for UE_id");
|
||||
continue;
|
||||
continue_flag=1;
|
||||
}
|
||||
if (eNB_UE_stats==NULL) {
|
||||
LOG_N(MAC,"[eNB] Cannot find eNB_UE_stats\n");
|
||||
// mac_xface->macphy_exit("[MAC][eNB] Cannot find eNB_UE_stats\n");
|
||||
continue;
|
||||
continue_flag=1;
|
||||
}
|
||||
if ((pre_nb_available_rbs[CC_id][UE_id] == 0) || (nCCE[CC_id] < (1<<aggregation))) {
|
||||
LOG_D(MAC,"[eNB %d] Frame %d : no RB allocated for UE %d on CC_id %d: continue \n",
|
||||
module_idP, frameP, UE_id, CC_id, nb_rb_used0[CC_id], pre_nb_available_rbs[CC_id][UE_id], nCCE[CC_id], aggregation);
|
||||
//if(mac_xface->get_transmission_mode(module_idP,rnti)==5)
|
||||
continue; //to next user (there might be rbs availiable for other UEs in TM5
|
||||
continue_flag=1; //to next user (there might be rbs availiable for other UEs in TM5
|
||||
// else
|
||||
// break;
|
||||
}
|
||||
if (continue_flag == 1 ){
|
||||
add_ue_dlsch_info(module_idP,
|
||||
CC_id,
|
||||
UE_id,
|
||||
subframeP,
|
||||
S_DL_NONE);
|
||||
continue;
|
||||
}
|
||||
if (frame_parms[CC_id]->frame_type == TDD)
|
||||
set_ue_dai (subframeP,
|
||||
frame_parms[CC_id]->tdd_config,
|
||||
@@ -430,9 +440,10 @@ void schedule_ue_spec(module_id_t module_idP,
|
||||
UE_list->UE_template[CC_id][UE_id].rballoc_subband[harq_pid][j] = 0;
|
||||
}
|
||||
|
||||
LOG_D(MAC,"[eNB %d] Frame %d: Scheduling UE %d on CC_id %d (rnti %x, harq_pid %d, round %d, available rb %d, cqi %d, mcs %d, rrc status %d)\n",
|
||||
LOG_D(MAC,"[eNB %d] Frame %d: Scheduling UE %d on CC_id %d (rnti %x, harq_pid %d, round %d, rb %d, cqi %d, mcs %d, ncc %d, rrc %d)\n",
|
||||
module_idP, frameP, UE_id,CC_id,rnti,harq_pid, round,nb_available_rb,
|
||||
eNB_UE_stats->DL_cqi[0], eNB_UE_stats->dlsch_mcs1,
|
||||
nCCE[CC_id],
|
||||
UE_list->eNB_UE_stats[CC_id][UE_id].rrc_status);
|
||||
|
||||
|
||||
@@ -1718,7 +1729,7 @@ void fill_DLSCH_dci(module_id_t module_idP,frame_t frameP, sub_frame_t subframeP
|
||||
case 1:
|
||||
|
||||
case 2:
|
||||
LOG_D(MAC,"[USER-PLANE DEFAULT DRB] Adding UE spec DCI for %d PRBS (%x) => ",nb_rb,rballoc);
|
||||
LOG_D(MAC,"[eNB %d] Adding UE %d spec DCI for %d PRBS (rb alloc: %x) \n",module_idP, UE_id, nb_rb,rballoc);
|
||||
if (PHY_vars_eNB_g[module_idP][CC_id]->lte_frame_parms.frame_type == TDD) {
|
||||
switch (PHY_vars_eNB_g[module_idP][CC_id]->lte_frame_parms.N_RB_DL) {
|
||||
case 6:
|
||||
|
||||
@@ -540,6 +540,8 @@ void add_ue_spec_dci(DCI_PDU *DCI_pdu,void *pdu,rnti_t rnti,unsigned char dci_si
|
||||
DCI_pdu->dci_alloc[DCI_pdu->Num_common_dci+DCI_pdu->Num_ue_spec_dci].ra_flag = ra_flag;
|
||||
|
||||
DCI_pdu->Num_ue_spec_dci++;
|
||||
|
||||
LOG_D(MAC,"add ue specific dci format %d for rnti %d \n",dci_fmt,rnti);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -467,6 +467,7 @@ int l2_init(LTE_DL_FRAME_PARMS *frame_parms,int eMBMS_active, uint8_t cba_group_
|
||||
mac_xface->get_TBS_DL = get_TBS_DL;
|
||||
mac_xface->get_TBS_UL = get_TBS_UL;
|
||||
mac_xface->get_nCCE_max = get_nCCE_max;
|
||||
mac_xface->get_nCCE_offset = get_nCCE_offset;
|
||||
mac_xface->get_ue_mode = get_ue_mode;
|
||||
mac_xface->phy_config_sib1_eNB = phy_config_sib1_eNB;
|
||||
mac_xface->phy_config_sib1_ue = phy_config_sib1_ue;
|
||||
|
||||
@@ -241,6 +241,9 @@ typedef struct
|
||||
/// Function to retrieve number of CCE
|
||||
uint16_t (*get_nCCE_max)(module_id_t Mod_id,uint8_t CC_id);
|
||||
|
||||
/// Function to get the CCE offset
|
||||
int (*get_nCCE_offset)(unsigned char L, int nCCE, int common_dci, unsigned short rnti, unsigned char subframe);
|
||||
|
||||
/// Function to retrieve number of PRB in an rb_alloc
|
||||
uint32_t (*get_nb_rb)(uint8_t ra_header, uint32_t rb_alloc, int n_rb_dl);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user