Diff between 7ea847e0037ed322646e20d11d01ed20b228b565 and 34ebe70c085205a34c7f9980eff27fd786575b6b

Changed Files

File Additions Deletions Status
src/mgmt.c +0 -9 modified
src/mgmt.h +0 -1 modified

Full Patch

diff --git a/src/mgmt.c b/src/mgmt.c
index b2391db..c15f25b 100644
--- a/src/mgmt.c
+++ b/src/mgmt.c
@@ -223,12 +223,6 @@ int mgmt_set_discoverable(int index, gboolean discoverable, uint16_t timeout)
 	return 0;
 }
 
-int mgmt_set_pairable(int index, gboolean pairable)
-{
-	DBG("index %d pairable %d", index, pairable);
-	return mgmt_set_mode(index, MGMT_OP_SET_PAIRABLE, pairable);
-}
-
 static int mgmt_set_ssp(int index, gboolean ssp)
 {
 	DBG("index %d ssp %d", index, ssp);
@@ -831,9 +825,6 @@ static void read_info_complete(uint16_t index, void *buf, size_t len)
 	DBG("hci%u name %s", index, (char *) rp->name);
 	DBG("hci%u short name %s", index, (char *) rp->short_name);
 
-	if (!mgmt_pairable(info->current_settings))
-		mgmt_set_pairable(index, TRUE);
-
 	if (mgmt_ssp(info->supported_settings) &&
 					!mgmt_ssp(info->current_settings))
 		mgmt_set_ssp(index, TRUE);
diff --git a/src/mgmt.h b/src/mgmt.h
index 87541e0..ef08148 100644
--- a/src/mgmt.h
+++ b/src/mgmt.h
@@ -27,7 +27,6 @@ void mgmt_cleanup(void);
 
 int mgmt_set_connectable(int index, gboolean connectable);
 int mgmt_set_discoverable(int index, gboolean discoverable, uint16_t timeout);
-int mgmt_set_pairable(int index, gboolean pairable);
 int mgmt_set_fast_connectable(int index, gboolean enable);
 
 int mgmt_start_discovery(int index);