Attention is currently required from: fixeria, laforge.
dexter uploaded patch set #2 to this change.
The following approvals got outdated and were removed: Code-Review+1 by fixeria, Code-Review-1 by laforge, Verified+1 by Jenkins Builder
commands: avoid double lchan patching, get rid of cla_byte getter+setter methods
The SimCardCommands has a cla_byte @property method, which automatically
returns the lchan patched CLA byte. We use cla_byte property to build
the UICC command APDUs inside SimCardCommands and then we hand the APDU
over to the send_apdu* methods. The cla_byte @property method as well
as the send_apdu* methods perform the lchan patching. This means the CLA
byte gets patched twice, which is technically not an issue, but can be
confusing when trying to understand the code.
To fix this, let's remove the @property methods and turn cla_byte into
a normal property again. This is also more accurate since the cla_byte
property originally was introduced to switch between UICC and classic
SIM APDU commands, which have almost identcal APDUs.
Related: OS#6531
Change-Id: I420f8a5f7ff8d9e5ef94d6519fb3716d6c7caf64
---
M pySim/commands.py
1 file changed, 1 insertion(+), 12 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/37/37937/2
To view, visit change 37937. To unsubscribe, or for help writing mail filters, visit settings.