From c60216b08b253d9fccda35c430505c746b566da1 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sun, 2 Feb 2014 00:02:34 -0800 Subject: [PATCH] tools: Add command to btmgmt to enable/disable debug keys setting --- tools/btmgmt.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/btmgmt.c b/tools/btmgmt.c index c1ee77ebf..e77bcf2a0 100644 --- a/tools/btmgmt.c +++ b/tools/btmgmt.c @@ -1931,6 +1931,12 @@ static void cmd_static_addr(struct mgmt *mgmt, uint16_t index, } } +static void cmd_debug_keys(struct mgmt *mgmt, uint16_t index, + int argc, char **argv) +{ + cmd_setting(mgmt, index, MGMT_OP_SET_DEBUG_KEYS, argc, argv); +} + static struct { char *cmd; void (*func)(struct mgmt *mgmt, uint16_t index, int argc, char **argv); @@ -1969,6 +1975,7 @@ static struct { { "local-oob", cmd_local_oob, "Local OOB data" }, { "did", cmd_did, "Set Device ID" }, { "static-addr",cmd_static_addr,"Set static address" }, + { "debug-keys", cmd_debug_keys, "Toogle debug keys" }, { } }; -- 2.47.3