diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2020-03-12 19:08:46 +0100 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2020-03-12 19:34:28 +0100 |
commit | f8c0c464b84f6ca44c7a50623909e1a4aace0a1e (patch) | |
tree | 1eb8871d7f7bb67ed18b99a67f06f06848f8ae9e /Transceiver52M/device/usrp1/USRPDevice.cpp | |
parent | 93707d02275686780657fc78c72beaa805faf1f1 (diff) |
radioDevice: Drop unused RSSI param from readSamples API
The out "RSSI" parameter is only filled by USRPDevice, and not used at
all by any user of the API (radioInterface*.cpp).
RSSI seems to be computed nowadays in the common path in
Transceiver::pullRadioVector().
Change-Id: I06c2ea5a9891d170bc468f952bbf2a7e64d95784
Diffstat (limited to 'Transceiver52M/device/usrp1/USRPDevice.cpp')
-rw-r--r-- | Transceiver52M/device/usrp1/USRPDevice.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Transceiver52M/device/usrp1/USRPDevice.cpp b/Transceiver52M/device/usrp1/USRPDevice.cpp index 766a228..5eaca07 100644 --- a/Transceiver52M/device/usrp1/USRPDevice.cpp +++ b/Transceiver52M/device/usrp1/USRPDevice.cpp @@ -365,7 +365,7 @@ GSM::Time USRPDevice::minLatency() { // NOTE: Assumes sequential reads int USRPDevice::readSamples(std::vector<short *> &bufs, int len, bool *overrun, - TIMESTAMP timestamp, bool *underrun, unsigned *RSSI) + TIMESTAMP timestamp, bool *underrun) { #ifndef SWLOOPBACK if (!m_uRx) @@ -433,8 +433,10 @@ int USRPDevice::readSamples(std::vector<short *> &bufs, int len, bool *overrun, *underrun = true; LOGC(DDEV, DEBUG) << "UNDERRUN in TRX->USRP interface"; } - if (RSSI) *RSSI = (word0 >> 21) & 0x3f; - +#if 0 + /* FIXME: Do something with this ? */ + unsigned RSSI = (word0 >> 21) & 0x3f; +#endif if (!isAligned) continue; unsigned cursorStart = pktTimestamp - timeStart + dataStart; |