summaryrefslogtreecommitdiffstats
path: root/hcid
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-09-27 11:41:28 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-09-27 11:41:28 +0000
commit1f536df70ee2320f8dbac33e2341c912bd29a567 (patch)
tree48da929655e8b84754fd4c93deb0a42ac2fb7191 /hcid
parentd3074a97b9803de16a65e6d377060b72f026dfd7 (diff)
Don't update RSSI if new value is 0 (fixes combined DiscoverRemoteDevicesWithoutNameResolving + GetRemoteName usage)
Diffstat (limited to 'hcid')
-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