aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2013-10-14 17:06:36 -0400
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>2013-10-14 18:31:18 -0400
commit4b836f393bd8ed111857a6ee1865e44627266ec6 (patch)
treed954368ae38438f5661d534b61708a1e0a54774b
parentb4cb9fb25e9eae749f456e9e94446650389e736b (diff)
Bluetooth: Read current IAC LAP on controller setup
Read the current IAC LAP values when initializing the controller. The values are not used, but it is good to have them in the trace files for debugging purposes. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
-rw-r--r--include/net/bluetooth/hci.h2
-rw-r--r--net/bluetooth/hci_core.c3
2 files changed, 5 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h
index 8567f44aa618..b096f5f73789 100644
--- a/include/net/bluetooth/hci.h
+++ b/include/net/bluetooth/hci.h
@@ -821,6 +821,8 @@ struct hci_rp_read_num_supported_iac {
821 __u8 num_iac; 821 __u8 num_iac;
822} __packed; 822} __packed;
823 823
824#define HCI_OP_READ_CURRENT_IAC_LAP 0x0c39
825
824#define HCI_OP_WRITE_INQUIRY_MODE 0x0c45 826#define HCI_OP_WRITE_INQUIRY_MODE 0x0c45
825 827
826#define HCI_MAX_EIR_LENGTH 240 828#define HCI_MAX_EIR_LENGTH 240
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
index b5ef05e66a2d..7add9c96e32c 100644
--- a/net/bluetooth/hci_core.c
+++ b/net/bluetooth/hci_core.c
@@ -373,6 +373,9 @@ static void bredr_setup(struct hci_request *req)
373 /* Read Number of Supported IAC */ 373 /* Read Number of Supported IAC */
374 hci_req_add(req, HCI_OP_READ_NUM_SUPPORTED_IAC, 0, NULL); 374 hci_req_add(req, HCI_OP_READ_NUM_SUPPORTED_IAC, 0, NULL);
375 375
376 /* Read Current IAC LAP */
377 hci_req_add(req, HCI_OP_READ_CURRENT_IAC_LAP, 0, NULL);
378
376 /* Clear Event Filters */ 379 /* Clear Event Filters */
377 flt_type = HCI_FLT_CLEAR_ALL; 380 flt_type = HCI_FLT_CLEAR_ALL;
378 hci_req_add(req, HCI_OP_SET_EVENT_FLT, 1, &flt_type); 381 hci_req_add(req, HCI_OP_SET_EVENT_FLT, 1, &flt_type);