aboutsummaryrefslogtreecommitdiffstats
path: root/pySim/transport/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'pySim/transport/__init__.py')
-rw-r--r--pySim/transport/__init__.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/pySim/transport/__init__.py b/pySim/transport/__init__.py
index 2ffb9c3..e0e1e62 100644
--- a/pySim/transport/__init__.py
+++ b/pySim/transport/__init__.py
@@ -289,17 +289,15 @@ def init_reader(opts, **kwargs) -> LinkBase:
"""
if opts.pcsc_dev is not None:
from pySim.transport.pcsc import PcscSimLink
- sl = PcscSimLink(opts.pcsc_dev, **kwargs)
+ sl = PcscSimLink(opts, **kwargs)
elif opts.osmocon_sock is not None:
from pySim.transport.calypso import CalypsoSimLink
- sl = CalypsoSimLink(sock_path=opts.osmocon_sock, **kwargs)
+ sl = CalypsoSimLink(opts, **kwargs)
elif opts.modem_dev is not None:
from pySim.transport.modem_atcmd import ModemATCommandLink
- sl = ModemATCommandLink(
- device=opts.modem_dev, baudrate=opts.modem_baud, **kwargs)
+ sl = ModemATCommandLink(opts, **kwargs)
else: # Serial reader is default
print("No reader/driver specified; falling back to default (Serial reader)")
from pySim.transport.serial import SerialSimLink
- sl = SerialSimLink(device=opts.device,
- baudrate=opts.baudrate, **kwargs)
+ sl = SerialSimLink(opts, **kwargs)
return sl