apps/grgsm_trx: get rid of unused subdev_spec
This could be specified via the device_args,
for example: "subdev=B:0".
diff --git a/apps/grgsm_trx b/apps/grgsm_trx
index a5cb1ee..7886b12 100755
--- a/apps/grgsm_trx
+++ b/apps/grgsm_trx
@@ -43,7 +43,6 @@
# PHY specific
phy_sample_rate = 2000000
- phy_subdev_spec = False
phy_gain = 30
phy_args = ""
phy_ppm = 0
@@ -57,9 +56,8 @@
def run(self):
# Init Radio interface
- self.radio = radio_if(self.phy_args, self.phy_subdev_spec,
- self.phy_sample_rate, self.phy_gain, self.phy_ppm,
- self.remote_addr, self.base_port)
+ self.radio = radio_if(self.phy_args, self.phy_sample_rate,
+ self.phy_gain, self.phy_ppm, self.remote_addr, self.base_port)
# Power measurement emulation
# Noise: -120 .. -105
@@ -99,7 +97,6 @@
s += " Radio interface specific\n" \
" -a --device-args Set device arguments\n" \
" -s --sample-rate Set PHY sample rate (default 2000000)\n" \
- " -S --subdev-spec Set PHY sub-device specification\n" \
" -g --gain Set PHY gain (default 30)\n" \
" --ppm Set PHY frequency correction (default 0)\n"
@@ -108,9 +105,9 @@
def parse_argv(self):
try:
opts, args = getopt.getopt(sys.argv[1:],
- "a:p:i:s:S:g:h",
+ "a:p:i:s:g:h",
["help", "remote-addr=", "base-port=", "device-args=",
- "gain=", "subdev-spec=", "sample-rate=", "ppm="])
+ "gain=", "sample-rate=", "ppm="])
except getopt.GetoptError as err:
# Print(help and exit)
self.print_help()
@@ -137,8 +134,6 @@
self.phy_args = v
elif o in ("-g", "--gain"):
self.phy_gain = int(v)
- elif o in ("-S", "--subdev-spec"):
- self.phy_subdev_spec = v
elif o in ("-s", "--sample-rate"):
self.phy_sample_rate = int(v)
elif o in ("--ppm"):
diff --git a/python/trx/radio_if.py b/python/trx/radio_if.py
index 5791f42..a6cd23c 100644
--- a/python/trx/radio_if.py
+++ b/python/trx/radio_if.py
@@ -36,7 +36,6 @@
# PHY specific variables
samp_rate = 2000000
shiftoff = 400e3
- subdev_spec = "" # TODO: use it
device_args = ""
fc = 941.6e6 # TODO: set ARFCN to 0?
gain = 30
@@ -46,9 +45,8 @@
trx_started = False
fc_set = False
- def __init__(self, phy_args, phy_subdev_spec,
- phy_sample_rate, phy_gain, phy_ppm,
- trx_remote_addr, trx_base_port):
+ def __init__(self, phy_args, phy_sample_rate, phy_gain, phy_ppm,
+ trx_remote_addr, trx_base_port):
print("[i] Init Radio interface")
# TRX block specific variables
@@ -56,7 +54,6 @@
self.trx_base_port = trx_base_port
# PHY specific variables
- self.subdev_spec = phy_subdev_spec
self.samp_rate = phy_sample_rate
self.device_args = phy_args
self.gain = phy_gain