altos: Compute "real" RSSI value in radio code as needed
authorKeith Packard <keithp@keithp.com>
Tue, 30 Apr 2013 06:20:25 +0000 (23:20 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 30 Apr 2013 06:20:25 +0000 (23:20 -0700)
commit491771214bd1853aa18afa5d7848309b5f413e49
treee4ba0c48537a5d8269e89c014830547a3083ed28
parent18cc254bcda7707740d6dd723f3a2963780441de
altos: Compute "real" RSSI value in radio code as needed

Instead of dragging around the weird CC1111 RSSI values, just compute
a dBm value in a signed 8-bit integer, ao_radio_rssi. Use that
everywhere we need RSSI internally. We leave the weird CC1111 value in
the packet reply as that's what the host expects.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/cc1111/ao_radio.c
src/core/ao.h
src/core/ao_packet.h
src/core/ao_radio_cmac.c
src/drivers/ao_cc1120.c
src/drivers/ao_packet.c
src/drivers/ao_packet_master.c