Commit 0ba158b6 authored by gabriel's avatar gabriel

Correct error for 20 MHz execution

parent d723fb0d
...@@ -56,13 +56,15 @@ int init_frame_parms(LTE_DL_FRAME_PARMS *frame_parms,uint8_t osf) ...@@ -56,13 +56,15 @@ int init_frame_parms(LTE_DL_FRAME_PARMS *frame_parms,uint8_t osf)
frame_parms->symbols_per_tti = 12; frame_parms->symbols_per_tti = 12;
// Only numerology 2 is supported for Extended Cyclic Prefix // Only numerology 2 is supported for Extended Cyclic Prefix
frame_parms->numerology_index = 2; frame_parms->numerology_index = 2;
frame_parms->ttis_per_subframe = 4; frame_parms->ttis_per_subframe = 1;
frame_parms->slots_per_tti = 2; //only slot config 1 is supported frame_parms->slots_per_tti = 2; //only slot config 1 is supported
} else { } else {
frame_parms->nb_prefix_samples0 = 160; frame_parms->nb_prefix_samples0 = 160;
frame_parms->nb_prefix_samples = 144; frame_parms->nb_prefix_samples = 144;
frame_parms->symbols_per_tti = 14; frame_parms->symbols_per_tti = 14;
frame_parms->numerology_index = 0;
frame_parms->ttis_per_subframe = 1;
frame_parms->slots_per_tti = 2; //only slot config 1 is supported
} }
......
...@@ -665,9 +665,9 @@ int lte_dl_channel_estimation(PHY_VARS_UE *ue, ...@@ -665,9 +665,9 @@ int lte_dl_channel_estimation(PHY_VARS_UE *ue,
uint8_t previous_tti; uint8_t previous_tti;
if(Ns>>1 == 0) if(Ns>>1 == 0)
previous_tti = 10*ue->frame_parms.ttis_per_subframe-1; previous_tti = LTE_NUMBER_OF_SUBFRAMES_PER_FRAME*ue->frame_parms.ttis_per_subframe-1;
else else
previous_tti = ((Ns>>1) - 1 )%(ue->frame_parms.ttis_per_subframe-1); previous_tti = ((Ns>>1) - 1 )%(LTE_NUMBER_OF_SUBFRAMES_PER_FRAME*ue->frame_parms.ttis_per_subframe-1);
if((subframe_select(&ue->frame_parms,previous_tti) == SF_UL)) if((subframe_select(&ue->frame_parms,previous_tti) == SF_UL))
{ {
......
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