summaryrefslogtreecommitdiff
path: root/lib/bnep.h
diff options
context:
space:
mode:
authorGrzegorz Kolodziejczyk <grzegorz.kolodziejczyk@tieto.com>2015-03-09 17:24:48 +0100
committerSzymon Janc <szymon.janc@tieto.com>2015-03-12 11:08:00 +0100
commit10125a912d7f251e5f01bdfcfa0a3cf5d845be2c (patch)
treec8ae908f92c9661bb14d250cad4314a6d815f776 /lib/bnep.h
parentb104ec8263f1cf6ffad56ebb1edc8adb58a060aa (diff)
downloadbluez-10125a912d7f251e5f01bdfcfa0a3cf5d845be2c.tar.gz
profiles/network: Fix sending command responses
Command response can be three bytes long (in case if command is not understood) 1 byte(packet type) + 1 byte(control type) + 1 byte(unknown control type). Command response can be also four bytes long if it's response for setup connection, filter net type and filter multi addr, 1 byte(packet type) + 1 byte(control type) + 2 byte(response message).
Diffstat (limited to 'lib/bnep.h')
-rw-r--r--lib/bnep.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/bnep.h b/lib/bnep.h
index 2bbfb177f..aa4685277 100644
--- a/lib/bnep.h
+++ b/lib/bnep.h
@@ -103,6 +103,12 @@ struct bnep_set_filter_req {
uint8_t list[0];
} __attribute__((packed));
+struct bnep_ctrl_cmd_not_understood_cmd {
+ uint8_t type;
+ uint8_t ctrl;
+ uint8_t unkn_ctrl;
+} __attribute__((packed));
+
struct bnep_control_rsp {
uint8_t type;
uint8_t ctrl;