|
|
@ -118,16 +118,20 @@ int srslte_ue_sync_init(srslte_ue_sync_t *q,
|
|
|
|
q->sf_len = SRSLTE_SF_LEN(q->fft_size);
|
|
|
|
q->sf_len = SRSLTE_SF_LEN(q->fft_size);
|
|
|
|
q->file_mode = false;
|
|
|
|
q->file_mode = false;
|
|
|
|
q->correct_cfo = true;
|
|
|
|
q->correct_cfo = true;
|
|
|
|
q->decode_sss_on_track = true;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (cell.id == 1000) {
|
|
|
|
if (cell.id == 1000) {
|
|
|
|
|
|
|
|
|
|
|
|
/* If the cell is unkown, we search PSS/SSS in 5 ms */
|
|
|
|
/* If the cell is unkown, we search PSS/SSS in 5 ms */
|
|
|
|
q->nof_recv_sf = 5;
|
|
|
|
q->nof_recv_sf = 5;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
q->decode_sss_on_track = true;
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
|
|
/* If the cell is known, we work on a 1ms basis */
|
|
|
|
/* If the cell is known, we work on a 1ms basis */
|
|
|
|
q->nof_recv_sf = 1;
|
|
|
|
q->nof_recv_sf = 1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
q->decode_sss_on_track = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
q->frame_len = q->nof_recv_sf*q->sf_len;
|
|
|
|
q->frame_len = q->nof_recv_sf*q->sf_len;
|
|
|
|