Change in osmocom-bb[master]: trxcon/l1ctl.c: print timeslot number from L1CTL_DM_EST_REQ

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Vadim Yanitskiy gerrit-no-reply at lists.osmocom.org
Thu Sep 6 09:33:02 UTC 2018


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 <axilirator at gmail.com>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder (1000002)
Gerrit-Reviewer: Vadim Yanitskiy <axilirator at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180906/83f944d0/attachment.htm>


More information about the gerrit-log mailing list