diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2018-12-06 05:29:32 +0700 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2018-12-07 03:06:54 +0700 |
commit | 6c4d9b628498277756b646c9b1a44039d2485f2d (patch) | |
tree | 93a563b95c61d61eaa333a396fead7872f99533f /src/target/trx_toolkit | |
parent | cadbce066bb35c4eb01eb77c22001439bd476ce3 (diff) |
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
Diffstat (limited to 'src/target/trx_toolkit')
-rw-r--r-- | src/target/trx_toolkit/burst_fwd.py | 5 |
1 files changed, 5 insertions, 0 deletions
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: |