diff options
author | Gustavo F. Padovan <gustavo@las.ic.unicamp.br> | 2009-04-20 00:31:05 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-06-08 08:49:59 -0400 |
commit | 8db4dc46dcff7568896aa1eae4bd07620ce3dd93 (patch) | |
tree | 32b92a182971618462f5997c156fa953cd9049cc /include/net | |
parent | a1c1db392090bd280d1c3e2ed52ef682746ee332 (diff) |
Bluetooth: Use macros for L2CAP channel identifiers
Use macros instead of hardcoded numbers to make the L2CAP source code
more readable.
Signed-off-by: Gustavo F. Padovan <gustavo@las.ic.unicamp.br>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/bluetooth/l2cap.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/bluetooth/l2cap.h b/include/net/bluetooth/l2cap.h index f566aa1f0a4c..ed4ba913d94c 100644 --- a/include/net/bluetooth/l2cap.h +++ b/include/net/bluetooth/l2cap.h | |||
@@ -106,6 +106,12 @@ struct l2cap_conn_rsp { | |||
106 | __le16 status; | 106 | __le16 status; |
107 | } __attribute__ ((packed)); | 107 | } __attribute__ ((packed)); |
108 | 108 | ||
109 | /* channel indentifier */ | ||
110 | #define L2CAP_CID_SIGNALING 0x0001 | ||
111 | #define L2CAP_CID_CONN_LESS 0x0002 | ||
112 | #define L2CAP_CID_DYN_START 0x0040 | ||
113 | #define L2CAP_CID_DYN_END 0xffff | ||
114 | |||
109 | /* connect result */ | 115 | /* connect result */ |
110 | #define L2CAP_CR_SUCCESS 0x0000 | 116 | #define L2CAP_CR_SUCCESS 0x0000 |
111 | #define L2CAP_CR_PEND 0x0001 | 117 | #define L2CAP_CR_PEND 0x0001 |