Review at  https://gerrit.osmocom.org/6713

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
---
M src/host/trxcon/sched_lchan_handlers.c
M src/host/trxcon/trx_if.h
2 files changed, 6 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/13/6713/1

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 @@
        }
 
        /* 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 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;

-- 
To view, visit https://gerrit.osmocom.org/6713
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I49574c3661f79f3b4941db6c651baebab2665c1b
Gerrit-PatchSet: 1
Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <lafo...@gnumonks.org>

Reply via email to