summaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth
diff options
context:
space:
mode:
authorMarcel Holtmann2013-10-15 15:33:52 +0200
committerJohan Hedberg2013-10-15 16:20:00 +0200
commit441ad2d04123eecb06d7c14948a0e7b07bf75aa5 (patch)
tree643ba2a1e2f4ae441f392cc7a9a916b74c79840c /include/net/bluetooth
parentBluetooth: Use hci_request for discoverable timeout handling (diff)
downloadkernel-qcow2-linux-441ad2d04123eecb06d7c14948a0e7b07bf75aa5.tar.gz
kernel-qcow2-linux-441ad2d04123eecb06d7c14948a0e7b07bf75aa5.tar.xz
kernel-qcow2-linux-441ad2d04123eecb06d7c14948a0e7b07bf75aa5.zip
Bluetooth: Update advertising data based on management commands
Magically updating the advertising data when some random command enables advertising in the controller is not really a good idea. It also caused a bit of complicated code with the exported hci_udpate_ad function that is shared from many places. This patch consolidates the advertising data update into the management core. It also makes sure that when powering on with LE enabled or later on enabling LE the controller has a good default for advertising data. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'include/net/bluetooth')
-rw-r--r--include/net/bluetooth/hci_core.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
index 4e208420d84c..4a186ec99132 100644
--- a/include/net/bluetooth/hci_core.h
+++ b/include/net/bluetooth/hci_core.h
@@ -1183,8 +1183,6 @@ struct hci_sec_filter {
#define hci_req_lock(d) mutex_lock(&d->req_lock)
#define hci_req_unlock(d) mutex_unlock(&d->req_lock)
-void hci_update_ad(struct hci_request *req);
-
void hci_le_conn_update(struct hci_conn *conn, u16 min, u16 max,
u16 latency, u16 to_multiplier);
void hci_le_start_enc(struct hci_conn *conn, __le16 ediv, __u8 rand[8],