diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2012-09-27 10:26:19 -0400 |
---|---|---|
committer | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2012-09-27 16:30:40 -0400 |
commit | a02226d6ff5098e6b97590cc55aabe7faf0860ed (patch) | |
tree | 5ec09ebf86af46cdf37ecca872f2cfd12004edb7 /net/bluetooth/hci_event.c | |
parent | 5a349186692950b13896abc3fb2f491d023f95a1 (diff) |
Bluetooth: AMP: Create Physical Link
When receiving A2MP Get AMP Assoc Response execute HCI Create Physical
Link to AMP controller. Define function which will run when receiving
HCI Command Status.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Diffstat (limited to 'net/bluetooth/hci_event.c')
-rw-r--r-- | net/bluetooth/hci_event.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index a4240f7a142e..bd06ef95693d 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c | |||
@@ -1698,6 +1698,11 @@ static void hci_cs_le_start_enc(struct hci_dev *hdev, u8 status) | |||
1698 | BT_DBG("%s status 0x%2.2x", hdev->name, status); | 1698 | BT_DBG("%s status 0x%2.2x", hdev->name, status); |
1699 | } | 1699 | } |
1700 | 1700 | ||
1701 | static void hci_cs_create_phylink(struct hci_dev *hdev, u8 status) | ||
1702 | { | ||
1703 | BT_DBG("%s status 0x%2.2x", hdev->name, status); | ||
1704 | } | ||
1705 | |||
1701 | static void hci_inquiry_complete_evt(struct hci_dev *hdev, struct sk_buff *skb) | 1706 | static void hci_inquiry_complete_evt(struct hci_dev *hdev, struct sk_buff *skb) |
1702 | { | 1707 | { |
1703 | __u8 status = *((__u8 *) skb->data); | 1708 | __u8 status = *((__u8 *) skb->data); |
@@ -2512,6 +2517,10 @@ static void hci_cmd_status_evt(struct hci_dev *hdev, struct sk_buff *skb) | |||
2512 | hci_cs_le_start_enc(hdev, ev->status); | 2517 | hci_cs_le_start_enc(hdev, ev->status); |
2513 | break; | 2518 | break; |
2514 | 2519 | ||
2520 | case HCI_OP_CREATE_PHY_LINK: | ||
2521 | hci_cs_create_phylink(hdev, ev->status); | ||
2522 | break; | ||
2523 | |||
2515 | default: | 2524 | default: |
2516 | BT_DBG("%s opcode 0x%4.4x", hdev->name, opcode); | 2525 | BT_DBG("%s opcode 0x%4.4x", hdev->name, opcode); |
2517 | break; | 2526 | break; |