aboutsummaryrefslogtreecommitdiffstats
path: root/src/gsmtap.c
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2012-03-14 10:48:46 +0100
committerSylvain Munaut <tnt@246tNt.com>2016-09-12 15:51:18 -0600
commitb9700ddb2d86d60d003f8cc7d40235a6eed9a49e (patch)
tree788f28bb3771585f92b1d2e300b37214fd6580e2 /src/gsmtap.c
parenta8b5bf1a9c4e6e05f95a1825398f405795f6fa79 (diff)
[hack] Add first attempt at live stream processing
rtfwk: Create a new rxfwk subdir to contain the 'RealTime framework' files So that other apps can re-use it. Note that it's not part of the gmr1 lib proper and so include files are in that dir and not installed. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'src/gsmtap.c')
-rw-r--r--src/gsmtap.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gsmtap.c b/src/gsmtap.c
index 190f44e..6da02b2 100644
--- a/src/gsmtap.c
+++ b/src/gsmtap.c
@@ -37,11 +37,14 @@
/*! \brief Helper to build GSM tap message with GMR-1 payload
* \param[in] chan_type Type of channel (one of GSMTAP_GMR1_xxx)
+ * \param[in] arfcn ARFCN
+ * \param[in] fn Frame number
+ * \param[in] tn Timeslot number
* \param[in] l2 Packet of L2 data to encapsulate
* \param[in] len Length of the l2 data in bytes
*/
struct msgb *
-gmr1_gsmtap_makemsg(uint8_t chan_type, uint32_t fn, uint8_t tn,
+gmr1_gsmtap_makemsg(uint8_t chan_type, uint16_t arfcn, uint32_t fn, uint8_t tn,
const uint8_t *l2, int len)
{
struct msgb *msg;
@@ -56,6 +59,7 @@ gmr1_gsmtap_makemsg(uint8_t chan_type, uint32_t fn, uint8_t tn,
gh->version = GSMTAP_VERSION;
gh->hdr_len = sizeof(*gh)/4;
gh->type = GSMTAP_TYPE_GMR1_UM;
+ gh->arfcn = htons(arfcn);
gh->timeslot = tn;
gh->sub_slot = 0;
gh->snr_db = 0;