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>
This commit is contained in:
committed by
Gustavo Padovan
parent
3a602a00a4
commit
eb19aaacb3
@ -2978,7 +2978,7 @@ int mgmt_new_ltk(struct hci_dev *hdev, struct smp_ltk *key, u8 persistent)
|
|||||||
|
|
||||||
ev.store_hint = persistent;
|
ev.store_hint = persistent;
|
||||||
bacpy(&ev.key.addr.bdaddr, &key->bdaddr);
|
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.authenticated = key->authenticated;
|
||||||
ev.key.enc_size = key->enc_size;
|
ev.key.enc_size = key->enc_size;
|
||||||
ev.key.ediv = key->ediv;
|
ev.key.ediv = key->ediv;
|
||||||
|
Reference in New Issue
Block a user