From ae12116e8698b4adc50d941e38d3b20d3d51355a Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Fri, 17 Feb 2012 01:02:39 +0200 Subject: [PATCH] btmgmt: Add support for Set SSP command --- mgmt/main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mgmt/main.c b/mgmt/main.c index 593249e24..1f2cbcd5d 100644 --- a/mgmt/main.c +++ b/mgmt/main.c @@ -1148,6 +1148,11 @@ 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 cmd_ssp(int mgmt_sk, uint16_t index, int argc, char **argv) +{ + cmd_setting(mgmt_sk, index, MGMT_OP_SET_SSP, 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) { @@ -1575,6 +1580,7 @@ static struct { { "connectable",cmd_connectable,"Toggle connectable state" }, { "pairable", cmd_pairable, "Toggle pairable state" }, { "linksec", cmd_linksec, "Toggle link level security" }, + { "ssp", cmd_ssp, "Toggle SSP mode" }, { "class", cmd_class, "Set device major/minor class" }, { "disconnect", cmd_disconnect, "Disconnect device" }, { "con", cmd_con, "List connections" }, -- 2.47.3