]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix updating advertising data needlessly
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 14 Oct 2013 13:20:07 +0000 (16:20 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 14 Oct 2013 13:48:08 +0000 (06:48 -0700)
commitfe424c0491c2f50b38ca87d5c53c755e7d5e1d03
tree03b7005a0f90c6cc8cd53bb6b470d8ae9a34b15e
parentd4d5e43e61aa3dc4e62acb678883274b2f2cc5b4
Bluetooth: Fix updating advertising data needlessly

We need to ensure that the advertising data is up-to-date whenever
advertising is enabled, but when disabling advertising we do not need to
worry about it (since it will eventually get fixed as soon as
advertising is enabled again). This patch fixes this in the command
complete callback for set_adv_enable.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_event.c