diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-06-08 11:26:38 +0200 |
---|---|---|
committer | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-06-22 10:39:06 +0200 |
commit | e4bcb62dbf89bf882805e3824251a3013f3eecd7 (patch) | |
tree | 0156c0493db4141a6fb44da8918de59fe6452579 /src/gprs_ms.cpp | |
parent | 20f6fd1b63355b9a3ab1423cb24b73ca27f57243 (diff) |
ms: Store the L1 measurement values in the MS objects
This commits adds the GprsMs::update_l1_meas() and GprsMs::l1_meas()
methods to store and access the measurement values. The internal
state is updated depending on which values are actually set.
In addition, these values are shown in the output of the 'show ms
imsi|tlli' command.
Sponsored-by: On-Waves ehf
Diffstat (limited to 'src/gprs_ms.cpp')
-rw-r--r-- | src/gprs_ms.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gprs_ms.cpp b/src/gprs_ms.cpp index f0379ce8..189e4bd2 100644 --- a/src/gprs_ms.cpp +++ b/src/gprs_ms.cpp @@ -421,3 +421,15 @@ void GprsMs::update_error_rate(gprs_rlcmac_tbf *tbf, int error_rate) m_last_cs_not_low = now; } } + +void GprsMs::update_l1_meas(const pcu_l1_meas *meas) +{ + if (meas->have_rssi) + m_l1_meas.set_rssi(meas->rssi); + if (meas->have_bto) + m_l1_meas.set_bto(meas->bto); + if (meas->have_ber) + m_l1_meas.set_ber(meas->ber); + if (meas->have_link_qual) + m_l1_meas.set_link_qual(meas->link_qual); +} |