From cfb6321b88391ff58e5915c67ef0398024572566 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Thu, 5 Sep 2019 17:13:33 +0200 Subject: 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 --- src/bts.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/bts.cpp') diff --git a/src/bts.cpp b/src/bts.cpp index 8b32e2ed..1b2ab2fb 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() -- cgit v1.2.3