[PATCH] Possible BS11 fixes..

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Holger Freyther zecke at selfish.org
Mon Dec 21 16:10:30 UTC 2009


Hi Harlad,

does this make sense to you?

 openbsc/src/abis_nm.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/openbsc/src/abis_nm.c b/openbsc/src/abis_nm.c
index bb7248b..dce1c35 100644
--- a/openbsc/src/abis_nm.c
+++ b/openbsc/src/abis_nm.c
@@ -653,13 +653,13 @@ objclass2nmstate(struct gsm_bts *bts, u_int8_t 
obj_class,
                        nm_state = &bts->bs11.cclk.nm_state;
                        break;
                case BS11_OBJ_BBSIG:
-                       if (obj_inst->ts_nr > bts->num_trx)
+                       if (obj_inst->trx_nr >= bts->num_trx)
                                return NULL;
                        trx = gsm_bts_trx_num(bts, obj_inst->trx_nr);
                        nm_state = &trx->bs11.bbsig.nm_state;
                        break;
                case BS11_OBJ_PA:
-                       if (obj_inst->ts_nr > bts->num_trx)
+                       if (obj_inst->trx_nr >= bts->num_trx)
                                return NULL;
                        trx = gsm_bts_trx_num(bts, obj_inst->trx_nr);
                        nm_state = &trx->bs11.pa.nm_state;
-- 
1.6.3.3





More information about the OpenBSC mailing list