aboutsummaryrefslogtreecommitdiffstats
path: root/src/tbf.cpp
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-05-18 11:56:50 +0200
committerJacob Erlbeck <jerlbeck@sysmocom.de>2015-05-21 17:10:49 +0200
commit87597358cfe216a80405c21559ba640eedf44ad2 (patch)
treeb27bc841c789accbb2d92aad60a3e6096cc7d00f /src/tbf.cpp
parent939904672961fa7e28397e27f942a7d1fff4bbdf (diff)
tbf: Get the TLLI from the MS object
Since the synchronisation of the TBF's concerning the TLLIs has been removed in 'Support new and old TLLI's', gprs_rlcmac_tbf::tlli() can return the old TLLI which is probably different to ms()->tlli() in that case. This can lead to a wrong TLLI being used in BSSGP messages. This commit modifies the TBF's tlli() method to get the current TLLI from the MS object. Sponsored-by: On-Waves ehf
Diffstat (limited to 'src/tbf.cpp')
-rw-r--r--src/tbf.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tbf.cpp b/src/tbf.cpp
index a3793638..c8659cfc 100644
--- a/src/tbf.cpp
+++ b/src/tbf.cpp
@@ -46,6 +46,11 @@ gprs_rlcmac_bts *gprs_rlcmac_tbf::bts_data() const
return bts->bts_data();
}
+uint32_t gprs_rlcmac_tbf::tlli() const
+{
+ return m_ms ? m_ms->tlli() : m_tlli;
+}
+
void gprs_rlcmac_tbf::assign_imsi(const char *imsi)
{
strncpy(m_imsi, imsi, sizeof(m_imsi));