Correct RSSI calculation.

Noticed by: Hans Petter Selasky <hselasky@c2i.net>
Approved by: re (kensmith), sam (mentor)
This commit is contained in:
Sepherosa Ziehau 2007-07-17 11:27:57 +00:00
parent ac3a6d9cef
commit 733ab6b6c8

View File

@ -76,7 +76,7 @@ SYSCTL_INT(_hw_usb_ural, OID_AUTO, debug, CTLFLAG_RW, &uraldebug, 0,
#define URAL_RSSI(rssi) \
((rssi) > (RAL_NOISE_FLOOR + RAL_RSSI_CORR) ? \
((rssi) - RAL_NOISE_FLOOR + RAL_RSSI_CORR) : 0)
((rssi) - (RAL_NOISE_FLOOR + RAL_RSSI_CORR)) : 0)
/* various supported device vendors/products */
static const struct usb_devno ural_devs[] = {