aboutsummaryrefslogtreecommitdiffstats
path: root/src/bts.cpp
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2019-09-05 17:13:33 +0200
committerlaforge <laforge@gnumonks.org>2019-09-14 15:28:43 +0000
commitcfb6321b88391ff58e5915c67ef0398024572566 (patch)
tree2d8be0aaccca7d9afbaf84b7d4ede5f6db579f9c /src/bts.cpp
parent5360ef5447e192f20c86a2f92af031c45c724e18 (diff)
Forward ETWS Primary Notification to MS
Receive an Application Information Request from the BTS via PCU interface. Construct a Packet Application Information message from it (3GPP TS 44.060 11.2.47) and send it to all MS with active TBF. The TTCN-3 test infrastructure to test this feature is not quite ready yet, so I've added C unit tests instead. Related: OS#4048 Change-Id: Ie35959f833f46bde5f2126314b6f96763f863b36
Diffstat (limited to 'src/bts.cpp')
-rw-r--r--src/bts.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bts.cpp b/src/bts.cpp
index 8b32e2e..1b2ab2f 100644
--- a/src/bts.cpp
+++ b/src/bts.cpp
@@ -231,6 +231,7 @@ BTS::BTS()
{
memset(&m_bts, 0, sizeof(m_bts));
m_bts.bts = this;
+ m_bts.app_info = NULL;
m_bts.dl_tbf_preemptive_retransmission = true;
m_bts.T_defs_bts = T_defs_bts;
m_bts.T_defs_pcu = T_defs_pcu;
@@ -279,6 +280,11 @@ void BTS::cleanup()
osmo_stat_item_group_free(m_statg);
m_statg = NULL;
}
+
+ if (m_bts.app_info) {
+ msgb_free(m_bts.app_info);
+ m_bts.app_info = NULL;
+ }
}
BTS::~BTS()