From b688bb7ba9595ac11b79d79acb8bb6e8510bfd5e Mon Sep 17 00:00:00 2001 From: michael-west Date: Thu, 3 Nov 2016 16:27:02 -0700 Subject: X300: Fix for channel 1 failure to ACK a TX burst. - Added mapping from radio block and port to channel in legacy compat layer. - Improved parsing of stream args and added parsing of radio ID and port parameters for each channel. - Added proper programming of the response SID based on the new radio ID and port parameters. --- host/lib/rfnoc/legacy_compat.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'host/lib/rfnoc') diff --git a/host/lib/rfnoc/legacy_compat.cpp b/host/lib/rfnoc/legacy_compat.cpp index 20553062f..e1eff757e 100644 --- a/host/lib/rfnoc/legacy_compat.cpp +++ b/host/lib/rfnoc/legacy_compat.cpp @@ -382,6 +382,9 @@ private: // methods const std::string block_name = _get_streamer_block_id_and_port(mboard_idx, radio_index, port_index); args.args[str(boost::format("block_id%d") % stream_arg_chan_idx)] = block_name; args.args[str(boost::format("block_port%d") % stream_arg_chan_idx)] = str(boost::format("%d") % port_index); + // Map radio to channel (for in-band response) + args.args[str(boost::format("radio_id%d") % stream_arg_chan_idx)] = block_id_t(mboard_idx, RADIO_BLOCK_NAME, radio_index).to_string(); + args.args[str(boost::format("radio_port%d") % stream_arg_chan_idx)] = str(boost::format("%d") % chan_map[mboard_idx][this_mboard_chan_idx].port_index); } } -- cgit v1.2.3