diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2011-04-28 07:47:54 +0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2011-04-28 23:00:15 +0300 |
commit | 3caf142f55ddda127621779335d574e89788576d (patch) | |
tree | c79b019a3779c8e2f3df2e3f65ab22edd9716eae /plugins | |
parent | 50ff50b716786fdb5656c0616d3bc1b507b3b5f2 (diff) |
Add support for store_hint in mgmt_ev_new_key
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mgmtops.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/mgmtops.c b/plugins/mgmtops.c index be94267ff..a8a7ac2bc 100644 --- a/plugins/mgmtops.c +++ b/plugins/mgmtops.c @@ -407,9 +407,10 @@ static void mgmt_new_key(int sk, uint16_t index, void *buf, size_t len) info = &controllers[index]; - btd_event_link_key_notify(&info->bdaddr, &ev->key.bdaddr, - ev->key.val, ev->key.type, - ev->key.pin_len); + if (ev->store_hint) + btd_event_link_key_notify(&info->bdaddr, &ev->key.bdaddr, + ev->key.val, ev->key.type, + ev->key.pin_len); btd_event_bonding_complete(&info->bdaddr, &ev->key.bdaddr, 0); } |