Bluetooth: Update advertising data based on management commands
authorMarcel Holtmann <marcel@holtmann.org>
Tue, 15 Oct 2013 13:33:52 +0000 (06:33 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Tue, 15 Oct 2013 14:20:00 +0000 (17:20 +0300)
commit441ad2d04123eecb06d7c14948a0e7b07bf75aa5
tree643ba2a1e2f4ae441f392cc7a9a916b74c79840c
parentb1e73124104d0c4c6c9a073afea07ff0b73d5787
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>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_core.c
net/bluetooth/hci_event.c
net/bluetooth/mgmt.c