diff options
Diffstat (limited to 'host/lib')
-rw-r--r-- | host/lib/usrp/mpmd/mpmd_xport_ctrl_liberio.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/host/lib/usrp/mpmd/mpmd_xport_ctrl_liberio.cpp b/host/lib/usrp/mpmd/mpmd_xport_ctrl_liberio.cpp index d2f36bba3..139683597 100644 --- a/host/lib/usrp/mpmd/mpmd_xport_ctrl_liberio.cpp +++ b/host/lib/usrp/mpmd/mpmd_xport_ctrl_liberio.cpp @@ -128,9 +128,13 @@ bool mpmd_xport_ctrl_liberio::is_valid( return xport_info.at("type") == "liberio"; } -size_t mpmd_xport_ctrl_liberio::get_mtu(const uhd::direction_t /* dir */ - ) const +size_t mpmd_xport_ctrl_liberio::get_mtu(const uhd::direction_t dir) const { + /* TODO: this is extremely hacky. We don't know yet what broke liberio. + * Putting a bandaid here to help TXing. Remove this as soon as possible! + */ + if (dir == uhd::TX_DIRECTION) + return getpagesize(); return LIBERIO_PAGES_PER_BUF * getpagesize(); } |