aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2013-10-15 09:33:52 -0400
committerJohan Hedberg <johan.hedberg@intel.com>2013-10-15 10:20:00 -0400
commit441ad2d04123eecb06d7c14948a0e7b07bf75aa5 (patch)
tree643ba2a1e2f4ae441f392cc7a9a916b74c79840c /include/net
parentb1e73124104d0c4c6c9a073afea07ff0b73d5787 (diff)
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')
-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 {
1183#define hci_req_lock(d) mutex_lock(&d->req_lock) 1183#define hci_req_lock(d) mutex_lock(&d->req_lock)
1184#define hci_req_unlock(d) mutex_unlock(&d->req_lock) 1184#define hci_req_unlock(d) mutex_unlock(&d->req_lock)
1185 1185
1186void hci_update_ad(struct hci_request *req);
1187
1188void hci_le_conn_update(struct hci_conn *conn, u16 min, u16 max, 1186void hci_le_conn_update(struct hci_conn *conn, u16 min, u16 max,
1189 u16 latency, u16 to_multiplier); 1187 u16 latency, u16 to_multiplier);
1190void hci_le_start_enc(struct hci_conn *conn, __le16 ediv, __u8 rand[8], 1188void hci_le_start_enc(struct hci_conn *conn, __le16 ediv, __u8 rand[8],