diff options
author | Hemant Gupta <hemant.gupta@stericsson.com> | 2012-03-30 13:53:35 +0200 |
---|---|---|
committer | Gustavo Padovan <gustavo@padovan.org> | 2012-05-09 05:41:37 +0200 |
commit | eb19aaacb3f88dbd69e1cd9a2b1f054d4dade678 (patch) | |
tree | ec937d096f373fada36f450003d0f660e56de1f7 /net/bluetooth/mgmt.c | |
parent | Bluetooth: Remove unneeded zero initialization (diff) | |
download | linux-eb19aaacb3f88dbd69e1cd9a2b1f054d4dade678.tar.xz linux-eb19aaacb3f88dbd69e1cd9a2b1f054d4dade678.zip |
Bluetooth: Send correct address type for LTK
This patch updates the address type sent from kernel to management
interface of BlueZ while sending the Long Term Key.
Signed-off-by: Hemant Gupta <hemant.gupta@stericsson.com>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'net/bluetooth/mgmt.c')
-rw-r--r-- | net/bluetooth/mgmt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index d08edadd8bca..1ec16721ed7a 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c @@ -2978,7 +2978,7 @@ int mgmt_new_ltk(struct hci_dev *hdev, struct smp_ltk *key, u8 persistent) ev.store_hint = persistent; bacpy(&ev.key.addr.bdaddr, &key->bdaddr); - ev.key.addr.type = key->bdaddr_type; + ev.key.addr.type = link_to_mgmt(LE_LINK, key->bdaddr_type); ev.key.authenticated = key->authenticated; ev.key.enc_size = key->enc_size; ev.key.ediv = key->ediv; |