diff mbox series

[BlueZ,1/1] Mesh HCI interface init scan interval fixed

Message ID 20200831161116.15975-2-daan@dptechnics.com (mailing list archive)
State Accepted
Delegated to: Luiz Von Dentz
Headers show
Series Mesh HCI interface init scan interval fixed | expand

Commit Message

Daan Pape Aug. 31, 2020, 4:11 p.m. UTC
---
 AUTHORS                | 1 +
 mesh/mesh-io-generic.c | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

Comments

bluez.test.bot@gmail.com Aug. 31, 2020, 4:22 p.m. UTC | #1
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
diff mbox series

Patch

diff --git a/AUTHORS b/AUTHORS
index 291d9b049..fd5d20cb2 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -107,3 +107,4 @@  Michał Lowas-Rzechonek <michal.lowas-rzechonek@silvair.com>
 Jakub Witowski <jakub.witowski@silvair.com>
 Rafał Gajda <rafal.gajda@silvair.com>
 Szymon Czapracki <szymon.czapracki@codecoup.pl>
+Daan Pape <daan@dptechnics.com>
diff --git a/mesh/mesh-io-generic.c b/mesh/mesh-io-generic.c
index 67304d201..e65d87aab 100644
--- a/mesh/mesh-io-generic.c
+++ b/mesh/mesh-io-generic.c
@@ -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).