Bluetooth: Introduce a new HCI_RFKILLED flag
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 13 Sep 2013 05:58:17 +0000 (08:58 +0300)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Wed, 18 Sep 2013 17:37:27 +0000 (12:37 -0500)
commit5e130367d43ff22836bbae380d197d600fe8ddbb
treefa0633ce5e70d90a935f44f94a197dd7d5fae3f1
parent330b6c1521d76d8b88513fbafe18709ad86dafc4
Bluetooth: Introduce a new HCI_RFKILLED flag

This makes it more convenient to check for rfkill (no need to check for
dev->rfkill before calling rfkill_blocked()) and also avoids potential
races if the RFKILL state needs to be checked from within the rfkill
callback.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Cc: stable@vger.kernel.org
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
include/net/bluetooth/hci.h
net/bluetooth/hci_core.c