]> git.karo-electronics.de Git - linux-beck.git/commit
Bluetooth: Do not trigger background scanning when HCI_AUTO_OFF is set
authorMarcel Holtmann <marcel@holtmann.org>
Tue, 1 Jul 2014 17:28:23 +0000 (19:28 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 3 Jul 2014 15:42:54 +0000 (17:42 +0200)
commitb8221770c984bcd185c93cb3a31acab27b67c94a
tree2ad09f7954dea15bd0ac1a4ecf1839c43e0dfdd7
parent9ab65d60c212c23f1605f35aea229f4c94df2334
Bluetooth: Do not trigger background scanning when HCI_AUTO_OFF is set

When a new controller is initialized, but not powered from userspace
at the moment, the HCI_AUTO_OFF flag is still set. During this period,
userspace might program device for auto-connection, but never power
on the controller. In this case do not try to start background
scanning and leave it for later to be started.

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