1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 14:33:52 +01:00

Merge pull request #14672 from jia200x/pr/fix_cc2538_rssi

cc2538: fix RSSI offset
This commit is contained in:
Peter Kietzmann 2020-08-03 09:45:16 +02:00 committed by GitHub
commit 6adf07caf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -350,11 +350,9 @@ static int _recv(netdev_t *netdev, void *buf, size_t len, void *info)
if (info != NULL) {
netdev_ieee802154_rx_info_t *radio_info = info;
RFCORE_ASSERT(rssi_val > CC2538_RF_SENSITIVITY);
/* The number of dB above maximum sensitivity detected for the
* received packet */
radio_info->rssi = -CC2538_RF_SENSITIVITY + rssi_val;
radio_info->rssi = rssi_val;
uint8_t corr_val = crc_corr_val & CC2538_CORR_VAL_MASK;