diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2005-11-24 04:10:46 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2005-11-24 04:10:46 +0000 |
commit | 64ff01e4de2931c0092cd927330e95d82aa413ad (patch) | |
tree | 57374de3fcd05d4ebe363f064dce7302d52bac49 /hcid/security.c | |
parent | dd5f6c5572b954ea569a918a1612820d3c7b8318 (diff) |
Add support for device properties
Diffstat (limited to 'hcid/security.c')
-rw-r--r-- | hcid/security.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/hcid/security.c b/hcid/security.c index 91f65665..76a8600d 100644 --- a/hcid/security.c +++ b/hcid/security.c @@ -491,9 +491,14 @@ static inline void cmd_status(int dev, bdaddr_t *sba, void *ptr) static inline void cmd_complete(int dev, bdaddr_t *sba, void *ptr) { evt_cmd_complete *evt = ptr; - - if (evt->opcode == cmd_opcode_pack(OGF_LINK_CTL, OCF_INQUIRY_CANCEL)) + switch (evt->opcode) { + case cmd_opcode_pack(OGF_LINK_CTL, OCF_INQUIRY_CANCEL): hcid_dbus_inquiry_complete(sba); + break; + case cmd_opcode_pack(OGF_HOST_CTL, OCF_CHANGE_LOCAL_NAME): + hcid_dbus_setname_complete(sba); + break; + }; } static inline void remote_name_information(int dev, bdaddr_t *sba, void *ptr) |