zephyr/include/bluetooth
Luiz Augusto von Dentz 807bd5fec8 Bluetooth: L2CAP: Handle LE connection response security errors
If there are security errors bump the security of the connection and
retry:

7C:7A:91:18:82:5F (public)> l2cap-connect 0x0080
[bt] [DBG] bt_l2cap_chan_connect: (0x0011ae8c) conn 0x0011b940 chan 0x00119700 psm 0x0080
[bt] [DBG] l2cap_chan_tx_init: (0x0011ae8c) chan 0x00119700
[bt] [DBG] l2cap_chan_rx_init: (0x0011ae8c) chan 0x00119700
[bt] [DBG] bt_l2cap_chan_add: (0x0011ae8c) conn 0x0011b940 chan 0x00119700
L2CAP connection pending
7C:7A:91:18:82:5F (public)> [bt] [DBG] bt_l2cap_recv: (0x0011ced8) Packet for CID 5 len 14
[bt] [DBG] l2cap_chan_recv: (0x0011ced8) chan 0x0011bd00 len 14
[bt] [DBG] l2cap_recv: (0x0011ced8) Signaling code 0x15 ident 2 len 10
[bt] [DBG] le_conn_rsp: (0x0011ced8) dcid 0x0000 mtu 0 mps 0 credits 0 result 0x0005
[bt] [DBG] bt_l2cap_recv: (0x0011ced8) Packet for CID 6 len 7
[bt] [DBG] l2cap_chan_recv: (0x0011ced8) chan 0x0011bf00 len 7
[bt] [DBG] bt_l2cap_recv: (0x0011ced8) Packet for CID 6 len 65
[bt] [DBG] l2cap_chan_recv: (0x0011ced8) chan 0x0011bf00 len 65
[bt] [DBG] bt_l2cap_recv: (0x0011ced8) Packet for CID 6 len 17
[bt] [DBG] l2cap_chan_recv: (0x0011ced8) chan 0x0011bf00 len 17
[bt] [DBG] bt_l2cap_recv: (0x0011ced8) Packet for CID 6 len 17
[bt] [DBG] l2cap_chan_recv: (0x0011ced8) chan 0x0011bf00 len 17
Security changed: 7C:7A:91:18:82:5F (public) level 2
[bt] [DBG] bt_l2cap_recv: (0x0011ced8) Packet for CID 5 len 14
[bt] [DBG] l2cap_chan_recv: (0x0011ced8) chan 0x0011bd00 len 14
[bt] [DBG] l2cap_recv: (0x0011ced8) Signaling code 0x15 ident 3 len 10
[bt] [DBG] le_conn_rsp: (0x0011ced8) dcid 0x0040 mtu 672 mps 230 credits 10 result 0x0000
Channel 0x00119700 connected

Change-Id: I2402fd86cc6bdf41a537053325e0a1973c23377a
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
2016-11-04 22:05:05 +02:00
..
a2dp.h Bluetooth: A2DP: Added Connect API 2016-10-04 10:55:04 +00:00
att.h Bluetooth: ATT: Rework buffer pools to minimize extra data 2016-11-01 21:40:39 +02:00
bluetooth.h Bluetooth: Fix compiler warnings/errors related to string casts 2016-10-04 12:44:24 +00:00
buf.h Bluetooth: doc: Fix displacement of HCI buffer description 2016-07-19 07:27:48 +00:00
conn.h Bluetooth: Rename BT_SECURITY_ZERO to BT_SECURITY_NONE 2016-11-01 21:40:39 +02:00
gatt.h Bluetooth: GATT: Pass CCC attribute to changed callback 2016-10-21 07:47:31 +03:00
hci_raw.h Bluetooth: Add missing guards to hci_raw.h header file 2016-09-07 08:17:26 +03:00
hci.h Bluetooth: HCI: Remove "EDR" and "HS" marketing terms from macros 2016-10-28 08:09:08 +03:00
hfp_hf.h Bluetooth: HFP HF: Initialize Handsfree profile 2016-09-14 08:45:45 +03:00
l2cap.h Bluetooth: L2CAP: Handle LE connection response security errors 2016-11-04 22:05:05 +02:00
log.h Bluetooth: log: Include nanokernel.h to use BT_ASSERT() 2016-09-14 08:45:45 +03:00
rfcomm.h Bluetooth: RFCOMM: Define enum and macros for role and CR 2016-11-04 22:05:05 +02:00
sdp.h Bluetooth: SDP: Shorten Service Class macro name 2016-10-21 07:47:31 +03:00
storage.h Bluetooth: Add well known keys to storage API for legacy pairing 2016-10-16 09:01:28 +03:00
uuid.h Bluetooth: UUID: Add protocol UUIDs 2016-10-21 07:47:31 +03:00