diff options
-rw-r--r-- | host/lib/usrp/mpmd/mpmd_impl.hpp | 2 | ||||
-rw-r--r-- | host/lib/usrp/mpmd/mpmd_mboard_impl.cpp | 15 |
2 files changed, 11 insertions, 6 deletions
diff --git a/host/lib/usrp/mpmd/mpmd_impl.hpp b/host/lib/usrp/mpmd/mpmd_impl.hpp index f3328dc6f..cf0dad484 100644 --- a/host/lib/usrp/mpmd/mpmd_impl.hpp +++ b/host/lib/usrp/mpmd/mpmd_impl.hpp @@ -169,6 +169,8 @@ private: uhd::task::sptr _claimer_task; uhd::mpmd::xport::mpmd_xport_mgr::uptr _xport_mgr; + uhd::device_addr_t send_args; + uhd::device_addr_t recv_args; }; diff --git a/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp b/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp index 261b6f2aa..11404ffaf 100644 --- a/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp +++ b/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp @@ -290,6 +290,13 @@ mpmd_mboard_impl::mpmd_mboard_impl( << this_db_info.to_string(); this->dboard_info.push_back(this_db_info); } + + for (const std::string& key : mb_args_.keys()) { + if (key.find("recv") != std::string::npos) + recv_args[key] = mb_args_[key]; + if (key.find("send") != std::string::npos) + send_args[key] = mb_args_[key]; + } } mpmd_mboard_impl::~mpmd_mboard_impl() @@ -377,16 +384,12 @@ size_t mpmd_mboard_impl::get_mtu(const uhd::direction_t dir) const uhd::device_addr_t mpmd_mboard_impl::get_rx_hints() const { - // TODO: See if we need to do anything here. get_rx_stream() might care. - device_addr_t rx_hints; - return rx_hints; + return recv_args; } uhd::device_addr_t mpmd_mboard_impl::get_tx_hints() const { - // TODO: See if we need to do anything here. get_tx_stream() might care. - device_addr_t tx_hints; - return tx_hints; + return send_args; } /***************************************************************************** |