Skip to contentSkip to conversation

Mesh HCI interface init scan interval fixed

PATCH In review Daan Pape 2 participants 3 messages Aug 31, 2020 Bluetooth drivers

lore
Share & tools
lore

Daan Pape

author
#0 lore raw

cover Mesh HCI interface init scan interval fixed

The HCI initialization function of bluetooth-meshd was not converting to the correct byte order when initializing the LE Scan Parameters. This is now fixed.

Daan Pape (1):
Mesh HCI interface init scan interval fixed

 AUTHORS                | 1 +
 mesh/mesh-io-generic.c | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)
Signature · 1 line
2.25.1
author
#1 lore raw

PATCH 1/1 Mesh HCI interface init scan interval fixed

---
 AUTHORS                | 1 +
 mesh/mesh-io-generic.c | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)
AUTHORS +1 -0
index 291d9b049..fd5d20cb2 100644
@@ -107,3 +107,4 @@ Michał Lowas-Rzechonek <[email protected]>
 Jakub Witowski <[email protected]>
 Rafał Gajda <[email protected]>
 Szymon Czapracki <[email protected]>
+Daan Pape <[email protected]>
mesh/mesh-io-generic.c +2 -2
index 67304d201..e65d87aab 100644
@@ -213,8 +213,8 @@ static void configure_hci(struct mesh_io_private *io)
 
 	/* Set scan parameters */
 	cmd.type = 0x00; /* Passive Scanning. No scanning PDUs shall be sent */
-	cmd.interval = 0x0030; /* Scan Interval = N * 0.625ms */
-	cmd.window = 0x0030; /* Scan Window = N * 0.625ms */
+	cmd.interval = L_CPU_TO_LE16(0x0010); /* Scan Interval = N * 0.625ms */
+	cmd.window = L_CPU_TO_LE16(0x0010); /* Scan Window = N * 0.625ms */
 	cmd.own_addr_type = 0x00; /* Public Device Address */
 	/* Accept all advertising packets except directed advertising packets
 	 * not addressed to this device (default).
Signature · 1 line
2.25.1
#2 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:
3: B6 Body message is missing

---
Regards,
Linux Bluetooth