summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2017-07-12 17:54:09 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2017-10-23 22:05:49 +0330
commit99b1fcf066b28b71613331a39c88dab5a74f59c2 (patch)
tree9ebab9d89c5af231c35129ee53466963a43e278d
parentba829de44980945cc54be387dbfff4ff13604708 (diff)
host/trxcon/scheduler: store BSIC in trx_instance
We need to know BSIC value, before sending RACH requests. So, let's store it in trx_instance and update as soon as the first SCH burst is received after L1CTL_FBSB_REQ. Change-Id: I49574c3661f79f3b4941db6c651baebab2665c1b
-rw-r--r--src/host/trxcon/sched_lchan_handlers.c4
-rw-r--r--src/host/trxcon/trx_if.h3
2 files changed, 6 insertions, 1 deletions
diff --git a/src/host/trxcon/sched_lchan_handlers.c b/src/host/trxcon/sched_lchan_handlers.c
index 4d53516..e2d8e14 100644
--- a/src/host/trxcon/sched_lchan_handlers.c
+++ b/src/host/trxcon/sched_lchan_handlers.c
@@ -224,8 +224,10 @@ int rx_sch_fn(struct trx_instance *trx, struct trx_ts *ts,
}
/* Send L1CTL_FBSB_CONF to higher layers */
- if (!trx->l1l->fbsb_conf_sent)
+ if (!trx->l1l->fbsb_conf_sent) {
l1ctl_tx_fbsb_conf(trx->l1l, 0, bsic);
+ trx->bsic = bsic;
+ }
return 0;
}
diff --git a/src/host/trxcon/trx_if.h b/src/host/trxcon/trx_if.h
index c78fdc4..df201d8 100644
--- a/src/host/trxcon/trx_if.h
+++ b/src/host/trxcon/trx_if.h
@@ -27,7 +27,10 @@ struct trx_instance {
struct llist_head trx_ctrl_list;
struct osmo_fsm_inst *fsm;
uint32_t prev_state;
+
+ /* GSM L1 specific */
uint16_t band_arfcn;
+ uint8_t bsic;
/* Scheduler stuff */
struct trx_sched sched;