mirror of
https://gitlab.eurecom.fr/oai/openairinterface5g.git
synced 2026-07-13 04:30:28 +00:00
35 lines
1.5 KiB
Diff
35 lines
1.5 KiB
Diff
diff --git a/host/lib/usrp/b200/b200_impl.cpp b/host/lib/usrp/b200/b200_impl.cpp
|
|
index 6de161e87..432af5784 100644
|
|
--- a/host/lib/usrp/b200/b200_impl.cpp
|
|
+++ b/host/lib/usrp/b200/b200_impl.cpp
|
|
@@ -1410,10 +1410,10 @@ void b200_impl::update_atrs(void)
|
|
if (not enb_rx and enb_tx)
|
|
fd = txonly;
|
|
gpio_atr_3000::sptr atr = perif.atr;
|
|
- atr->set_atr_reg(ATR_REG_IDLE, STATE_OFF);
|
|
- atr->set_atr_reg(ATR_REG_RX_ONLY, rxonly);
|
|
- atr->set_atr_reg(ATR_REG_TX_ONLY, txonly);
|
|
- atr->set_atr_reg(ATR_REG_FULL_DUPLEX, fd);
|
|
+ atr->set_atr_reg(ATR_REG_IDLE, STATE_OFF | (1<<7));
|
|
+ atr->set_atr_reg(ATR_REG_RX_ONLY, rxonly | (1<<7));
|
|
+ atr->set_atr_reg(ATR_REG_TX_ONLY, txonly | (1<<7));
|
|
+ atr->set_atr_reg(ATR_REG_FULL_DUPLEX, fd | (1<<7));
|
|
}
|
|
if (_radio_perifs.size() > _fe2 and _radio_perifs[_fe2].atr) {
|
|
radio_perifs_t& perif = _radio_perifs[_fe2];
|
|
@@ -1431,10 +1431,10 @@ void b200_impl::update_atrs(void)
|
|
if (not enb_rx and enb_tx)
|
|
fd = txonly;
|
|
gpio_atr_3000::sptr atr = perif.atr;
|
|
- atr->set_atr_reg(ATR_REG_IDLE, STATE_OFF);
|
|
- atr->set_atr_reg(ATR_REG_RX_ONLY, rxonly);
|
|
- atr->set_atr_reg(ATR_REG_TX_ONLY, txonly);
|
|
- atr->set_atr_reg(ATR_REG_FULL_DUPLEX, fd);
|
|
+ atr->set_atr_reg(ATR_REG_IDLE, STATE_OFF | (1<<7));
|
|
+ atr->set_atr_reg(ATR_REG_RX_ONLY, rxonly | (1<<7));
|
|
+ atr->set_atr_reg(ATR_REG_TX_ONLY, txonly | (1<<7));
|
|
+ atr->set_atr_reg(ATR_REG_FULL_DUPLEX, fd | (1<<7));
|
|
}
|
|
}
|
|
|