diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2006-03-29 11:10:05 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2006-03-29 11:10:05 +0000 |
commit | a95a51f09670c7f7447a736a3c547dc534a96214 (patch) | |
tree | 58d08c2a41992d590e55a87855a7e83f14f75960 | |
parent | b3927e51e34be38111778fdceb0d3384934af1f7 (diff) |
Send BondingComplete success on link key notify instead of auth complete
-rw-r--r-- | hcid/security.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/hcid/security.c b/hcid/security.c index 82268d15..73efa324 100644 --- a/hcid/security.c +++ b/hcid/security.c @@ -226,6 +226,8 @@ static void link_key_notify(int dev, bdaddr_t *sba, void *ptr) write_link_key(sba, dba, evt->link_key, evt->key_type, io_data[dev_id].pin_length); + hcid_dbus_bonding_created_complete(sba, &dba, 0); + io_data[dev_id].pin_length = -1; } @@ -620,7 +622,8 @@ static inline void auth_complete(int dev, bdaddr_t *sba, void *ptr) if (get_bdaddr(dev, sba, evt->handle, &dba) < 0) return; - hcid_dbus_bonding_created_complete(sba, &dba, evt->status); + if (evt->status) + hcid_dbus_bonding_created_complete(sba, &dba, evt->status); } static gboolean io_security_event(GIOChannel *chan, GIOCondition cond, gpointer data) |