From 733ab6b6c82d246c75cefc40ecef2d62db91179c Mon Sep 17 00:00:00 2001 From: Sepherosa Ziehau Date: Tue, 17 Jul 2007 11:27:57 +0000 Subject: [PATCH] Correct RSSI calculation. Noticed by: Hans Petter Selasky Approved by: re (kensmith), sam (mentor) --- sys/dev/usb/if_ural.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/usb/if_ural.c b/sys/dev/usb/if_ural.c index e5e9922ba1f..9dc052b997e 100644 --- a/sys/dev/usb/if_ural.c +++ b/sys/dev/usb/if_ural.c @@ -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[] = {