diff options
| author | Vinicius Costa Gomes <[email protected]> | 2012-02-02 21:08:05 -0300 |
|---|---|---|
| committer | Johan Hedberg <[email protected]> | 2012-02-13 17:01:33 +0200 |
| commit | 261cc5aa9e54aac633dcc3b6469739cb6e23e21a (patch) | |
| tree | 52d39d6a4c9b83998e5fe64e6e448e6d429e775d | |
| parent | f9c5f9ddcfc404b5d4c079452755337d84c97707 (diff) | |
Bluetooth: Add support for notifying userspace of new LTK's
If we want to have proper pairing support over LE we need to
inform userspace that a new LTK is available, so userspace
can store that key permanently.
Signed-off-by: Vinicius Costa Gomes <[email protected]>
Acked-by: Marcel Holtmann <[email protected]>
Signed-off-by: Johan Hedberg <[email protected]>
| -rw-r--r-- | net/bluetooth/hci_core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c index 84b7a9e4f2f6..76dc1538e321 100644 --- a/net/bluetooth/hci_core.c +++ b/net/bluetooth/hci_core.c @@ -1338,6 +1338,9 @@ int hci_add_ltk(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 addr_type, u8 type, if (!new_key) return 0; + if (type & HCI_SMP_LTK) + mgmt_new_ltk(hdev, key, 1); + return 0; } |