]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Return ENETDOWN when interface is down
authorMarcel Holtmann <marcel@holtmann.org>
Wed, 18 Nov 2009 00:05:00 +0000 (01:05 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 3 Dec 2009 18:34:20 +0000 (19:34 +0100)
commitcde1c5026ad1cfc4b9f10d7c028727b7b07bb001
tree98a1f7a02dfa1db6d3c67565982f367ace68929c
parent1e411369acfbbb7f01e076dd327c3a5c193a8688
Bluetooth: Return ENETDOWN when interface is down

Sending commands to a down interface results in a timeout while clearly
it should just return ENETDOWN. When using the ioctls this works fine,
but not when using the HCI sockets sendmsg interface.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_sock.c