summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--hcid/dbus-hci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hcid/dbus-hci.c b/hcid/dbus-hci.c
index 80aeb28c..46646d27 100644
--- a/hcid/dbus-hci.c
+++ b/hcid/dbus-hci.c
@@ -122,7 +122,8 @@ int found_device_add(GSList **list, bdaddr_t *bdaddr, int8_t rssi,
/* device found, update the attributes */
dev = l->data;
- dev->rssi = rssi;
+ if (rssi != 0)
+ dev->rssi = rssi;
/* Get remote name can be received while inquiring.
* Keep in mind that multiple inquiry result events can