diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2015-11-02 12:39:15 (GMT) |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-11-05 03:04:00 (GMT) |
commit | 8a7889cc6e2dbbace114130f4efd9b77452069cd (patch) | |
tree | 08d90f87824ae7341d50578b483c4d1e43e2c526 /include/net/bluetooth | |
parent | 2ab216a7a9ca89d77388ad3f22a31f752dec5897 (diff) | |
download | linux-8a7889cc6e2dbbace114130f4efd9b77452069cd.tar.xz |
Bluetooth: L2CAP: Fix returning correct LE CoC response codes
The core spec defines specific response codes for situations when the
received CID is incorrect. Add the defines for these and return them
as appropriate from the LE Connect Request handler function.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net/bluetooth')
-rw-r--r-- | include/net/bluetooth/l2cap.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/bluetooth/l2cap.h b/include/net/bluetooth/l2cap.h index c98afc0..5289929 100644 --- a/include/net/bluetooth/l2cap.h +++ b/include/net/bluetooth/l2cap.h @@ -275,6 +275,8 @@ struct l2cap_conn_rsp { #define L2CAP_CR_AUTHORIZATION 0x0006 #define L2CAP_CR_BAD_KEY_SIZE 0x0007 #define L2CAP_CR_ENCRYPTION 0x0008 +#define L2CAP_CR_INVALID_SCID 0x0009 +#define L2CAP_CR_SCID_IN_USE 0x0010 /* connect/create channel status */ #define L2CAP_CS_NO_INFO 0x0000 |