[PATCH] l1ctl.c: add missing ntohs for band_arfcn

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/baseband-devel@lists.osmocom.org/.

Jan Luebbe jluebbe at debian.org
Wed Jun 16 20:11:48 UTC 2010


This fixes mangled ARFCN numbers in gsmtap.
---
 src/host/layer23/src/l1ctl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/host/layer23/src/l1ctl.c b/src/host/layer23/src/l1ctl.c
index 051b3d8..5e683d3 100644
--- a/src/host/layer23/src/l1ctl.c
+++ b/src/host/layer23/src/l1ctl.c
@@ -165,7 +165,7 @@ static int rx_ph_data_ind(struct osmocom_ms *ms, struct msgb *msg)
 
 	/* send CCCH data via GSMTAP */
 	gsmtap_chan_type = chantype_rsl2gsmtap(chan_type, dl->link_id);
-	gsmtap_sendmsg(dl->band_arfcn, chan_ts, gsmtap_chan_type, chan_ss,
+	gsmtap_sendmsg(ntohs(dl->band_arfcn), chan_ts, gsmtap_chan_type, chan_ss,
 			tm.fn, dl->rx_level-110, dl->snr, ccch->data,
 			sizeof(ccch->data));
 
-- 
1.7.1





More information about the baseband-devel mailing list