summaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth/l2cap.h
diff options
context:
space:
mode:
authorGustavo F. Padovan2011-05-02 22:13:55 +0200
committerGustavo F. Padovan2011-06-08 21:58:16 +0200
commit715ec005cd10c5d53109ffe513e4d403644e3e48 (patch)
treef4a996e3e1efebbe8388ba167cfa258ec0056798 /include/net/bluetooth/l2cap.h
parentBluetooth: Create l2cap_chan_send() (diff)
downloadkernel-qcow2-linux-715ec005cd10c5d53109ffe513e4d403644e3e48.tar.gz
kernel-qcow2-linux-715ec005cd10c5d53109ffe513e4d403644e3e48.tar.xz
kernel-qcow2-linux-715ec005cd10c5d53109ffe513e4d403644e3e48.zip
Bluetooth: Add chan->chan_type struct member
chan_type says if our chan is raw(direclty access to HCI), connection less or connection oriented. Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'include/net/bluetooth/l2cap.h')
-rw-r--r--include/net/bluetooth/l2cap.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/bluetooth/l2cap.h b/include/net/bluetooth/l2cap.h
index dc721cad7f23..094a7ac16ffe 100644
--- a/include/net/bluetooth/l2cap.h
+++ b/include/net/bluetooth/l2cap.h
@@ -295,6 +295,7 @@ struct l2cap_chan {
__u16 omtu;
__u16 flush_to;
__u8 mode;
+ __u8 chan_type;
__le16 sport;
@@ -384,6 +385,10 @@ struct l2cap_conn {
#define L2CAP_INFO_FEAT_MASK_REQ_SENT 0x04
#define L2CAP_INFO_FEAT_MASK_REQ_DONE 0x08
+#define L2CAP_CHAN_RAW 1
+#define L2CAP_CHAN_CONN_LESS 2
+#define L2CAP_CHAN_CONN_ORIENTED 3
+
/* ----- L2CAP socket info ----- */
#define l2cap_pi(sk) ((struct l2cap_pinfo *) sk)