Bluetooth: Send correct address type for LTK
authorHemant Gupta <hemant.gupta@stericsson.com>
Fri, 30 Mar 2012 11:53:35 +0000 (17:23 +0530)
committerGustavo Padovan <gustavo@padovan.org>
Wed, 9 May 2012 03:41:37 +0000 (00:41 -0300)
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>
net/bluetooth/mgmt.c

index d08edadd8bcab34bdf769305d8b557bd8bff5465..1ec16721ed7aec3d8488dd44995ad88190e1c822 100644 (file)
@@ -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;
This page took 0.033363 seconds and 5 git commands to generate.