diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2013-05-14 04:44:16 -0400 |
---|---|---|
committer | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2013-06-22 19:23:52 -0400 |
commit | 034cbea0931433cf88a1f79a385402604f08bd67 (patch) | |
tree | 70fe066fba4fbcb7e2ff85d932f06247758f7aa9 | |
parent | 12602d0cc005354a519b3eba443d7912ab71313a (diff) |
Bluetooth: Use HCI_MGMT instead of HCI_LINK_KEYS flag
Use HCI_MGMT flag instead of HCI_LINK_KEYS flag. There is a problem with
HCI_LINK_KEYS flag since it is set only when link keys are loaded. Otherwise
kernel assumes that old interface is used.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Acked-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
-rw-r--r-- | net/bluetooth/hci_event.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index db58e72316b9..0437200d92f4 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c | |||
@@ -2611,7 +2611,7 @@ static void hci_link_key_request_evt(struct hci_dev *hdev, struct sk_buff *skb) | |||
2611 | 2611 | ||
2612 | BT_DBG("%s", hdev->name); | 2612 | BT_DBG("%s", hdev->name); |
2613 | 2613 | ||
2614 | if (!test_bit(HCI_LINK_KEYS, &hdev->dev_flags)) | 2614 | if (!test_bit(HCI_MGMT, &hdev->dev_flags)) |
2615 | return; | 2615 | return; |
2616 | 2616 | ||
2617 | hci_dev_lock(hdev); | 2617 | hci_dev_lock(hdev); |
@@ -2687,7 +2687,7 @@ static void hci_link_key_notify_evt(struct hci_dev *hdev, struct sk_buff *skb) | |||
2687 | hci_conn_drop(conn); | 2687 | hci_conn_drop(conn); |
2688 | } | 2688 | } |
2689 | 2689 | ||
2690 | if (test_bit(HCI_LINK_KEYS, &hdev->dev_flags)) | 2690 | if (test_bit(HCI_MGMT, &hdev->dev_flags)) |
2691 | hci_add_link_key(hdev, conn, 1, &ev->bdaddr, ev->link_key, | 2691 | hci_add_link_key(hdev, conn, 1, &ev->bdaddr, ev->link_key, |
2692 | ev->key_type, pin_len); | 2692 | ev->key_type, pin_len); |
2693 | 2693 | ||