From 9c3871177303e950600040463d1664758a555d2f Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Tue, 5 Dec 2023 18:19:24 +0100 Subject: [PATCH] ara_m: Fix encoding of DeviceInterfaceVersionDO Ever since commit 30de9fd8abc9d7c2c541fea7fa4b97c4ca1a54eb in July we are (properly) using snake_case names in the from_dict (to become bijective with to_dict). This code was not updated by accident, creating an exception when using the `aram_get_config` Change-Id: If216b56b38ab17d13896074aa726278b9ba16923 Related: OS#6119 --- pySim/ara_m.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pySim/ara_m.py b/pySim/ara_m.py index b4ac7471..68244d12 100644 --- a/pySim/ara_m.py +++ b/pySim/ara_m.py @@ -295,7 +295,7 @@ class ADF_ARAM(CardADF): @staticmethod def get_config(tp, v_major=0, v_minor=0, v_patch=1): cmd_do = DeviceConfigDO() - cmd_do.from_dict([{'DeviceInterfaceVersionDO': { + cmd_do.from_dict([{'device_interface_version_do': { 'major': v_major, 'minor': v_minor, 'patch': v_patch}}]) return ADF_ARAM.xceive_apdu_tlv(tp, '80cadf21', cmd_do, ResponseAramConfigDO)