Bluetooth: Return success instead of EALREADY for mgmt commands
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 11 Nov 2011 14:18:52 +0000 (16:18 +0200)
committerGustavo F. Padovan <padovan@profusion.mobi>
Wed, 16 Nov 2011 18:05:50 +0000 (16:05 -0200)
commit8680570b0cae8f66ad28c8de227aab1894428ee5
treebf8bbda1b5b32125b81a76e069f85ae745cc768c
parent1425acb74b6d58690d78027021ce1d8f3068c66f
Bluetooth: Return success instead of EALREADY for mgmt commands

When the adapter state is already what is requested it's more friendly
to user-space to simply report success than to send a EALREADY error
message.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/mgmt.c