diff --git a/srslte/lib/rf/src/rf_blade_imp.c b/srslte/lib/rf/src/rf_blade_imp.c index 4afe2a2c9..839fd588c 100644 --- a/srslte/lib/rf/src/rf_blade_imp.c +++ b/srslte/lib/rf/src/rf_blade_imp.c @@ -67,9 +67,9 @@ int rf_blade_start_tx_stream(void *h) int status; rf_blade_handler_t *handler = (rf_blade_handler_t*) h; - const unsigned int num_buffers = 16; + const unsigned int num_buffers = 64; const unsigned int buffer_size_tx = 1024; - const unsigned int num_transfers = 8; + const unsigned int num_transfers = 32; const unsigned int timeout_ms = 4000; status = bladerf_sync_config(handler->dev, @@ -97,10 +97,10 @@ int rf_blade_start_rx_stream(void *h) int status; rf_blade_handler_t *handler = (rf_blade_handler_t*) h; - const unsigned int num_buffers = 16; + const unsigned int num_buffers = 128; const unsigned int buffer_size_rx = 4*1024; const unsigned int buffer_size_tx = 1024; - const unsigned int num_transfers = 8; + const unsigned int num_transfers = 32; const unsigned int timeout_ms = 4000; /* Configure the device's RX module for use with the sync interface. diff --git a/srslte/lib/rf/src/rf_imp.c b/srslte/lib/rf/src/rf_imp.c index 830e1cea3..96269f65f 100644 --- a/srslte/lib/rf/src/rf_imp.c +++ b/srslte/lib/rf/src/rf_imp.c @@ -94,6 +94,10 @@ int srslte_rf_start_gain_thread(srslte_rf_t *rf, bool tx_gain_same_rx) { return 0; } +const char* srslte_rf_get_devname(srslte_rf_t *rf) { + return ((rf_dev_t*) rf->dev)->name; +} + int srslte_rf_open_devname(srslte_rf_t *rf, char *devname, char *args) { /* Try to open the device if name is provided */ if (devname) {