Adding band information for NBIoT

This commit is contained in:
Sébastien Dudek 2023-02-19 12:03:48 +01:00
parent 86a921c94a
commit 8479ae4791
1 changed files with 1 additions and 1 deletions

View File

@ -247,7 +247,7 @@ int main(int argc, char** argv)
cell.base.cp = SRSRAN_CP_NORM;
cellog_fifo = open(fifo_file, O_WRONLY);
sprintf(logstr, "[CellInfo]:CID=%d;DL_EARFCN=%d;FREQ=%.1f MHz;POWER=%.1f dBm\n", cell.n_id_ncell, channels[freq].id, channels[freq].fd, srsran_convert_power_to_dB(found_cells[i].peak));
sprintf(logstr, "[CellInfo]:CID=%d;DL_EARFCN=%d;FREQ=%.1f MHz;BAND=%d;POWER=%.1f dBm\n", cell.n_id_ncell, channels[freq].id, channels[freq].fd, band,srsran_convert_power_to_dB(found_cells[i].peak));
write(cellog_fifo, logstr, strlen(logstr)+1);
close(cellog_fifo);