]> 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)
commitc9e1fcedaf16d245cd1319b337e2a7d12122c658
tree643ba2a1e2f4ae441f392cc7a9a916b74c79840c
parentef814a870dd19bf85c2d167eeaea535d7fa1781b
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