]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: mgmt: Fix set_local_name and set_dev_class powered checks
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 21 Feb 2012 12:32:24 +0000 (14:32 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Tue, 21 Feb 2012 16:47:46 +0000 (18:47 +0200)
commita7613642c564a8e3a5c567a056723a0b03edbf24
treeb99d4ba00ed6b7920df8c103efcf4e736e3648b8
parentb4d82005f63a1a78f6485841fefeedf7e43b61c4
Bluetooth: mgmt: Fix set_local_name and set_dev_class powered checks

Both the Set Local Name and the Set Device Class commands should fail if
the adapter is not powered on.

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