pub fn rssi_to_lqi(rssi: i8) -> u8 {
    if rssi < -80 {
        0
    } else if rssi > -30 {
        0xff
    } else {
        let lqi_convert = ((rssi as u32).wrapping_add(80)) * 255;
        (lqi_convert / 50) as u8
    }
}
Convert from RSSI (Received Signal Strength Indicator) to LQI (Link Quality
Indication)

RSSI is a measure of incoherent (raw) RF power in a channel. LQI is a
cumulative value used in multi-hop networks to assess the cost of a link.
esp-ieee802154/src/lib.rs