|
|
|
@ -204,6 +204,7 @@ float rf_uhd_get_rssi(void *h) {
|
|
|
|
|
|
|
|
|
|
int rf_uhd_open(char *args, void **h)
|
|
|
|
|
{
|
|
|
|
|
if (h) {
|
|
|
|
|
*h = NULL;
|
|
|
|
|
|
|
|
|
|
rf_uhd_handler_t *handler = (rf_uhd_handler_t*) malloc(sizeof(rf_uhd_handler_t));
|
|
|
|
@ -221,6 +222,11 @@ int rf_uhd_open(char *args, void **h)
|
|
|
|
|
uhd_string_vector_make(&devices_str);
|
|
|
|
|
uhd_usrp_find("", &devices_str);
|
|
|
|
|
|
|
|
|
|
// Allow NULL parameter
|
|
|
|
|
if (args == NULL) {
|
|
|
|
|
args = "";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* If device type or name not given in args, choose a B200 */
|
|
|
|
|
if (args[0]=='\0') {
|
|
|
|
|
// If B200 is available, use it
|
|
|
|
@ -294,6 +300,9 @@ int rf_uhd_open(char *args, void **h)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
} else {
|
|
|
|
|
return SRSLTE_ERROR_INVALID_INPUTS;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|