aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-06-11 18:09:00 +0200
committerJacob Erlbeck <jerlbeck@sysmocom.de>2015-06-22 10:39:06 +0200
commitda1a79ef5b5c61981c94e58ba76d96d40f10d3f3 (patch)
treeff0d8cbf5b3614a722154fc30df1b0b3139f18e0
parent51b11510448bcca092db191d5f17a00892af9f71 (diff)
l1: Add debug log messages for I_LEVEL
The I_LEVEL values that are obtained now look suspicious. They do not seem to be contained in messages recorded via gsmtab. To help debugging this issue, this commit adds related debug messages that are generated while the encoded values are taken from the RLC/MAC messages. Sponsored-by: On-Waves ehf
-rw-r--r--src/bts.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/bts.cpp b/src/bts.cpp
index 5fafd84a..7914cfdc 100644
--- a/src/bts.cpp
+++ b/src/bts.cpp
@@ -819,8 +819,12 @@ static void get_meas(struct pcu_l1_meas *meas,
for (i = 0; i < OSMO_MIN(ARRAY_SIZE(qr->Slot), ARRAY_SIZE(meas->ts)); i++)
{
- if (qr->Slot[i].Exist)
+ if (qr->Slot[i].Exist) {
+ LOGP(DRLCMAC, LOGL_INFO,
+ "Packet resource request: i_level[%d] = %d\n",
+ i, qr->Slot[i].I_LEVEL);
meas->set_ms_i_level(i, -2 * qr->Slot[i].I_LEVEL);
+ }
}
}
@@ -835,8 +839,12 @@ static void get_meas(struct pcu_l1_meas *meas,
for (i = 0; i < OSMO_MIN(ARRAY_SIZE(qr->Slot), ARRAY_SIZE(meas->ts)); i++)
{
- if (qr->Slot[i].Exist)
+ if (qr->Slot[i].Exist) {
+ LOGP(DRLCMAC, LOGL_INFO,
+ "Channel quality report: i_level[%d] = %d\n",
+ i, qr->Slot[i].I_LEVEL_TN);
meas->set_ms_i_level(i, -2 * qr->Slot[i].I_LEVEL_TN);
+ }
}
}