diff options
author | Grzegorz Kolodziejczyk <grzegorz.kolodziejczyk@tieto.com> | 2015-03-09 17:24:48 +0100 |
---|---|---|
committer | Szymon Janc <szymon.janc@tieto.com> | 2015-03-12 11:08:00 +0100 |
commit | 10125a912d7f251e5f01bdfcfa0a3cf5d845be2c (patch) | |
tree | c8ae908f92c9661bb14d250cad4314a6d815f776 /lib/bnep.h | |
parent | b104ec8263f1cf6ffad56ebb1edc8adb58a060aa (diff) | |
download | bluez-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.h | 6 |
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; |