From fc8436bc597dadc011276134f04134068cfe0730 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Thu, 16 Feb 2012 23:55:33 +0200 Subject: [PATCH] btmgmt: Add support for Set Link Security command --- mgmt/main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mgmt/main.c b/mgmt/main.c index f6cfaa8d3..593249e24 100644 --- a/mgmt/main.c +++ b/mgmt/main.c @@ -1143,6 +1143,11 @@ static void cmd_pairable(int mgmt_sk, uint16_t index, int argc, char **argv) cmd_setting(mgmt_sk, index, MGMT_OP_SET_PAIRABLE, argc, argv); } +static void cmd_linksec(int mgmt_sk, uint16_t index, int argc, char **argv) +{ + cmd_setting(mgmt_sk, index, MGMT_OP_SET_LINK_SECURITY, argc, argv); +} + static void class_rsp(int mgmt_sk, uint16_t op, uint16_t id, uint8_t status, void *rsp, uint16_t len, void *user_data) { @@ -1569,6 +1574,7 @@ static struct { { "discov", cmd_discov, "Toggle discoverable state" }, { "connectable",cmd_connectable,"Toggle connectable state" }, { "pairable", cmd_pairable, "Toggle pairable state" }, + { "linksec", cmd_linksec, "Toggle link level security" }, { "class", cmd_class, "Set device major/minor class" }, { "disconnect", cmd_disconnect, "Disconnect device" }, { "con", cmd_con, "List connections" }, -- 2.47.3