From 3fa0ee6c164abd3f440b1741807ec3c78ecd2890 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Tue, 1 Nov 2011 10:53:16 +0200 Subject: [PATCH] btmgmt: Add pairable command --- mgmt/main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mgmt/main.c b/mgmt/main.c index 38e33a049..cef79c051 100644 --- a/mgmt/main.c +++ b/mgmt/main.c @@ -593,6 +593,11 @@ static void cmd_connectable(int mgmt_sk, uint16_t index, int argc, char **argv) cmd_setting(mgmt_sk, index, MGMT_OP_SET_CONNECTABLE, argc, argv); } +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 struct { char *cmd; void (*func)(int mgmt_sk, uint16_t index, int argc, char **argv); @@ -603,6 +608,7 @@ static struct { { "power", cmd_power, "Toggle powered state" }, { "discov", cmd_discov, "Toggle discoverable state" }, { "connectable",cmd_connectable,"Toggle connectable state" }, + { "pairable", cmd_pairable, "Toggle pairable state" }, { NULL, NULL, 0 } }; -- 2.47.3