]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Bluetooth: Send correct address type for LTK
authorHemant Gupta <hemant.gupta@stericsson.com>
Fri, 30 Mar 2012 11:53:35 +0000 (17:23 +0530)
committerJohan Hedberg <johan.hedberg@intel.com>
Fri, 30 Mar 2012 12:09:02 +0000 (15:09 +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 5a56e0cddef7fcac6c5fc9ea4071f5a4c3cd0a01..b4f7e328c9f8f39c19a7edc77707a34167701eb2 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;