aboutsummaryrefslogtreecommitdiffstats
path: root/src/bts.cpp
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-09-30 18:33:14 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2019-09-30 20:15:54 +0200
commit1ec211f57f5b338d192714f60a14d278bf13cb7f (patch)
tree83c8213c0c34a99e11a75fbf36adf71dac90246f /src/bts.cpp
parent1879442443395e5296bede7978dc89c7259688b3 (diff)
Log RACH Requests using GSMTAP
Diffstat (limited to 'src/bts.cpp')
-rw-r--r--src/bts.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bts.cpp b/src/bts.cpp
index df58494..a9ff553 100644
--- a/src/bts.cpp
+++ b/src/bts.cpp
@@ -750,6 +750,9 @@ int BTS::rcv_rach(uint16_t ra, uint32_t Fn, int16_t qta, bool is_11bit,
/* Determine full frame number */
Fn = rfn_to_fn(Fn);
+ send_gsmtap(PCU_GSMTAP_C_UL_RACH, true, 0, ts_no, GSMTAP_CHANNEL_RACH,
+ Fn, (uint8_t*)&ra, is_11bit ? 2 : 1);
+
LOGP(DRLCMAC, LOGL_DEBUG, "MS requests UL TBF on RACH, "
"so we provide one: ra=0x%02x Fn=%u qta=%d is_11bit=%d:\n",
ra, Fn, qta, is_11bit);