]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix pair device command reply if adapter is powered off
authorSzymon Janc <szymon.janc@tieto.com>
Fri, 18 Jan 2013 11:48:07 +0000 (12:48 +0100)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Wed, 23 Jan 2013 03:47:30 +0000 (01:47 -0200)
commit0becc163d48e1be1ad04c6bf868a85580380a7da
tree1071d169b05b4f9c35ccb7b9542a79aad9f46fd9
parent3c3d8db9b2fa256ee0e36cf709a798b3e3d171bd
Bluetooth: Fix pair device command reply if adapter is powered off

According to Bluetooth Management API specification Pair Device Command
should generate command complete event on both success and failure.
This fix replying with command status (which lacks address info) when
adapter is powered off.

Signed-off-by: Szymon Janc <szymon.janc@tieto.com>
Acked-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/mgmt.c