Skip to contentSkip to conversation

btp: Update connect event structure

PATCH Superseded Tedd Ho-Jeong An 2 participants 2 messages Jun 25, 2020 Bluetooth drivers

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 btp: Update connect event structure

From: Tedd Ho-Jeong An <[email protected]>

This patch updates the connect event struct to align withe the btp spec.

Opcode 0x82 - Device Connected event
Controller Index: <controller id>
Event parameters: Address_Type (1 octet)
Address (6 octets) Connection Interval (2 octets) Connection Latency (2 octets) Supervision Timeout (2 octets)

This event indicates that a device was connected.

---
 src/shared/btp.h | 3 +++
 1 file changed, 3 insertions(+)
src/shared/btp.h +3 -0
index f0ac3a1ee..cc71a71df 100644
@@ -259,6 +259,9 @@ struct btp_device_found_ev {
 struct btp_gap_device_connected_ev {
 	uint8_t address_type;
 	bdaddr_t address;
+	uint16_t connection_interval;
+	uint16_t connection_latency;
+	uint16_t supervision_timeout;
 } __packed;
 
 #define BTP_EV_GAP_DEVICE_DISCONNECTED		0x83
Signature · 1 line
2.17.1
#1 lore raw

This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list. While we are preparing for reviewing the patches, we found the following issue/warning.

Test Result:
checkgitlint Failed

Outputs:
6: B3 Line contains hard tab characters (\t): " Controller Index: <controller id>"
7: B3 Line contains hard tab characters (\t): " Event parameters: Address_Type (1 octet)"
8: B3 Line contains hard tab characters (\t): " Address (6 octets)"
9: B3 Line contains hard tab characters (\t): " Connection Interval (2 octets)"
10: B3 Line contains hard tab characters (\t): " Connection Latency (2 octets)"
11: B3 Line contains hard tab characters (\t): " Supervision Timeout (2 octets)"

---
Regards,
Linux Bluetooth