Bluetooth: Add definitions for link key types
Introduce the link key types defs and use them instead of magic numbers. Signed-off-by: Waldemar Rymarkiewicz <waldemar.rymarkiewicz@tieto.com> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
This commit is contained in:
committed by
Gustavo F. Padovan
parent
314b2381a7
commit
b6020ba055
@ -1050,7 +1050,7 @@ int hci_add_link_key(struct hci_dev *hdev, int new_key, bdaddr_t *bdaddr,
|
||||
if (new_key)
|
||||
mgmt_new_key(hdev->id, key, old_key_type);
|
||||
|
||||
if (type == 0x06)
|
||||
if (type == HCI_LK_CHANGED_COMBINATION)
|
||||
key->type = old_key_type;
|
||||
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user