creating primary trx

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/.

Thomas Ansorg kobayashi_maru at onlinehome.de
Fri Feb 11 07:46:22 UTC 2011


hello
my 2nd bs-11(bts 1) has a defective trx0, so no c0 can be created. lets
have a look at gsm_bts_trx_alloc in gsm_data.c:
i changed
	trx->bts = bts;
	trx->nr = bts->num_trx++;
	trx->nm_state.administrative = NM_STATE_UNLOCKED;

to
	trx->bts = bts;
         if(bts->nr == 1) {trx->nr = 1;}
         else {trx->nr = bts->num_trx++;}
	trx->nm_state.administrative = NM_STATE_UNLOCKED;

in gsm_bts_alloc, the primary trx should be created then, in the case of
bts 1 starting at trx1, since trx0 dont exist

unfortunately, i get a general protection fault :-(

hints very velcome!

T.
-- 
Wer Rechtschreibfehler findet, darf sie behalten!





More information about the OpenBSC mailing list