mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
858cdc78be
commit
ef8efe4bf8
3 changed files with 74 additions and 18 deletions
|
@ -306,6 +306,7 @@ struct hci_dev {
|
|||
__u32 req_result;
|
||||
|
||||
void *smp_data;
|
||||
void *smp_bredr_data;
|
||||
|
||||
struct discovery_state discovery;
|
||||
struct hci_conn_hash conn_hash;
|
||||
|
|
|
@ -141,6 +141,7 @@ struct l2cap_conninfo {
|
|||
#define L2CAP_FC_ATT 0x10
|
||||
#define L2CAP_FC_SIG_LE 0x20
|
||||
#define L2CAP_FC_SMP_LE 0x40
|
||||
#define L2CAP_FC_SMP_BREDR 0x80
|
||||
|
||||
/* L2CAP Control Field bit masks */
|
||||
#define L2CAP_CTRL_SAR 0xC000
|
||||
|
@ -255,6 +256,7 @@ struct l2cap_conn_rsp {
|
|||
#define L2CAP_CID_ATT 0x0004
|
||||
#define L2CAP_CID_LE_SIGNALING 0x0005
|
||||
#define L2CAP_CID_SMP 0x0006
|
||||
#define L2CAP_CID_SMP_BREDR 0x0007
|
||||
#define L2CAP_CID_DYN_START 0x0040
|
||||
#define L2CAP_CID_DYN_END 0xffff
|
||||
#define L2CAP_CID_LE_DYN_END 0x007f
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue