From bc71cd5c3961a214b2dc771ad0074d305026a2a8 Mon Sep 17 00:00:00 2001 From: michael-west Date: Wed, 19 Dec 2018 16:58:13 -0800 Subject: N310 E320: Add initialization of TX bandwidth - Fixes "Error: map::at" errors (during calls to get_tx_bandwidth()) --- host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_init.cpp | 2 +- host/lib/usrp/dboard/neon/neon_radio_ctrl_init.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'host/lib') diff --git a/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_init.cpp b/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_init.cpp index 7df3e888c..901bb1474 100644 --- a/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_init.cpp +++ b/host/lib/usrp/dboard/magnesium/magnesium_radio_ctrl_init.cpp @@ -94,6 +94,7 @@ void magnesium_radio_ctrl_impl::_init_defaults() radio_ctrl_impl::set_tx_frequency(MAGNESIUM_DEFAULT_FREQ, chan); radio_ctrl_impl::set_tx_gain(0, chan); radio_ctrl_impl::set_tx_antenna(MAGNESIUM_DEFAULT_TX_ANTENNA, chan); + radio_ctrl_impl::set_tx_bandwidth(MAGNESIUM_DEFAULT_BANDWIDTH, chan); } @@ -861,4 +862,3 @@ void magnesium_radio_ctrl_impl::_init_mpm_sensors( ; } } - diff --git a/host/lib/usrp/dboard/neon/neon_radio_ctrl_init.cpp b/host/lib/usrp/dboard/neon/neon_radio_ctrl_init.cpp index 877ca8c6e..c71fd0169 100644 --- a/host/lib/usrp/dboard/neon/neon_radio_ctrl_init.cpp +++ b/host/lib/usrp/dboard/neon/neon_radio_ctrl_init.cpp @@ -74,6 +74,7 @@ void neon_radio_ctrl_impl::_init_defaults() radio_ctrl_impl::set_tx_frequency(NEON_DEFAULT_FREQ, chan); radio_ctrl_impl::set_tx_gain(NEON_DEFAULT_GAIN, chan); radio_ctrl_impl::set_tx_antenna(NEON_DEFAULT_TX_ANTENNA, chan); + radio_ctrl_impl::set_tx_bandwidth(NEON_DEFAULT_BANDWIDTH, chan); } /** Update default SPP (overwrites the default value from the XML file) **/ @@ -495,4 +496,3 @@ void neon_radio_ctrl_impl::_init_mpm_sensors( ; } } - -- cgit v1.2.3