diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2012-02-23 20:56:00 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-02-23 20:56:00 +0100 |
commit | 484150cbfd46ec98456af9c5faf42a6f5a78d9fb (patch) | |
tree | a4b296c0f917e46fe4c3983dffaa91e41a9d12eb /monitor | |
parent | d74391573c6a33f3a12ac2c40ada7a3b43618e63 (diff) |
mgmt: Add flags field for device connected event
Diffstat (limited to 'monitor')
-rw-r--r-- | monitor/main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/monitor/main.c b/monitor/main.c index 79ed247a..93e406ea 100644 --- a/monitor/main.c +++ b/monitor/main.c @@ -784,6 +784,7 @@ static void mgmt_new_long_term_key(uint16_t len, void *buf) static void mgmt_device_connected(uint16_t len, void *buf) { struct mgmt_ev_device_connected *ev = buf; + uint32_t flags; char str[18]; if (len < sizeof(*ev)) { @@ -791,9 +792,11 @@ static void mgmt_device_connected(uint16_t len, void *buf) return; } + flags = btohs(ev->flags); ba2str(&ev->addr.bdaddr, str); - printf("@ Device Connected: %s (%d)\n", str, ev->addr.type); + printf("@ Device Connected: %s (%d) flags 0x%4.4x\n", + str, ev->addr.type, flags); buf += sizeof(*ev); len -= sizeof(*ev); |