summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2018-09-06 01:15:26 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2018-09-06 01:15:26 +0700
commit236dfd506d4d0c3669a6eb783304e5c5eae10f8f (patch)
treeea72820476b552194b07e4a3149cdb35c8054838
parent535a093726a5d775512835179fe674a161fce64d (diff)
trxcon/l1ctl.c: print timeslot number from L1CTL_DM_EST_REQ
-rw-r--r--src/host/trxcon/l1ctl.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/host/trxcon/l1ctl.c b/src/host/trxcon/l1ctl.c
index ec8b4c7b..9d6871ed 100644
--- a/src/host/trxcon/l1ctl.c
+++ b/src/host/trxcon/l1ctl.c
@@ -541,10 +541,12 @@ static int l1ctl_rx_dm_est_req(struct l1ctl_link *l1l, struct msgb *msg)
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 @@ static int l1ctl_rx_dm_est_req(struct l1ctl_link *l1l, struct msgb *msg)
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];