aboutsummaryrefslogtreecommitdiffstats
path: root/src/bts.cpp
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-05-27 13:03:15 +0200
committerJacob Erlbeck <jerlbeck@sysmocom.de>2015-05-28 12:29:43 +0200
commitddfc0d57632c5f57aeb123f6506d3923fcec69dc (patch)
treeca6c5a8408cd19bc3220643118079cd257fd5a1d /src/bts.cpp
parentd3eac2867a84d009fa3c1c7d8da9502f8468fbca (diff)
tbf/test: Add tests for single and two phase access
These tests cover the message exchange from receiving from the first RACH request to the first data block when establishing an uplink TBF. This will be used to check, whether TA and other values are passed to an MS object correctly. In addition, the RX RACH log message in rcv_rach is extended to contain the single block fn. Sponsored-by: On-Waves ehf
Diffstat (limited to 'src/bts.cpp')
-rw-r--r--src/bts.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/bts.cpp b/src/bts.cpp
index c7daf8e..6bcfea0 100644
--- a/src/bts.cpp
+++ b/src/bts.cpp
@@ -416,8 +416,10 @@ int BTS::rcv_rach(uint8_t ra, uint32_t Fn, int16_t qta)
if (rc < 0)
return rc;
LOGP(DRLCMAC, LOGL_DEBUG, "RX: [PCU <- BTS] RACH qbit-ta=%d "
- "ra=0x%02x, Fn=%d (%d,%d,%d)\n", qta, ra, Fn,
- (Fn / (26 * 51)) % 32, Fn % 51, Fn % 26);
+ "ra=0x%02x, Fn=%d (%d,%d,%d), SBFn=%d\n",
+ qta, ra,
+ Fn, (Fn / (26 * 51)) % 32, Fn % 51, Fn % 26,
+ sb_fn);
LOGP(DRLCMAC, LOGL_INFO, "TX: Immediate Assignment Uplink "
"(AGCH)\n");
} else {