#include #include #include #include #include "uhd.h" #include "utils/vector.h" #include "utils/debug.h" int uhd_rssi_scan(void *uhd, float *freqs, float *rssi, int nof_bands, double fs, int nsamp) { int i, j; int ret = -1; _Complex float *buffer; double f; buffer = calloc(nsamp, sizeof(_Complex float)); if (!buffer) { goto free_and_exit; } uhd_set_rx_gain(uhd, 0.0); uhd_set_rx_srate(uhd, fs); for (i=0;i