OSDN Git Service
(root)
/
android-x86
/
external-bluetooth-bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0048931
)
lib: Add definitions for Set Scan Parameters command
author
Marcel Holtmann
<marcel@holtmann.org>
Fri, 11 Oct 2013 21:48:58 +0000
(14:48 -0700)
committer
Marcel Holtmann
<marcel@holtmann.org>
Fri, 11 Oct 2013 21:48:58 +0000
(14:48 -0700)
lib/mgmt.h
patch
|
blob
|
history
diff --git
a/lib/mgmt.h
b/lib/mgmt.h
index
7595f04
..
a896e52
100644
(file)
--- a/
lib/mgmt.h
+++ b/
lib/mgmt.h
@@
-329,6
+329,12
@@
struct mgmt_cp_set_static_address {
bdaddr_t bdaddr;
} __packed;
+#define MGMT_OP_SET_SCAN_PARAMS 0x002C
+struct mgmt_cp_set_scan_params {
+ uint16_t interval;
+ uint16_t window;
+} __packed;
+
#define MGMT_EV_CMD_COMPLETE 0x0001
struct mgmt_ev_cmd_complete {
uint16_t opcode;
@@
-510,6
+516,7
@@
static const char *mgmt_op[] = {
"Set Advertising",
"Set BR/EDR",
"Set Static Address",
+ "Set Scan Parameters",
};
static const char *mgmt_ev[] = {