From 1f536df70ee2320f8dbac33e2341c912bd29a567 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Thu, 27 Sep 2007 11:41:28 +0000 Subject: Don't update RSSI if new value is 0 (fixes combined DiscoverRemoteDevicesWithoutNameResolving + GetRemoteName usage) --- hcid/dbus-hci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit