diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2014-07-02 21:35:02 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-07-02 21:35:02 +0200 |
commit | 87911c470f45c12115ddc05412b03cf75a510f2b (patch) | |
tree | 47988ec4e4b3ecc39e163223dfcdc4a391d6b1f4 /monitor/control.c | |
parent | 5509d611747b693997548ecb106d87fc965c57d9 (diff) | |
download | bluez-87911c470f45c12115ddc05412b03cf75a510f2b.tar.gz |
monitor: Decode Unconfigured Index Removed control event
Diffstat (limited to 'monitor/control.c')
-rw-r--r-- | monitor/control.c | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/monitor/control.c b/monitor/control.c index f00fe5844..54335a574 100644 --- a/monitor/control.c +++ b/monitor/control.c @@ -70,23 +70,30 @@ static void free_data(void *user_data) free(data); } -static void mgmt_unconf_index_added(uint16_t len, const void *buf) +static void mgmt_index_added(uint16_t len, const void *buf) { - printf("@ Unconfigured Index Added\n"); + printf("@ Index Added\n"); packet_hexdump(buf, len); } -static void mgmt_index_added(uint16_t len, const void *buf) +static void mgmt_index_removed(uint16_t len, const void *buf) { - printf("@ Index Added\n"); + printf("@ Index Removed\n"); packet_hexdump(buf, len); } -static void mgmt_index_removed(uint16_t len, const void *buf) +static void mgmt_unconf_index_added(uint16_t len, const void *buf) { - printf("@ Index Removed\n"); + printf("@ Unconfigured Index Added\n"); + + packet_hexdump(buf, len); +} + +static void mgmt_unconf_index_removed(uint16_t len, const void *buf) +{ + printf("@ Unconfigured Index Removed\n"); packet_hexdump(buf, len); } @@ -698,6 +705,9 @@ void control_message(uint16_t opcode, const void *data, uint16_t size) case MGMT_EV_UNCONF_INDEX_ADDED: mgmt_unconf_index_added(size, data); break; + case MGMT_EV_UNCONF_INDEX_REMOVED: + mgmt_unconf_index_removed(size, data); + break; default: printf("* Unknown control (code %d len %d)\n", opcode, size); packet_hexdump(data, size); |