make sure certain functions are per TRX, not per BTS, such as
* rsl_chan_activate()
* rsl_bcch_info()
* rsl_sacch_filling()
diff --git a/src/bsc_hack.c b/src/bsc_hack.c
index cadf41c..7fa12e7 100644
--- a/src/bsc_hack.c
+++ b/src/bsc_hack.c
@@ -584,17 +584,17 @@
static_assert(sizeof(si6) >= sizeof(struct gsm48_system_information_type_6), type6)
/* set all system information types */
-static int set_system_infos(struct gsm_bts *bts)
+static int set_system_infos(struct gsm_bts_trx *trx)
{
int i;
for (i = 0; i < ARRAY_SIZE(bcch_infos); i++) {
- rsl_bcch_info(bts, bcch_infos[i].type,
+ rsl_bcch_info(trx, bcch_infos[i].type,
bcch_infos[i].data,
bcch_infos[i].len);
}
- rsl_sacch_filling(bts, RSL_SYSTEM_INFO_5, si5, sizeof(si5));
- rsl_sacch_filling(bts, RSL_SYSTEM_INFO_6, si6, sizeof(si6));
+ rsl_sacch_filling(trx, RSL_SYSTEM_INFO_5, si5, sizeof(si5));
+ rsl_sacch_filling(trx, RSL_SYSTEM_INFO_6, si6, sizeof(si6));
return 0;
}
@@ -648,10 +648,10 @@
}
-static void bootstrap_rsl(struct gsm_bts *bts)
+static void bootstrap_rsl(struct gsm_bts_trx *trx)
{
fprintf(stdout, "bootstrapping RSL MCC=%u MNC=%u\n", MCC, MNC);
- set_system_infos(bts);
+ set_system_infos(trx);
}
static void mi_cb(int event, struct gsm_bts *bts)
@@ -661,7 +661,7 @@
bootstrap_om(bts);
break;
case EVT_E1_RSL_UP:
- bootstrap_rsl(bts);
+ bootstrap_rsl(bts->c0);
break;
default:
/* FIXME: deal with TEI or L1 link loss */