diff options
Diffstat (limited to 'host/lib/usrp')
| -rw-r--r-- | host/lib/usrp/b100/io_impl.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/host/lib/usrp/b100/io_impl.cpp b/host/lib/usrp/b100/io_impl.cpp index d7effcac1..6f8d3fb52 100644 --- a/host/lib/usrp/b100/io_impl.cpp +++ b/host/lib/usrp/b100/io_impl.cpp @@ -206,7 +206,7 @@ rx_streamer::sptr b100_impl::get_rx_stream(const uhd::stream_args_t &args_){          - sizeof(vrt::if_packet_info_t().cid) //no class id ever used          - sizeof(vrt::if_packet_info_t().tsi) //no int time ever used      ; -    const size_t bpp = B100_MAX_PKT_BYTE_LIMIT - hdr_size; +    const size_t bpp = _data_transport->get_recv_frame_size() - hdr_size;      const size_t bpi = convert::get_bytes_per_item(args.otw_format);      const size_t spp = unsigned(args.args.cast<double>("spp", bpp/bpi)); @@ -263,7 +263,7 @@ tx_streamer::sptr b100_impl::get_tx_stream(const uhd::stream_args_t &args_){          - sizeof(vrt::if_packet_info_t().cid) //no class id ever used          - sizeof(vrt::if_packet_info_t().tsi) //no int time ever used      ; -    static const size_t bpp = B100_MAX_PKT_BYTE_LIMIT - hdr_size; +    static const size_t bpp = _data_transport->get_send_frame_size() - hdr_size;      const size_t spp = bpp/convert::get_bytes_per_item(args.otw_format);      //make the new streamer given the samples per packet | 
