Thread (3 messages) 3 messages, 3 authors, 2021-09-10

[RFC BlueZ] mgmt-api: Introduce Test command

From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
Date: 2021-09-09 21:47:56
Subsystem: the rest · Maintainer: Linus Torvalds

From: Luiz Augusto von Dentz <redacted>

This introduces Test command which can be use to further extend the
subcommands which are intented to test the behavior of the kernel
outside the normal scope of Bluetooth subsystem (e.g. suspend, resume,
etc).
---
 doc/mgmt-api.txt | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
diff --git a/doc/mgmt-api.txt b/doc/mgmt-api.txt
index 5355fedb0..164a0514d 100644
--- a/doc/mgmt-api.txt
+++ b/doc/mgmt-api.txt
@@ -3856,6 +3856,33 @@ Add Advertisement Patterns Monitor With RSSI Threshold Command
 				No Resources
 				Invalid Parameters
 
+Test Command
+============
+	Command Code:		0xffff
+	Controller Index:	<controller id>
+	Command Parameters:	Subcommand code (1 Octet)
+				Subcommand length (2 Octects)
+	Return Parameters:      subcommand return (variable)
+
+	This command is meant for testing only, it shall not be used in
+	production.
+
+	Possible subcommands:
+
+	Suspend
+	-------
+	Subcommand Code:	0x0001
+	Subcommand Parameters:
+	Subcommand Return Parameters:
+
+	Resume
+	-------
+	Subcommand Code:	0x0002
+	Subcommand Parameters:
+	Subcommand Return Parameters:
+
+	Possible errors:	Failed
+				Subcommand errors
 
 Command Complete Event
 ======================
-- 
2.31.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help