|
|
@ -1326,8 +1326,9 @@ int phch_recv::scell_recv::find_cells(cf_t *input_buffer, float rx_gain_offset,
|
|
|
|
|
|
|
|
|
|
|
|
for (uint32_t sf5_cnt=0;sf5_cnt<nof_sf/5;sf5_cnt++) {
|
|
|
|
for (uint32_t sf5_cnt=0;sf5_cnt<nof_sf/5;sf5_cnt++) {
|
|
|
|
sync_res = srslte_sync_find(&sync_find, input_buffer, sf5_cnt*5*sf_len, &peak_idx);
|
|
|
|
sync_res = srslte_sync_find(&sync_find, input_buffer, sf5_cnt*5*sf_len, &peak_idx);
|
|
|
|
Info("INTRA: n_id_2=%d, cnt=%d/%d, sync_res=%d, sf_idx=%d, peak_idx=%d, peak_value=%f\n",
|
|
|
|
Info("INTRA: n_id_2=%d, cnt=%d/%d, sync_res=%d, cell_id=%d, sf_idx=%d, peak_idx=%d, peak_value=%f\n",
|
|
|
|
n_id_2, sf5_cnt, nof_sf/5, sync_res, srslte_sync_get_sf_idx(&sync_find), peak_idx, sync_find.peak_value);
|
|
|
|
n_id_2, sf5_cnt, nof_sf/5, sync_res, srslte_sync_get_cell_id(&sync_find),
|
|
|
|
|
|
|
|
srslte_sync_get_sf_idx(&sync_find), peak_idx, sync_find.peak_value);
|
|
|
|
|
|
|
|
|
|
|
|
if (sync_find.peak_value > max_peak && sync_res == SRSLTE_SYNC_FOUND) {
|
|
|
|
if (sync_find.peak_value > max_peak && sync_res == SRSLTE_SYNC_FOUND) {
|
|
|
|
best_sync_res = sync_res;
|
|
|
|
best_sync_res = sync_res;
|
|
|
|