diff options
author | Martin Braun <martin.braun@ettus.com> | 2022-05-12 16:18:17 +0200 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2022-06-10 13:24:04 -0500 |
commit | f9327a4a400269769329512ac145a4b845b480e6 (patch) | |
tree | 54a22d1eb03605297068e14cbd2931683645ff7f /host/lib/rfnoc/mgmt_portal.cpp | |
parent | e040326c51e3f67e70fd59a1eba244d6180abb47 (diff) | |
download | uhd-f9327a4a400269769329512ac145a4b845b480e6.tar.gz uhd-f9327a4a400269769329512ac145a4b845b480e6.tar.bz2 uhd-f9327a4a400269769329512ac145a4b845b480e6.zip |
rfnoc: Fix register_xport_hop_cfg_fns() usage
Note: This function is currently unused. However, it is not correctly
implemented. During init, it would call the routing configuration
function instead of the init configuration function.
Diffstat (limited to 'host/lib/rfnoc/mgmt_portal.cpp')
-rw-r--r-- | host/lib/rfnoc/mgmt_portal.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/rfnoc/mgmt_portal.cpp b/host/lib/rfnoc/mgmt_portal.cpp index 56160ae82..d800b4b38 100644 --- a/host/lib/rfnoc/mgmt_portal.cpp +++ b/host/lib/rfnoc/mgmt_portal.cpp @@ -1031,8 +1031,8 @@ private: // Functions case node_type::NODE_TYPE_XPORT: { uint8_t node_subtype = static_cast<uint8_t>(node.extended_info & 0xFF); // Run a hop configuration function for custom transports - if (_rtcfg_cfg_fns.count(node_subtype)) { - _rtcfg_cfg_fns.at(node_subtype)( + if (_init_cfg_fns.count(node_subtype)) { + _init_cfg_fns.at(node_subtype)( node.device_id, node.inst, node_subtype, init_hop); } else { // For a generic transport, just advertise the transaction to the |