diff options
author | Szymon Janc <szymon.janc@tieto.com> | 2011-03-22 08:12:21 -0400 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-03-31 13:22:57 -0400 |
commit | c35938b2f56547ee77b5a038fe0db394aeac59bb (patch) | |
tree | 8bb0975ce5b48bd01ca04432e3fa13ae605b60b9 /net/bluetooth/hci_event.c | |
parent | 8fce6357a9e72c4c9c846f9951895954bfb34ad1 (diff) |
Bluetooth: Add read_local_oob_data management command
This patch adds a command to read local OOB data to the managment interface.
The command maps directly to the Read Local OOB Data HCI command.
Signed-off-by: Szymon Janc <szymon.janc@tieto.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net/bluetooth/hci_event.c')
-rw-r--r-- | net/bluetooth/hci_event.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index 0def3e1fe5ef..582ef60a8bc0 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c | |||
@@ -822,6 +822,17 @@ static void hci_cc_user_confirm_neg_reply(struct hci_dev *hdev, | |||
822 | rp->status); | 822 | rp->status); |
823 | } | 823 | } |
824 | 824 | ||
825 | static void hci_cc_read_local_oob_data_reply(struct hci_dev *hdev, | ||
826 | struct sk_buff *skb) | ||
827 | { | ||
828 | struct hci_rp_read_local_oob_data *rp = (void *) skb->data; | ||
829 | |||
830 | BT_DBG("%s status 0x%x", hdev->name, rp->status); | ||
831 | |||
832 | mgmt_read_local_oob_data_reply_complete(hdev->id, rp->hash, | ||
833 | rp->randomizer, rp->status); | ||
834 | } | ||
835 | |||
825 | static inline void hci_cs_inquiry(struct hci_dev *hdev, __u8 status) | 836 | static inline void hci_cs_inquiry(struct hci_dev *hdev, __u8 status) |
826 | { | 837 | { |
827 | BT_DBG("%s status 0x%x", hdev->name, status); | 838 | BT_DBG("%s status 0x%x", hdev->name, status); |
@@ -1752,6 +1763,10 @@ static inline void hci_cmd_complete_evt(struct hci_dev *hdev, struct sk_buff *sk | |||
1752 | hci_cc_pin_code_neg_reply(hdev, skb); | 1763 | hci_cc_pin_code_neg_reply(hdev, skb); |
1753 | break; | 1764 | break; |
1754 | 1765 | ||
1766 | case HCI_OP_READ_LOCAL_OOB_DATA: | ||
1767 | hci_cc_read_local_oob_data_reply(hdev, skb); | ||
1768 | break; | ||
1769 | |||
1755 | case HCI_OP_LE_READ_BUFFER_SIZE: | 1770 | case HCI_OP_LE_READ_BUFFER_SIZE: |
1756 | hci_cc_le_read_buffer_size(hdev, skb); | 1771 | hci_cc_le_read_buffer_size(hdev, skb); |
1757 | break; | 1772 | break; |