diff options
| author | Johan Hedberg <johan.hedberg@intel.com> | 2014-08-13 08:12:32 -0400 |
|---|---|---|
| committer | Marcel Holtmann <marcel@holtmann.org> | 2014-12-03 10:51:20 -0500 |
| commit | ef8efe4bf8b5fe1a9342ae964c428aed1be7863b (patch) | |
| tree | fa5ed6ec8be7f501c12d9ca6376bbfdb8a248146 /include/net | |
| parent | 858cdc78be8be19b7176cafe06d3db3acfb345d4 (diff) | |
Bluetooth: Add skeleton for BR/EDR SMP channel
This patch adds the very basic code for creating and destroying SMP
L2CAP channels for BR/EDR connections.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net')
| -rw-r--r-- | include/net/bluetooth/hci_core.h | 1 | ||||
| -rw-r--r-- | include/net/bluetooth/l2cap.h | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index 42f9362a83c1..f39e65096b1f 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h | |||
| @@ -306,6 +306,7 @@ struct hci_dev { | |||
| 306 | __u32 req_result; | 306 | __u32 req_result; |
| 307 | 307 | ||
| 308 | void *smp_data; | 308 | void *smp_data; |
| 309 | void *smp_bredr_data; | ||
| 309 | 310 | ||
| 310 | struct discovery_state discovery; | 311 | struct discovery_state discovery; |
| 311 | struct hci_conn_hash conn_hash; | 312 | struct hci_conn_hash conn_hash; |
diff --git a/include/net/bluetooth/l2cap.h b/include/net/bluetooth/l2cap.h index d71dc3579354..eee3ef530e79 100644 --- a/include/net/bluetooth/l2cap.h +++ b/include/net/bluetooth/l2cap.h | |||
| @@ -141,6 +141,7 @@ struct l2cap_conninfo { | |||
| 141 | #define L2CAP_FC_ATT 0x10 | 141 | #define L2CAP_FC_ATT 0x10 |
| 142 | #define L2CAP_FC_SIG_LE 0x20 | 142 | #define L2CAP_FC_SIG_LE 0x20 |
| 143 | #define L2CAP_FC_SMP_LE 0x40 | 143 | #define L2CAP_FC_SMP_LE 0x40 |
| 144 | #define L2CAP_FC_SMP_BREDR 0x80 | ||
| 144 | 145 | ||
| 145 | /* L2CAP Control Field bit masks */ | 146 | /* L2CAP Control Field bit masks */ |
| 146 | #define L2CAP_CTRL_SAR 0xC000 | 147 | #define L2CAP_CTRL_SAR 0xC000 |
| @@ -255,6 +256,7 @@ struct l2cap_conn_rsp { | |||
| 255 | #define L2CAP_CID_ATT 0x0004 | 256 | #define L2CAP_CID_ATT 0x0004 |
| 256 | #define L2CAP_CID_LE_SIGNALING 0x0005 | 257 | #define L2CAP_CID_LE_SIGNALING 0x0005 |
| 257 | #define L2CAP_CID_SMP 0x0006 | 258 | #define L2CAP_CID_SMP 0x0006 |
| 259 | #define L2CAP_CID_SMP_BREDR 0x0007 | ||
| 258 | #define L2CAP_CID_DYN_START 0x0040 | 260 | #define L2CAP_CID_DYN_START 0x0040 |
| 259 | #define L2CAP_CID_DYN_END 0xffff | 261 | #define L2CAP_CID_DYN_END 0xffff |
| 260 | #define L2CAP_CID_LE_DYN_END 0x007f | 262 | #define L2CAP_CID_LE_DYN_END 0x007f |
