From 34ebe70c085205a34c7f9980eff27fd786575b6b Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Fri, 4 Jan 2013 20:55:09 -0800 Subject: [PATCH] core: Remove old function for setting controller pairable --- src/mgmt.c | 9 --------- src/mgmt.h | 1 - 2 files changed, 10 deletions(-) diff --git a/src/mgmt.c b/src/mgmt.c index b2391dbc8..c15f25b00 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 87541e070..ef081481b 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); -- 2.47.3