Diff between 1bb26c19068d2591003c3e8c799ebf944a991ddb and c2660d9bd21026b7b3c95f85a28bb56b3d41466c

Changed Files

File Additions Deletions Status
plugins/mgmtops.c +0 -9 modified
src/adapter.c +0 -2 modified
src/adapter.h +0 -1 modified

Full Patch

diff --git a/plugins/mgmtops.c b/plugins/mgmtops.c
index 16a97c9..0dde05a 100644
--- a/plugins/mgmtops.c
+++ b/plugins/mgmtops.c
@@ -2194,14 +2194,6 @@ static int mgmt_set_did(int index, uint16_t vendor, uint16_t product,
 	return 0;
 }
 
-static int mgmt_disable_cod_cache(int index)
-{
-	DBG("index %d", index);
-
-	/* The cache control is handled automatically for mgmt */
-	return 0;
-}
-
 static int mgmt_restore_powered(int index)
 {
 	DBG("index %d", index);
@@ -2496,7 +2488,6 @@ static struct btd_adapter_ops mgmt_ops = {
 	.set_did = mgmt_set_did,
 	.add_uuid = mgmt_add_uuid,
 	.remove_uuid = mgmt_remove_uuid,
-	.disable_cod_cache = mgmt_disable_cod_cache,
 	.restore_powered = mgmt_restore_powered,
 	.load_keys = mgmt_load_link_keys,
 	.set_io_capability = mgmt_set_io_capability,
diff --git a/src/adapter.c b/src/adapter.c
index f922876..fb97fbb 100644
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -2223,8 +2223,6 @@ void btd_adapter_start(struct btd_adapter *adapter)
 
 	call_adapter_powered_callbacks(adapter, TRUE);
 
-	adapter_ops->disable_cod_cache(adapter->dev_id);
-
 	info("Adapter %s has been enabled", adapter->path);
 }
 
diff --git a/src/adapter.h b/src/adapter.h
index b7ea62b..fbebd5c 100644
--- a/src/adapter.h
+++ b/src/adapter.h
@@ -206,7 +206,6 @@ struct btd_adapter_ops {
 					uint16_t version, uint16_t source);
 	int (*add_uuid) (int index, uuid_t *uuid, uint8_t svc_hint);
 	int (*remove_uuid) (int index, uuid_t *uuid);
-	int (*disable_cod_cache) (int index);
 	int (*restore_powered) (int index);
 	int (*load_keys) (int index, GSList *keys, gboolean debug_keys);
 	int (*set_io_capability) (int index, uint8_t io_capability);