* [PATCH v3] monitor: Add support for Set Appearance mgmt command
@ 2016-09-18 10:47 Szymon Janc
2016-09-18 14:15 ` Marcel Holtmann
0 siblings, 1 reply; 2+ messages in thread
From: Szymon Janc @ 2016-09-18 10:47 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Szymon Janc
@ MGMT Command: Set Appearance (0x0043) plen 2 {0x0002}
Appearance: Blood Pressure (0x0380)
@ MGMT Event: Command Complete (0x0001) plen 3 {0x0002}
Set Appearance (0x0043) plen 0
Status: Success (0x00)
---
monitor/packet.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/monitor/packet.c b/monitor/packet.c
index f5d6f96..6272562 100644
--- a/monitor/packet.c
+++ b/monitor/packet.c
@@ -10755,6 +10755,13 @@ static void mgmt_read_ext_controller_info_rsp(const void *data, uint16_t size)
print_eir(data + 19, size - 19, false);
}
+static void mgmt_set_apperance_cmd(const void *data, uint16_t size)
+{
+ uint16_t appearance = get_le16(data);
+
+ print_appearance(appearance);
+}
+
struct mgmt_data {
uint16_t opcode;
const char *str;
@@ -10965,6 +10972,9 @@ static const struct mgmt_data mgmt_command_table[] = {
{ 0x0042, "Read Extended Controller Information",
mgmt_null_cmd, 0, true,
mgmt_read_ext_controller_info_rsp, 19, false },
+ { 0x0043, "Set Appearance",
+ mgmt_set_apperance_cmd, 2, true,
+ mgmt_null_rsp, 0, true },
{ }
};
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v3] monitor: Add support for Set Appearance mgmt command
2016-09-18 10:47 [PATCH v3] monitor: Add support for Set Appearance mgmt command Szymon Janc
@ 2016-09-18 14:15 ` Marcel Holtmann
0 siblings, 0 replies; 2+ messages in thread
From: Marcel Holtmann @ 2016-09-18 14:15 UTC (permalink / raw)
To: Szymon Janc; +Cc: linux-bluetooth
Hi Szymon,
> @ MGMT Command: Set Appearance (0x0043) plen 2 {0x0002}
> Appearance: Blood Pressure (0x0380)
> @ MGMT Event: Command Complete (0x0001) plen 3 {0x0002}
> Set Appearance (0x0043) plen 0
> Status: Success (0x00)
> ---
> monitor/packet.c | 10 ++++++++++
> 1 file changed, 10 insertions(+)
this patch and the other 4 from v2 have been applied.
Regards
Marcel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-09-18 14:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-18 10:47 [PATCH v3] monitor: Add support for Set Appearance mgmt command Szymon Janc
2016-09-18 14:15 ` Marcel Holtmann
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.