@@ -154,7 +154,7 @@ int init_freq_channel_prach(channel_desc_t *desc,uint16_t nb_rb,int16_t n_sample
return(-1);
}
if(nb_rb-prach_prb_offset<6){
fprintf(stderr,"freq_channel_init: Impossible to allocate PRACH, modify prach_prb_offset value\n");
fprintf(stderr,"freq_channel_init: Impossible to allocate PRACH, check prach_prb_offset value (r_ra_prb=%d)\n",prach_prb_offset);
return(-1);
}
prach_samples=(prach_fmt<4)?13+839+12:3+139+2;
...
...
@@ -165,10 +165,10 @@ int init_freq_channel_prach(channel_desc_t *desc,uint16_t nb_rb,int16_t n_sample
delta_f=(prach_fmt<4)?nb_rb*180000/((n_samples-1)*12):nb_rb*180000/((n_samples-1)*2);//1.25 khz for preamble format 1,2,3. 7.5 khz for preample format 4
max_nb_rb_samples=nb_rb*180000/delta_f;//7200 if prach_fmt<4
prach_pbr_offset_samples=(prach_prb_offset+6)*180000/delta_f;//864 if prach_prb_offset=0,7200 if prach_prb_offset=44=50-6