fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/pysim/+/27882 )
Change subject: transport/pcsc: throw ReaderError with a message
......................................................................
transport/pcsc: throw ReaderError with a message
Before this patch:
$ ./pySim-shell.py -p 0
Card reader initialization failed with an exception of type:
<class 'pySim.exceptions.ReaderError'>
after:
$ ./pySim-shell.py -p 0
Card reader initialization failed with exception:
No reader found with number 0
Change-Id: Id08c4990857f7083a8d1cefc90ff85fc20ab6fef
---
M pySim/transport/pcsc.py
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/82/27882/1
diff --git a/pySim/transport/pcsc.py b/pySim/transport/pcsc.py
index ca1751a..0f87b18 100644
--- a/pySim/transport/pcsc.py
+++ b/pySim/transport/pcsc.py
@@ -34,7 +34,7 @@
super().__init__(**kwargs)
r = readers()
if reader_number >= len(r):
- raise ReaderError
+ raise ReaderError('No reader found with number %d' % reader_number)
self._reader = r[reader_number]
self._con = self._reader.createConnection()
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/27882
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: Id08c4990857f7083a8d1cefc90ff85fc20ab6fef
Gerrit-Change-Number: 27882
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: newchange
pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bsc/+/27880 )
Change subject: paging: Avoid setting up credit_timer every time
......................................................................
paging: Avoid setting up credit_timer every time
Change-Id: Id4da0ab094ffe939cad9ff5708721e25b5a1a984
---
M src/osmo-bsc/paging.c
1 file changed, 1 insertion(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/80/27880/1
diff --git a/src/osmo-bsc/paging.c b/src/osmo-bsc/paging.c
index 73c1175..ed435f4 100644
--- a/src/osmo-bsc/paging.c
+++ b/src/osmo-bsc/paging.c
@@ -200,8 +200,6 @@
* to zero and we do not get any messages.
*/
if (paging_bts->available_slots == 0) {
- osmo_timer_setup(&paging_bts->credit_timer, paging_give_credit,
- paging_bts);
osmo_timer_schedule(&paging_bts->credit_timer, 5, 0);
return;
}
@@ -248,6 +246,7 @@
bts->paging.available_slots = 20;
INIT_LLIST_HEAD(&bts->paging.pending_requests);
osmo_timer_setup(&bts->paging.work_timer, paging_worker, &bts->paging);
+ osmo_timer_setup(&bts->paging.credit_timer, paging_give_credit, &bts->paging);
}
/*! do we have any pending paging requests for given subscriber? */
--
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/27880
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: Id4da0ab094ffe939cad9ff5708721e25b5a1a984
Gerrit-Change-Number: 27880
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: newchange
pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bsc/+/27879 )
Change subject: rsl_rx_ccch_load: add explicit cast -1 to unsigned
......................................................................
rsl_rx_ccch_load: add explicit cast -1 to unsigned
This is useful for the reader to understand those variables are actually
ungisned, so they should never be compared later against isgned values.
It helps understand -1 here means the maximum unsigned value.
Change-Id: I02ad80e5d10f1a47cdf712f7f7c576a2e20fe607
---
M src/osmo-bsc/abis_rsl.c
1 file changed, 3 insertions(+), 3 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/79/27879/1
diff --git a/src/osmo-bsc/abis_rsl.c b/src/osmo-bsc/abis_rsl.c
index 03e409d..0486afc 100644
--- a/src/osmo-bsc/abis_rsl.c
+++ b/src/osmo-bsc/abis_rsl.c
@@ -2328,9 +2328,9 @@
struct ccch_signal_data sd;
sd.bts = sign_link->trx->bts;
- sd.rach_slot_count = -1;
- sd.rach_busy_count = -1;
- sd.rach_access_count = -1;
+ sd.rach_slot_count = (uint16_t)-1;
+ sd.rach_busy_count = (uint16_t)-1;
+ sd.rach_access_count = (uint16_t)-1;
switch (rslh->data[0]) {
case RSL_IE_PAGING_LOAD:
--
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/27879
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: I02ad80e5d10f1a47cdf712f7f7c576a2e20fe607
Gerrit-Change-Number: 27879
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: newchange