]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit72e14e4e0d89be2efacfc45af20b5cd65ebdf68a
tree643ba2a1e2f4ae441f392cc7a9a916b74c79840c
parent4ccc228033cc481c4feb4a5751df51054f2fee82
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