]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix check for re-enabling advertising
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 8 Jul 2014 13:05:05 +0000 (16:05 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 8 Jul 2014 13:09:46 +0000 (15:09 +0200)
commitcf56924d3da7957659b75f2c41240f80407a28fe
treeb44d9c9b5fa0653a822a6d6047e9137a69d559f9
parent9ebaff3873592169faa484dc88ecb4a71747dd59
Bluetooth: Fix check for re-enabling advertising

There are many different places that can disable LE scanning but we only
want to re-enable advertising in hci_cc_le_set_scan_enable() for a very
specific use case, which is when the active scanning part of Start
Discovery is complete. Because of this, fix the discovery state check to
test for the exact state.

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