laforge
/
openbts-osmo
Archived
1
0
Fork 0

Tranceiver52M: Remove the Nieue hack

This hack accidentally leaked in the release code ... but it prevents
tuning for certain ARFCN and reduces TX power.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This commit is contained in:
Sylvain Munaut 2010-08-09 09:55:25 +02:00
parent 3a8fd4fac1
commit 5a969569c5
1 changed files with 2 additions and 2 deletions

View File

@ -607,7 +607,7 @@ bool USRPDevice::updateAlignment(TIMESTAMP timestamp)
bool USRPDevice::setTxFreq(double wFreq) {
// Tune to wFreq+LO_OFFSET, to prevent LO bleedthrough from interfering with transmitted signal.
double actFreq;
if (!tx_setFreq(wFreq+9*LO_OFFSET,&actFreq)) return false;
if (!tx_setFreq(wFreq+LO_OFFSET,&actFreq)) return false;
bool retVal = m_uTx->set_tx_freq(0,(wFreq-actFreq));
LOG(INFO) << "set TX: " << wFreq-actFreq << " actual TX: " << m_uTx->tx_freq(0);
return retVal;
@ -621,7 +621,7 @@ bool USRPDevice::setRxFreq(double wFreq) {
// in front of the ADC. This possibly gives us an extra 10-20dB Tx/Rx isolation.
double actFreq;
// FIXME -- This should bo configurable.
if (!rx_setFreq(wFreq-5*LO_OFFSET,&actFreq)) return false;
if (!rx_setFreq(wFreq-2*LO_OFFSET,&actFreq)) return false;
bool retVal = m_uRx->set_rx_freq(0,(wFreq-actFreq));
LOG(DEBUG) << "set RX: " << wFreq-actFreq << " actual RX: " << m_uRx->rx_freq(0);
return retVal;