Vadim Yanitskiy has submitted this change and it was merged. ( 
https://gerrit.osmocom.org/10777 )

Change subject: trxcon/l1ctl.c: print timeslot number from L1CTL_DM_EST_REQ
......................................................................

trxcon/l1ctl.c: print timeslot number from L1CTL_DM_EST_REQ

Change-Id: If092743c32b7a6f5da7c8339b0f7b92ccf8a7a8b
---
M src/host/trxcon/l1ctl.c
1 file changed, 4 insertions(+), 5 deletions(-)

Approvals:
  Jenkins Builder: Verified
  Harald Welte: Looks good to me, approved



diff --git a/src/host/trxcon/l1ctl.c b/src/host/trxcon/l1ctl.c
index ec8b4c7..9d6871e 100644
--- a/src/host/trxcon/l1ctl.c
+++ b/src/host/trxcon/l1ctl.c
@@ -541,10 +541,12 @@

        band_arfcn = ntohs(est_req->h0.band_arfcn);
        chan_nr = ul->chan_nr;
+       tn = chan_nr & 0x07;

        LOGP(DL1C, LOGL_NOTICE, "Received L1CTL_DM_EST_REQ (arfcn=%u, "
-               "chan_nr=0x%02x, tsc=%u, tch_mode=0x%02x)\n", (band_arfcn &~ 
ARFCN_FLAG_MASK),
-               chan_nr, est_req->tsc, est_req->tch_mode);
+               "tn=%u, chan_nr=0x%02x, tsc=%u, tch_mode=0x%02x)\n",
+               (band_arfcn &~ ARFCN_FLAG_MASK), tn, chan_nr,
+               est_req->tsc, est_req->tch_mode);

        if (est_req->h) {
                LOGP(DL1C, LOGL_ERROR, "FHSS is not supported\n");
@@ -563,9 +565,6 @@
                goto exit;
        }

-       /* Determine TS index */
-       tn = chan_nr & 0x7;
-
        /* Configure requested TS */
        rc = sched_trx_configure_ts(l1l->trx, tn, config);
        ts = l1l->trx->ts_list[tn];

--
To view, visit https://gerrit.osmocom.org/10777
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: If092743c32b7a6f5da7c8339b0f7b92ccf8a7a8b
Gerrit-Change-Number: 10777
Gerrit-PatchSet: 1
Gerrit-Owner: Vadim Yanitskiy <[email protected]>
Gerrit-Reviewer: Harald Welte <[email protected]>
Gerrit-Reviewer: Jenkins Builder (1000002)
Gerrit-Reviewer: Vadim Yanitskiy <[email protected]>

Reply via email to