]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1d36c31fa381c2a2c2dd00e859af42305d841631
tree9c253d5b51d38e0c5c8de9bfc59e097f41a181ca
parent2b50edd7e5dfec7fd561ee0fc1fd59c29a036ce6
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