aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gprs_ms.cpp15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/gprs_ms.cpp b/src/gprs_ms.cpp
index 87a35d18..88550539 100644
--- a/src/gprs_ms.cpp
+++ b/src/gprs_ms.cpp
@@ -633,11 +633,19 @@ void GprsMs::update_cs_ul(const pcu_l1_meas *meas)
OSMO_ASSERT(current_cs_num > 0);
- if (!m_current_cs_ul)
+ if (!m_current_cs_ul) {
+ LOGP(DRLCMACMEAS, LOGL_ERROR,
+ "Unable to update UL (M)CS because it's not set: %s\n",
+ m_current_cs_ul.name());
return;
+ }
- if (!meas->have_link_qual)
+ if (!meas->have_link_qual) {
+ LOGP(DRLCMACMEAS, LOGL_ERROR,
+ "Unable to update UL (M)CS %s because we don't have link quality measurements.\n",
+ m_current_cs_ul.name());
return;
+ }
old_link_qual = meas->link_qual;
@@ -652,6 +660,9 @@ void GprsMs::update_cs_ul(const pcu_l1_meas *meas)
low = bts_data->mcs_lqual_ranges[current_cs_num-1].low;
high = bts_data->mcs_lqual_ranges[current_cs_num-1].high;
} else {
+ LOGP(DRLCMACMEAS, LOGL_ERROR,
+ "Unable to update UL (M)CS because it's neither GPRS nor EDGE: %s\n",
+ m_current_cs_ul.name());
return;
}