diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2015-11-18 05:49:20 -0500 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-12-09 18:51:47 -0500 |
commit | f22525700b2ae34eb97a29a91e2eee902062b484 (patch) | |
tree | 1d45d8ed3e7a2224836d7dd9942ce01151690b9f /include/net/bluetooth | |
parent | 196a5e97d13092f783e41001c1112d7f31518ea2 (diff) |
Bluetooth: Move advertising instance management to hci_request.c
This paves the way for eventually performing advertising changes
through the hdev->req_workqueue. Some new APIs need to be exposed from
mgmt.c to hci_request.c and vice-versa, but many of them will go away
once hdev->req_workqueue gets used.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net/bluetooth')
-rw-r--r-- | include/net/bluetooth/hci_core.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index eda809a5c3df..b56085b6ecce 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h | |||
@@ -1434,9 +1434,7 @@ void mgmt_index_added(struct hci_dev *hdev); | |||
1434 | void mgmt_index_removed(struct hci_dev *hdev); | 1434 | void mgmt_index_removed(struct hci_dev *hdev); |
1435 | void mgmt_set_powered_failed(struct hci_dev *hdev, int err); | 1435 | void mgmt_set_powered_failed(struct hci_dev *hdev, int err); |
1436 | int mgmt_powered(struct hci_dev *hdev, u8 powered); | 1436 | int mgmt_powered(struct hci_dev *hdev, u8 powered); |
1437 | int mgmt_update_adv_data(struct hci_dev *hdev); | ||
1438 | void mgmt_discoverable_timeout(struct hci_dev *hdev); | 1437 | void mgmt_discoverable_timeout(struct hci_dev *hdev); |
1439 | void mgmt_adv_timeout_expired(struct hci_dev *hdev); | ||
1440 | void mgmt_new_link_key(struct hci_dev *hdev, struct link_key *key, | 1438 | void mgmt_new_link_key(struct hci_dev *hdev, struct link_key *key, |
1441 | bool persistent); | 1439 | bool persistent); |
1442 | void mgmt_device_connected(struct hci_dev *hdev, struct hci_conn *conn, | 1440 | void mgmt_device_connected(struct hci_dev *hdev, struct hci_conn *conn, |
@@ -1491,8 +1489,13 @@ void mgmt_new_csrk(struct hci_dev *hdev, struct smp_csrk *csrk, | |||
1491 | void mgmt_new_conn_param(struct hci_dev *hdev, bdaddr_t *bdaddr, | 1489 | void mgmt_new_conn_param(struct hci_dev *hdev, bdaddr_t *bdaddr, |
1492 | u8 bdaddr_type, u8 store_hint, u16 min_interval, | 1490 | u8 bdaddr_type, u8 store_hint, u16 min_interval, |
1493 | u16 max_interval, u16 latency, u16 timeout); | 1491 | u16 max_interval, u16 latency, u16 timeout); |
1494 | void mgmt_reenable_advertising(struct hci_dev *hdev); | ||
1495 | void mgmt_smp_complete(struct hci_conn *conn, bool complete); | 1492 | void mgmt_smp_complete(struct hci_conn *conn, bool complete); |
1493 | bool mgmt_get_connectable(struct hci_dev *hdev); | ||
1494 | u8 mgmt_get_adv_discov_flags(struct hci_dev *hdev); | ||
1495 | void mgmt_advertising_added(struct sock *sk, struct hci_dev *hdev, | ||
1496 | u8 instance); | ||
1497 | void mgmt_advertising_removed(struct sock *sk, struct hci_dev *hdev, | ||
1498 | u8 instance); | ||
1496 | 1499 | ||
1497 | u8 hci_le_conn_update(struct hci_conn *conn, u16 min, u16 max, u16 latency, | 1500 | u8 hci_le_conn_update(struct hci_conn *conn, u16 min, u16 max, u16 latency, |
1498 | u16 to_multiplier); | 1501 | u16 to_multiplier); |