Skip to contentSkip to conversation

Bluetooth: Read current IAC LAP on controller setup

PATCH In review Marcel Holtmann 2 participants 2 messages Oct 14, 2013

Subsystems (2)
lore
Share & tools
lore

Marcel Holtmann

author maintainer
#0 lore raw

PATCH 1/1 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.

---
 include/net/bluetooth/hci.h | 2 ++
 net/bluetooth/hci_core.c    | 3 +++
 2 files changed, 5 insertions(+)
include/net/bluetooth/hci.h +2 -0
index 8567f44..b096f5f 100644
@@ -821,6 +821,8 @@ struct hci_rp_read_num_supported_iac {
 	__u8	num_iac;
 } __packed;
 
+#define HCI_OP_READ_CURRENT_IAC_LAP	0x0c39
+
 #define HCI_OP_WRITE_INQUIRY_MODE	0x0c45
 
 #define HCI_MAX_EIR_LENGTH		240
net/bluetooth/hci_core.c +3 -0
index b5ef05e..7add9c9 100644
@@ -373,6 +373,9 @@ static void bredr_setup(struct hci_request *req)
 	/* Read Number of Supported IAC */
 	hci_req_add(req, HCI_OP_READ_NUM_SUPPORTED_IAC, 0, NULL);
 
+	/* Read Current IAC LAP */
+	hci_req_add(req, HCI_OP_READ_CURRENT_IAC_LAP, 0, NULL);
+
 	/* Clear Event Filters */
 	flt_type = HCI_FLT_CLEAR_ALL;
 	hci_req_add(req, HCI_OP_SET_EVENT_FLT, 1, &flt_type);
Signature · 1 line
1.8.3.1
#1 lore raw

Hi Marcel,

2013-10-14 Marcel Holtmann <[email protected]>:

Quoted 9 lines

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.

---
 include/net/bluetooth/hci.h | 2 ++
 net/bluetooth/hci_core.c    | 3 +++
 2 files changed, 5 insertions(+)

Both patches have been pushed to bluetooth-next. Thanks.

Gustavo