diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2012-05-24 08:42:50 -0400 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-06-04 23:34:09 -0400 |
commit | 2983fd682444180e45567ce8147a612b97ba69da (patch) | |
tree | 57ebc25eb8b0cc854256b50476276b9cb4515ce6 /include/net/bluetooth | |
parent | 6d3c730f03e0d1aed2125c1a64ad8857c63f5163 (diff) |
Bluetooth: Define and use PSM identifiers
Define assigned Protocol and Service Multiplexor (PSM) identifiers
and use them instead of magic numbers.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Diffstat (limited to 'include/net/bluetooth')
-rw-r--r-- | include/net/bluetooth/l2cap.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net/bluetooth/l2cap.h b/include/net/bluetooth/l2cap.h index 01422578cc78..f44344b92d2d 100644 --- a/include/net/bluetooth/l2cap.h +++ b/include/net/bluetooth/l2cap.h | |||
@@ -229,6 +229,10 @@ struct l2cap_conn_rsp { | |||
229 | __le16 status; | 229 | __le16 status; |
230 | } __packed; | 230 | } __packed; |
231 | 231 | ||
232 | /* protocol/service multiplexer (PSM) */ | ||
233 | #define L2CAP_PSM_SDP 0x0001 | ||
234 | #define L2CAP_PSM_RFCOMM 0x0003 | ||
235 | |||
232 | /* channel indentifier */ | 236 | /* channel indentifier */ |
233 | #define L2CAP_CID_SIGNALING 0x0001 | 237 | #define L2CAP_CID_SIGNALING 0x0001 |
234 | #define L2CAP_CID_CONN_LESS 0x0002 | 238 | #define L2CAP_CID_CONN_LESS 0x0002 |