aboutsummaryrefslogtreecommitdiffstats
path: root/src/gprs_ms.h
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-06-08 11:26:38 +0200
committerJacob Erlbeck <jerlbeck@sysmocom.de>2015-06-22 10:39:06 +0200
commite4bcb62dbf89bf882805e3824251a3013f3eecd7 (patch)
tree0156c0493db4141a6fb44da8918de59fe6452579 /src/gprs_ms.h
parent20f6fd1b63355b9a3ab1423cb24b73ca27f57243 (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.h')
-rw-r--r--src/gprs_ms.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gprs_ms.h b/src/gprs_ms.h
index 90b81fee..6752b2b6 100644
--- a/src/gprs_ms.h
+++ b/src/gprs_ms.h
@@ -26,6 +26,7 @@ struct gprs_rlcmac_ul_tbf;
#include "cxx_linuxlist.h"
#include "llc.h"
+#include "pcu_l1_if.h"
extern "C" {
#include <osmocom/core/timer.h>
@@ -96,6 +97,9 @@ public:
LListHead<GprsMs>& list() {return this->m_list;}
const LListHead<GprsMs>& list() const {return this->m_list;}
+ void update_l1_meas(const pcu_l1_meas *meas);
+ const pcu_l1_meas* l1_meas() const {return &m_l1_meas;};
+
/* internal use */
static void timeout(void *priv_);
@@ -132,6 +136,8 @@ private:
unsigned m_delay;
int64_t m_last_cs_not_low;
+
+ pcu_l1_meas m_l1_meas;
};
inline uint32_t GprsMs::tlli() const