public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH BlueZ] hog-lib: Increase maximum report map size
@ 2022-08-03 22:57 Vicki Pfau
  2022-08-03 23:55 ` Luiz Augusto von Dentz
  2022-08-04  0:00 ` [BlueZ] " bluez.test.bot
  0 siblings, 2 replies; 12+ messages in thread
From: Vicki Pfau @ 2022-08-03 22:57 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Vicki Pfau

Though a 512 byte report map size seems plenty large, there exist some devices
(e.g. Brydge W-Touch) that send larger reports. There is no protocol-defined
maximum size so doubling the maximum size is safe, and should hopefully fix
most real-world failures.
---
 profiles/input/hog-lib.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/profiles/input/hog-lib.c b/profiles/input/hog-lib.c
index 4a9c60185..9f3eb428c 100644
--- a/profiles/input/hog-lib.c
+++ b/profiles/input/hog-lib.c
@@ -64,7 +64,7 @@
 #define HOG_PROTO_MODE_BOOT    0
 #define HOG_PROTO_MODE_REPORT  1
 
-#define HOG_REPORT_MAP_MAX_SIZE        512
+#define HOG_REPORT_MAP_MAX_SIZE        1024
 #define HID_INFO_SIZE			4
 #define ATT_NOTIFICATION_HEADER_SIZE	3
 
-- 
2.37.1


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2022-08-16 20:06 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-03 22:57 [PATCH BlueZ] hog-lib: Increase maximum report map size Vicki Pfau
2022-08-03 23:55 ` Luiz Augusto von Dentz
2022-08-04  0:05   ` Vicki Pfau
2022-08-04  0:16     ` Luiz Augusto von Dentz
2022-08-04  0:18       ` Vicki Pfau
2022-08-10  2:02       ` Vicki Pfau
2022-08-10 20:13         ` Luiz Augusto von Dentz
2022-08-15 18:09           ` Luiz Augusto von Dentz
2022-08-16  1:49             ` Vicki Pfau
2022-08-16 18:31               ` Luiz Augusto von Dentz
2022-08-16 20:05                 ` Luiz Augusto von Dentz
2022-08-04  0:00 ` [BlueZ] " bluez.test.bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox