aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/soapy.c
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2017-05-31 18:14:20 +0200
committerAndreas Eversberg <jolly@eversberg.eu>2017-06-10 13:08:25 +0200
commit329463bb8c5c14a1f54f0a057bacaf1441f01ed0 (patch)
tree6240dd75c46382785e64e7b6cb99d934edbf2000 /src/common/soapy.c
parentaef4cf09977a7b58d0b3e3671da7aa6b3ae6405c (diff)
SDR: Add option to give channel number
Using SoapySDR server allows to run different networks on multi channel SDR devices.
Diffstat (limited to 'src/common/soapy.c')
-rw-r--r--src/common/soapy.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/soapy.c b/src/common/soapy.c
index 4a762cd..d1b37c0 100644
--- a/src/common/soapy.c
+++ b/src/common/soapy.c
@@ -35,10 +35,9 @@ static double samplerate;
static uint64_t rx_count = 0;
static uint64_t tx_count = 0;
-int soapy_open(const char *device_args, double tx_frequency, double rx_frequency, double rate, double rx_gain, double tx_gain, double bandwidth)
+int soapy_open(size_t channel, const char *device_args, double tx_frequency, double rx_frequency, double rate, double rx_gain, double tx_gain, double bandwidth)
{
double got_frequency, got_rate, got_gain, got_bandwidth;
- size_t channel = 0;
char *arg_string = strdup(device_args), *key, *val;
SoapySDRKwargs args;