summaryrefslogtreecommitdiffstats
path: root/hcid/security.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2005-04-16 15:19:04 +0000
committerMarcel Holtmann <marcel@holtmann.org>2005-04-16 15:19:04 +0000
commit0467164fb3a90cddff16c52fc4172029f978497d (patch)
tree965748868d42f43ff9d60d3fda8bdf297359ff74 /hcid/security.c
parentf1a83659170a8f324991061c9ed14f39393e7c10 (diff)
Store device names in the background
Diffstat (limited to 'hcid/security.c')
-rw-r--r--hcid/security.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/hcid/security.c b/hcid/security.c
index f0bf12bd..92353373 100644
--- a/hcid/security.c
+++ b/hcid/security.c
@@ -193,6 +193,8 @@ static void link_key_notify(int dev, bdaddr_t *sba, void *ptr)
key.time = time(0);
save_link_key(&key);
+
+ write_link_key(sba, dba, evt->link_key, evt->key_type);
}
/* PIN code handling */
@@ -386,7 +388,7 @@ static void remote_name_information(int dev, bdaddr_t *sba, void *ptr)
evt_remote_name_req_complete *evt = ptr;
bdaddr_t *dba = &evt->bdaddr;
- if (!evt->status)
+ if (evt->status)
return;
write_device_name(sba, dba, evt->name);