mirror of https://gerrit.osmocom.org/pysim
ts_31_102: Fix decode_select_response() for DF.5GS
In Change-Id I848a766e6d00be497c7db905475e0681cce197ac we added a CardDF instance for DF_5GS. That DF should not have provided a decode_select_response() method, and instead fall back to that of the base class, which calls the method of the parent directory (ADF_USIM). The difference is illustrated below pySIM-shell (MF/ADF.USIM/EF.IMSI)> select DF.5GS "622e8202782183025fc0a509800171830400018d088a01058c056611111111c60f90017083010183018183010a83010b" vs. (with this patch): pySIM-shell (MF/ADF.USIM)> select DF.5GS { "file_descriptor": { "shareable": true, "file_type": "df", "structure": "no_info_given" }, "file_identifier": "5FC0", "proprietary_info": { "uicc_characteristics": "71", "available_memory": 101640 }, "life_cycle_status_int": "operational_activated", "security_attrib_compact": "6611111111", "pin_status_template_do": "90017083010183018183010A83010B" } Change-Id: I80612711bbc8c47285a828a0759b20beea6619f1
This commit is contained in:
parent
ac34dcc149
commit
082d4e0956
|
@ -479,9 +479,6 @@ class DF_USIM_5GS(CardDF):
|
|||
|
||||
self.add_files(files)
|
||||
|
||||
def decode_select_response(self, data_hex):
|
||||
return data_hex
|
||||
|
||||
class ADF_USIM(CardADF):
|
||||
def __init__(self, aid='a0000000871002', name='ADF.USIM', fid=None, sfid=None,
|
||||
desc='USIM Application'):
|
||||
|
|
Loading…
Reference in New Issue