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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 AUTHORS                | 1 +
 mesh/mesh-io-generic.c | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/AUTHORS b/AUTHORS
index 291d9b049..fd5d20cb2 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -107,3 +107,4 @@ Michał Lowas-Rzechonek <michal.lowas-rzechonek@xxxxxxxxxxx>
 Jakub Witowski <jakub.witowski@xxxxxxxxxxx>
 Rafał Gajda <rafal.gajda@xxxxxxxxxxx>
 Szymon Czapracki <szymon.czapracki@xxxxxxxxxxx>
+Daan Pape <daan@xxxxxxxxxxxxxx>
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).
-- 
2.25.1






[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux