Bluetooth: Enhance error codes pair device command
authorLukasz Rymanowski <lukasz.rymanowski@tieto.com>
Wed, 11 Feb 2015 11:31:42 +0000 (12:31 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 14 Feb 2015 04:19:59 +0000 (05:19 +0100)
commitfaa810303d4141de335a8b29ec7fba8d653903fc
tree9c253d5b51d38e0c5c8de9bfc59e097f41a181ca
parentc411110e1f13abd64886c8abdf6f31c10136969f
Bluetooth: Enhance error codes pair device command

If user space is trying to pair on not enabled transport
MGMT_STATUS_REJECT will be returned.

If user space is trying to pair on transport which controller does not
support, MGMT_STATUS_NOT_SUPPORTED will be returned.

Having separate error code for that scenario might be useful for
debugging at least.

Signed-off-by: Lukasz Rymanowski <lukasz.rymanowski@tieto.com>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/mgmt.c