laforge has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/pysim/+/28769 )


Change subject: apdu/ts_102_221: SELECT: allow select of parent/ancestor DFs
......................................................................

apdu/ts_102_221: SELECT: allow select of parent/ancestor DFs

We need to pass the 'PARENT' flag to get_selectables() to be able
to track SELECT on any of the parent/ancestor DF FID.

Change-Id: Ia7ac627d5edccb97160c90688d720d887fad6ec7
---
M pySim/apdu/ts_102_221.py
1 file changed, 2 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/69/28769/1

diff --git a/pySim/apdu/ts_102_221.py b/pySim/apdu/ts_102_221.py
index 3597db8..769c38e 100644
--- a/pySim/apdu/ts_102_221.py
+++ b/pySim/apdu/ts_102_221.py
@@ -66,7 +66,7 @@
                     # iterate to next element in path
                     continue
                 else:
-                    sels = lchan.selected_file.get_selectables(['FIDS','MF'])
+                    sels = 
lchan.selected_file.get_selectables(['FIDS','MF','PARENT'])
                     if file_hex in sels:
                         if self.successful:
                             #print("\tSELECT %s" % sels[file_hex])
@@ -80,7 +80,7 @@
         elif mode == 'df_ef_or_mf_by_file_id':
             if len(self.cmd_data) != 2:
                 raise ValueError('Expecting a 2-byte FID')
-            sels = lchan.selected_file.get_selectables(['FIDS','MF'])
+            sels = lchan.selected_file.get_selectables(['FIDS','MF','PARENT'])
             file_hex = b2h(self.cmd_data)
             if file_hex in sels:
                 if self.successful:

--
To view, visit https://gerrit.osmocom.org/c/pysim/+/28769
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: Ia7ac627d5edccb97160c90688d720d887fad6ec7
Gerrit-Change-Number: 28769
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <[email protected]>
Gerrit-MessageType: newchange

Reply via email to