mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-16 18:38:32 +03:00
pySim-shell: Create + use per-RuntimeLchan SimCardCommands
This new approach will "fork" separate SimCardCommands instances for each RuntimeLchan. Higher-layer code should now always use the RuntimeLchan.scc rather than the RuntimeState.card._scc in order to make sure commands use the correct logical channel. Change-Id: I13e2e871f2afc2460d9fd1cd566de42267c7d389 Related: OS#6230
This commit is contained in:
@@ -1001,7 +1001,7 @@ class DF_GSM(CardDF):
|
||||
@cmd2.with_argparser(authenticate_parser)
|
||||
def do_authenticate(self, opts):
|
||||
"""Perform GSM Authentication."""
|
||||
(data, sw) = self._cmd.card._scc.run_gsm(opts.rand)
|
||||
(data, sw) = self._cmd.lchan.scc.run_gsm(opts.rand)
|
||||
self._cmd.poutput_json(data)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user