summaryrefslogtreecommitdiff
path: root/plugins/neard.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2013-04-29 14:02:34 +0300
committerJohan Hedberg <johan.hedberg@intel.com>2013-04-29 14:02:34 +0300
commitd56685d05706bd5ab97a92940cd0b3dcf22d0401 (patch)
tree1df1339f4e98f6c0d5af20ad0ea725ae79c7458b /plugins/neard.c
parent18d68b3755ffaafcfc74da9a5412b3c62baeadd4 (diff)
downloadbluez-d56685d05706bd5ab97a92940cd0b3dcf22d0401.tar.gz
core: Fix storing info for private addressed devices
Devices with private addresses cannot persistently be identified by their address. Therefore it doesn't make sense to store any information about them as the information couldn't be looked up later once the remote address has changed. Once the kernel receives support for private address resolution we'll start getting the public address of such devices to user space. However, until then we just have to ignore such devices from a storage perspective.
Diffstat (limited to 'plugins/neard.c')
-rw-r--r--plugins/neard.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/neard.c b/plugins/neard.c
index c60c07682..f46e20e5e 100644
--- a/plugins/neard.c
+++ b/plugins/neard.c
@@ -636,8 +636,7 @@ static void store_params(struct btd_adapter *adapter, struct btd_device *device,
device_set_class(device, params->class);
if (params->name) {
- adapter_store_cached_name(adapter_get_address(adapter),
- &params->address, params->name);
+ device_store_cached_name(device, params->name);
device_set_name(device, params->name);
}