mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-06-24 08:48:30 +03:00
pySim/ts_51_011: rewrite comment for better understanding
The comment reads like that we were applying TS 102.221 here, but we only mean our internal decoding format. The spec that actually matters here is TS 51.011. Let's rephrase the comment so that this becomes more clear. Related: OS#7018 Change-Id: Ie0184eea25f4d9f4baf9ab137c53a926edba2bf8
This commit is contained in:
+5
-3
@@ -1263,9 +1263,11 @@ class CardProfileSIM(CardProfile):
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def decode_select_response(resp_hex: str) -> object:
|
def decode_select_response(resp_hex: str) -> object:
|
||||||
# we try to build something that resembles a dict resulting from the TLV decoder
|
"""
|
||||||
# of TS 102.221 (FcpTemplate), so that higher-level code only has to deal with one
|
Decode the select response to a dict representation, similar to the one of TS 102.221 (see ts_102_221.py,
|
||||||
# format of SELECT response
|
class FcpTemplate), so that higher-level code only has to deal with one respresentation. See also
|
||||||
|
3GPP TS 51.011, section 9.2.1
|
||||||
|
"""
|
||||||
resp_bin = h2b(resp_hex)
|
resp_bin = h2b(resp_hex)
|
||||||
struct_of_file_map = {
|
struct_of_file_map = {
|
||||||
0: 'transparent',
|
0: 'transparent',
|
||||||
|
|||||||
Reference in New Issue
Block a user