]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Create a unique mgmt error code hierarchy
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 11 Nov 2011 16:10:00 +0000 (18:10 +0200)
committerGustavo F. Padovan <padovan@profusion.mobi>
Wed, 16 Nov 2011 18:07:52 +0000 (16:07 -0200)
commit1512911e3f3d674759face04ced2137f051f22ac
treee00f2f36d661eb5cef306b940d99f33df5570363
parent39a185c95e2cbba37932c250e7e01e0b9ac99a12
Bluetooth: Create a unique mgmt error code hierarchy

The management protocol uses a single byte for error codes (aka command
status). In some places this value is directly copied from HCI and in
other a POSIX error number is used. This makes it impossible for
user-space to uniquily decipher the meaning of an error.

To solve this issue a new mgmt-specific set of error codes is added
along with a conversion table for HCI status values.

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