zephyr/net
Luiz Augusto von Dentz b1ad0c9c21 Bluetooth: L2CAP: Add security check for LE CoC
This implements the security check for incoming LE CoC and in case the
connection cannot attend the minimun security level set by the server
return a proper error:

> ACL Data RX: Handle 72 flags 0x02 dlen 18
      LE L2CAP: LE Connection Request (0x14) ident 1 len 10
        PSM: 128 (0x0080)
        Source CID: 64
        MTU: 672
        MPS: 230
        Credits: 10
< ACL Data TX: Handle 72 flags 0x00 dlen 18
      LE L2CAP: LE Connection Response (0x15) ident 1 len 10
        Destination CID: 0
        MTU: 0
        MPS: 0
        Credits: 0
        Result: Connection refused - insufficient authentication (0x0005)

Change-Id: Ia8b2873c5d1b154eb9a7c1a49c94578c4ec22f6d
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
2016-11-01 21:40:39 +02:00
..
bluetooth Bluetooth: L2CAP: Add security check for LE CoC 2016-11-01 21:40:39 +02:00
ip Revert "net: fetch valid conn. to determine MSS in data_is_sent_and_acked()" 2016-10-14 07:12:06 +00:00
Kconfig net: buf: Add SYS_LOG support 2016-10-26 12:48:43 +00:00
Makefile net/yaip: revert merge 2016-07-22 04:43:09 +00:00
buf.c net: buf: Make net_buf_frag_add take ownership of the buffer 2016-10-26 12:48:47 +00:00