summaryrefslogtreecommitdiff
path: root/monitor/control.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2014-02-15 15:42:08 -0800
committerMarcel Holtmann <marcel@holtmann.org>2014-02-15 15:42:08 -0800
commitd6a9e8a7fb23f1cecf2d94f8ee48fca33b332ae0 (patch)
treeab39679f8231fcbcbfe1b8ec3395d72d7c9e70e0 /monitor/control.c
parentbad86f3b3cc921dc164f9576414e644c6d30b418 (diff)
downloadbluez-d6a9e8a7fb23f1cecf2d94f8ee48fca33b332ae0.tar.gz
monitor: Decode master/slave value of long term key notification
Diffstat (limited to 'monitor/control.c')
-rw-r--r--monitor/control.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/monitor/control.c b/monitor/control.c
index e848be81a..6ec0bdcc6 100644
--- a/monitor/control.c
+++ b/monitor/control.c
@@ -207,7 +207,8 @@ static void mgmt_new_long_term_key(uint16_t len, const void *buf)
ba2str(&ev->key.addr.bdaddr, str);
- printf("@ New Long Term Key: %s (%d)\n", str, ev->key.addr.type);
+ printf("@ New Long Term Key: %s (%d) %s\n", str, ev->key.addr.type,
+ ev->key.master ? "Master" : "Slave");
buf += sizeof(*ev);
len -= sizeof(*ev);