Diff between fe718b6c57b97f394a65f710f81108b069db508d and 3fa0ee6c164abd3f440b1741807ec3c78ecd2890

Changed Files

File Additions Deletions Status
mgmt/main.c +6 -0 modified

Full Patch

diff --git a/mgmt/main.c b/mgmt/main.c
index 38e33a0..cef79c0 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 }
 };