Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/src/phy/ch_estimation/chest_dl.c
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,7 @@ static float get_rsrp_neighbour_port(srsran_chest_dl_t* q, uint32_t port)
static float get_rsrp(srsran_chest_dl_t* q)
{
float max = -1e9;
for (int i = 0; i < q->nof_rx_antennas; ++i) {
for (int i = 0; i < q->cell.nof_ports; ++i) {
float v = get_rsrp_port(q, i);
if (v > max) {
max = v;
Expand Down
4 changes: 2 additions & 2 deletions lib/src/phy/rf/rf_blade_imp.c
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ double rf_blade_set_rx_freq(void* h, UNUSED uint32_t ch, double freq)
}
f_int = 0;
bladerf_get_frequency(handler->dev, BLADERF_RX_X1, &f_int);
printf("set RX frequency to %lu\n", f_int);
printf("set RX frequency to %llu\n", f_int);

return freq;
}
Expand All @@ -389,7 +389,7 @@ double rf_blade_set_tx_freq(void* h, UNUSED uint32_t ch, double freq)

f_int = 0;
bladerf_get_frequency(handler->dev, BLADERF_TX_X1, &f_int);
printf("set TX frequency to %lu\n", f_int);
printf("set TX frequency to %llu\n", f_int);
return freq;
}

Expand Down