Diff between 52715cfef35b8339d1b202673dd208f9e441838c and fe718b6c57b97f394a65f710f81108b069db508d

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 d786e2c..38e33a0 100644
--- a/mgmt/main.c
+++ b/mgmt/main.c
@@ -588,6 +588,11 @@ static void cmd_discov(int mgmt_sk, uint16_t index, int argc, char **argv)
 	cmd_setting(mgmt_sk, index, MGMT_OP_SET_DISCOVERABLE, argc, argv);
 }
 
+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 struct {
 	char *cmd;
 	void (*func)(int mgmt_sk, uint16_t index, int argc, char **argv);
@@ -597,6 +602,7 @@ static struct {
 	{ "info",	cmd_info,	"Show controller info"		},
 	{ "power",	cmd_power,	"Toggle powered state"		},
 	{ "discov",	cmd_discov,	"Toggle discoverable state"	},
+	{ "connectable",cmd_connectable,"Toggle connectable state"	},
 	{ NULL, NULL, 0 }
 };