From 6c4d9b628498277756b646c9b1a44039d2485f2d Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Thu, 6 Dec 2018 05:29:32 +0700 Subject: trx_toolkit/burst_fwd.py: also pass-filter UL bursts by time-slot For some reason, the time-slot pass-filtering was only done for DL bursts, but not for UL bursts. BurstForwarder shall not pass UL bursts for unconfigured time-slots too. Let's also print a warning if an UL burst is sent on a not configured time-slot, i.e. before sending SETSLOT command. Change-Id: Idb7f5b212e5814aeff8ca8bc875ad066674267cd --- src/target/trx_toolkit/burst_fwd.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/target/trx_toolkit/burst_fwd.py') diff --git a/src/target/trx_toolkit/burst_fwd.py b/src/target/trx_toolkit/burst_fwd.py index 746b2814..6e79d44f 100644 --- a/src/target/trx_toolkit/burst_fwd.py +++ b/src/target/trx_toolkit/burst_fwd.py @@ -326,6 +326,11 @@ class BurstForwarder: if msg is None: return None + # Timeslot filter + if msg.tn not in self.ts_pass_list: + print("[!] TS %u is not configured, dropping UL burst..." % msg.tn) + return None + # Path loss simulation msg = self.path_loss_sim_ul(msg) if msg is None: -- cgit v1.2.3