Remove unused adapter_ops->read_link_policy function
There is no code to react to the command complete of this HCI command so
there's really no value in issuing it to begin with.
diff --git a/plugins/hciops.c b/plugins/hciops.c
index c446fd0..499e193 100644
--- a/plugins/hciops.c
+++ b/plugins/hciops.c
@@ -2435,17 +2435,6 @@
return 0;
}
-static int hciops_read_link_policy(int index)
-{
- DBG("hci%d", index);
-
- if (hci_send_cmd(SK(index), OGF_LINK_POLICY,
- OCF_READ_DEFAULT_LINK_POLICY, 0, NULL) < 0)
- return -errno;
-
- return 0;
-}
-
static int hciops_disconnect(int index, uint16_t handle)
{
disconnect_cp cp;
@@ -2705,7 +2694,6 @@
.read_local_version = hciops_read_local_version,
.read_local_features = hciops_read_local_features,
.read_local_ext_features = hciops_read_local_ext_features,
- .read_link_policy = hciops_read_link_policy,
.disconnect = hciops_disconnect,
.remove_bonding = hciops_remove_bonding,
.request_authentication = hciops_request_authentication,
diff --git a/plugins/mgmtops.c b/plugins/mgmtops.c
index 69297db..97853f9 100644
--- a/plugins/mgmtops.c
+++ b/plugins/mgmtops.c
@@ -636,12 +636,6 @@
return -ENOSYS;
}
-static int mgmt_read_link_policy(int index)
-{
- DBG("index %d", index);
- return -ENOSYS;
-}
-
static int mgmt_disconnect(int index, uint16_t handle)
{
DBG("index %d handle %u", index, handle);
@@ -762,7 +756,6 @@
.read_local_version = mgmt_read_local_version,
.read_local_features = mgmt_read_local_features,
.read_local_ext_features = mgmt_read_local_ext_features,
- .read_link_policy = mgmt_read_link_policy,
.disconnect = mgmt_disconnect,
.remove_bonding = mgmt_remove_bonding,
.request_authentication = mgmt_request_authentication,
diff --git a/src/adapter.c b/src/adapter.c
index 551e39a..8e715dc 100644
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -2436,8 +2436,6 @@
memcpy(dev->features, features, 8);
- adapter_ops->read_link_policy(adapter->dev_id);
-
adapter->current_cod = 0;
adapter_setup(adapter, mode);
diff --git a/src/adapter.h b/src/adapter.h
index 3a2cf9c..a9f72e3 100644
--- a/src/adapter.h
+++ b/src/adapter.h
@@ -215,7 +215,6 @@
int (*read_local_version) (int index, struct hci_version *ver);
int (*read_local_features) (int index, uint8_t *features);
int (*read_local_ext_features) (int index);
- int (*read_link_policy) (int index);
int (*disconnect) (int index, uint16_t handle);
int (*remove_bonding) (int index, bdaddr_t *bdaddr);
int (*request_authentication) (int index, uint16_t handle);