diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2013-10-15 13:33:52 (GMT) |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2013-10-15 14:20:00 (GMT) |
commit | 441ad2d04123eecb06d7c14948a0e7b07bf75aa5 (patch) | |
tree | 643ba2a1e2f4ae441f392cc7a9a916b74c79840c /net/bluetooth/hci_event.c | |
parent | b1e73124104d0c4c6c9a073afea07ff0b73d5787 (diff) | |
download | linux-441ad2d04123eecb06d7c14948a0e7b07bf75aa5.tar.xz |
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 'net/bluetooth/hci_event.c')
-rw-r--r-- | net/bluetooth/hci_event.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index 5391469..7b133f0 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c @@ -939,14 +939,6 @@ static void hci_cc_le_set_adv_enable(struct hci_dev *hdev, struct sk_buff *skb) clear_bit(HCI_ADVERTISING, &hdev->dev_flags); } - if (*sent && !test_bit(HCI_INIT, &hdev->flags)) { - struct hci_request req; - - hci_req_init(&req, hdev); - hci_update_ad(&req); - hci_req_run(&req, NULL); - } - hci_dev_unlock(hdev); } |