diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2017-10-17 09:24:55 +0700 |
---|---|---|
committer | Piotr Krysik <ptrkrysik@users.noreply.github.com> | 2017-11-05 17:33:26 +0100 |
commit | 962e2d83bb0eb62e6d1222339977c2f5f23d0dbd (patch) | |
tree | b4d63645da09a45e857e3be0ec8d383ef8c062c1 /lib | |
parent | 8e9b3075d72f0b6cb09179e68530102e2d4eb28d (diff) |
misc_utils/trx_burst_if: get rid of built-in timeslot filter
Since the API of 'Timeslot Filter' block was exposed, we can
get rid of built-in timeslot filter and use the proper methods.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/misc_utils/trx_burst_if_impl.cc | 22 | ||||
-rw-r--r-- | lib/misc_utils/trx_burst_if_impl.h | 5 |
2 files changed, 0 insertions, 27 deletions
diff --git a/lib/misc_utils/trx_burst_if_impl.cc b/lib/misc_utils/trx_burst_if_impl.cc index 6d63edf..8f458b0 100644 --- a/lib/misc_utils/trx_burst_if_impl.cc +++ b/lib/misc_utils/trx_burst_if_impl.cc @@ -85,9 +85,6 @@ namespace gr { // Bind DATA interface handler d_data_sock->udp_rx_handler = boost::bind( &trx_burst_if_impl::handle_ul_burst, this, _1, _2); - - // Init timeslot filter - d_ts_filter_tn = -1; } /* @@ -100,21 +97,6 @@ namespace gr { } /* - * Timeslot filter API (getter and setter) - */ - void - trx_burst_if_impl::ts_filter_set_tn(int tn) - { - d_ts_filter_tn = (tn >= 0 && tn <= 7) ? tn : -1; - } - - int - trx_burst_if_impl::ts_filter_get_tn(void) - { - return d_ts_filter_tn; - } - - /* * Check if burst is a RACH burst */ bool trx_burst_if_impl::detect_rach(uint8_t *burst) @@ -190,10 +172,6 @@ namespace gr { // Compose a new UDP payload with burst burst_pack(msg, buf); - // Timeslot filter - if (d_ts_filter_tn != -1 && buf[0] != d_ts_filter_tn) - return; - // Send a burst d_data_sock->udp_send(buf, 158); } diff --git a/lib/misc_utils/trx_burst_if_impl.h b/lib/misc_utils/trx_burst_if_impl.h index fd5a42d..35f939c 100644 --- a/lib/misc_utils/trx_burst_if_impl.h +++ b/lib/misc_utils/trx_burst_if_impl.h @@ -35,7 +35,6 @@ namespace gr { { private: udp_socket *d_data_sock; - int d_ts_filter_tn; bool detect_rach(uint8_t *burst); void burst_pack(pmt::pmt_t msg, uint8_t *buf); @@ -44,10 +43,6 @@ namespace gr { trx_burst_if_impl(const std::string &remote_addr, int base_port); ~trx_burst_if_impl(); - /* Timeslot filter API */ - void ts_filter_set_tn(int tn); - int ts_filter_get_tn(void); - void handle_dl_burst(pmt::pmt_t msg); void handle_ul_burst(uint8_t *payload, size_t len); }; |