Bluetooth: mgmt: Check for HCI_UP in update_eir() and update_class()
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 22 Feb 2012 20:06:38 +0000 (22:06 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 23 Feb 2012 11:07:01 +0000 (13:07 +0200)
commit7770c4aacaf34fb69cb2acfb7469e9b4e34f1674
tree98c0ab7916a0dae04b2c1317ff44bf16452a88f5
parent8ec37034ef36b89cfb060bd9273db24e6acb1b3a
Bluetooth: mgmt: Check for HCI_UP in update_eir() and update_class()

These functions should just silently fail when we're not powered on
instead of trying to send HCI commands.

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