summaryrefslogtreecommitdiffstats
path: root/hcid/security.c
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2006-03-13 20:47:52 +0000
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2006-03-13 20:47:52 +0000
commit1fe7ab081842276d8db73a44cc64c2115b618cc2 (patch)
tree5fe2f882ea3f2cf0fe99737956d11aea65cac0c1 /hcid/security.c
parent5a7676dd838717f9ce483af8e9be0acf80f2960c (diff)
Added remote name resolving queue
Diffstat (limited to 'hcid/security.c')
-rw-r--r--hcid/security.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/hcid/security.c b/hcid/security.c
index cff54d9d..f3c03ef2 100644
--- a/hcid/security.c
+++ b/hcid/security.c
@@ -325,16 +325,17 @@ static inline void remote_name_information(int dev, bdaddr_t *sba, void *ptr)
{
evt_remote_name_req_complete *evt = ptr;
bdaddr_t dba;
+ char name[249];
+ memset(name, 0, sizeof(name));
bacpy(&dba, &evt->bdaddr);
if (!evt->status) {
- char name[249];
- memset(name, 0, sizeof(name));
memcpy(name, evt->name, 248);
write_device_name(sba, &dba, name);
- hcid_dbus_remote_name(sba, &dba, name);
}
+
+ hcid_dbus_remote_name(sba, &dba, evt->status, name);
}
static inline void remote_version_information(int dev, bdaddr_t *sba, void *ptr)