Attention is currently required from: dexter.
laforge has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-mgw/+/31269 )
Change subject: mgcp_e1: be more frugal withe E1 line resources
......................................................................
Patch Set 1:
(1 comment)
File src/libosmo-mgcp/mgcp_e1.c:
https://gerrit.osmocom.org/c/osmo-mgw/+/31269/comment/588f0198_b912a9e2
PS1, Line 445: e
it might be cleaner to introduce a e1inp_ts_config_none() api similar to the e1inp_ts_config_{hdlc,i460,raw,sign,trau}() we already have in libosmo-abis.
--
To view, visit https://gerrit.osmocom.org/c/osmo-mgw/+/31269
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-mgw
Gerrit-Branch: master
Gerrit-Change-Id: Ie6a32abbc5cd984f6d72a384e3b47c1b82ce7058
Gerrit-Change-Number: 31269
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: laforge <laforge(a)osmocom.org>
Gerrit-CC: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: dexter <pmaier(a)sysmocom.de>
Gerrit-Comment-Date: Sat, 11 Feb 2023 09:31:50 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: neels.
laforge has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-hnbgw/+/31293 )
Change subject: UE state leak: when HNB re-registers, discard previous UE state
......................................................................
Patch Set 1: Code-Review+1
--
To view, visit https://gerrit.osmocom.org/c/osmo-hnbgw/+/31293
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-hnbgw
Gerrit-Branch: master
Gerrit-Change-Id: I7fa8a04cc3b2dfba263bda5b410961c77fbed332
Gerrit-Change-Number: 31293
Gerrit-PatchSet: 1
Gerrit-Owner: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Attention: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Comment-Date: Sat, 11 Feb 2023 09:18:05 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: pespin.
laforge has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmo-gprs/+/31284 )
Change subject: rlcmac: Make sure entities are freed if lib is re-initialized
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit https://gerrit.osmocom.org/c/libosmo-gprs/+/31284
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-gprs
Gerrit-Branch: master
Gerrit-Change-Id: I568e2f783a575ae457f0845eca34951ae9822eeb
Gerrit-Change-Number: 31284
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Sat, 11 Feb 2023 09:15:41 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: pespin.
laforge has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmo-gprs/+/31283 )
Change subject: rlcmac: llc_queue: Make sure queue is cleared before freeing mem
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit https://gerrit.osmocom.org/c/libosmo-gprs/+/31283
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-gprs
Gerrit-Branch: master
Gerrit-Change-Id: Iadd08c727d46dfb5cac4df5219ecbcbacf6482eb
Gerrit-Change-Number: 31283
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Sat, 11 Feb 2023 09:14:29 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
laforge has submitted this change. ( https://gerrit.osmocom.org/c/pysim/+/31288 )
Change subject: cards: sysmo-isim-sja2: make sure an ADF is present in EF.DIR before selecting it
......................................................................
cards: sysmo-isim-sja2: make sure an ADF is present in EF.DIR before selecting it
sysmo-isim-sja2 may come in different configurations, so some may
intentionally lack ADF.USIM or ADF.ISIM. Since select_adf_by_aid() may
raise an exception when selecting a non existent file we should make
sure that the ADF we intend to select is indeed present. A reliable way
to do this is to check if the application is registered in EF.DIR.
Change-Id: Icf6f6b36f246398af408ec432d493fe3f22963dd
---
M pySim/cards.py
1 file changed, 18 insertions(+), 7 deletions(-)
Approvals:
Jenkins Builder: Verified
laforge: Looks good to me, approved
diff --git a/pySim/cards.py b/pySim/cards.py
index 4dc20a4..b48a80c 100644
--- a/pySim/cards.py
+++ b/pySim/cards.py
@@ -307,6 +307,15 @@
return aid_known
return None
+ def adf_present(self, adf="usim") -> bool:
+ """Check if the AID of the specified ADF is present in EF.DIR (call read_aids before use)"""
+ aid = self._get_aid(adf)
+ if aid:
+ aid_full = self._complete_aid(aid)
+ if aid_full:
+ return True
+ return False
+
def select_adf_by_aid(self, adf="usim"):
"""Select ADF.U/ISIM in the Card using its full AID"""
if is_hex(adf):
@@ -1437,6 +1446,9 @@
def program(self, p):
self.verify_adm(h2b(p['pin_adm']))
+ # Populate AIDs
+ self.read_aids()
+
# This type of card does not allow to reprogram the ICCID.
# Reprogramming the ICCID would mess up the card os software
# license management, so the ICCID must be kept at its factory
@@ -1514,9 +1526,6 @@
if sw != '9000':
print("Programming ACC failed with code %s" % sw)
- # Populate AIDs
- self.read_aids()
-
# update EF-SIM_AUTH_KEY (and EF-USIM_AUTH_KEY_2G, which is
# hard linked to EF-USIM_AUTH_KEY)
self._scc.select_path(['3f00'])
@@ -1527,8 +1536,9 @@
self._scc.update_binary('6f20', p['opc'], 17)
# update EF-USIM_AUTH_KEY in ADF.ISIM
- data, sw = self.select_adf_by_aid(adf="isim")
- if sw == '9000':
+ if self.adf_present("isim"):
+ self.select_adf_by_aid(adf="isim")
+
if p.get('ki'):
self._scc.update_binary('af20', p['ki'], 1)
if p.get('opc'):
@@ -1575,8 +1585,9 @@
if sw != '9000':
print("Programming IMPU failed with code %s" % sw)
- data, sw = self.select_adf_by_aid(adf="usim")
- if sw == '9000':
+ if self.adf_present("usim"):
+ self.select_adf_by_aid(adf="usim")
+
# EF.AD in ADF.USIM
if (p.get('mcc') and p.get('mnc')) or p.get('opmode'):
if p.get('mcc') and p.get('mnc'):
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/31288
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: Icf6f6b36f246398af408ec432d493fe3f22963dd
Gerrit-Change-Number: 31288
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: merged