kernel_optimize_test/net/bluetooth
Szymon Janc 64e759f58f Bluetooth: Fix missing encryption refresh on Security Request
If Security Request is received on connection that is already encrypted
with sufficient security master should perform encryption key refresh
procedure instead of just ignoring Slave Security Request
(Core Spec 5.0 Vol 3 Part H 2.4.6).

> ACL Data RX: Handle 3585 flags 0x02 dlen 6
      SMP: Security Request (0x0b) len 1
        Authentication requirement: Bonding, No MITM, SC, No Keypresses (0x09)
< HCI Command: LE Start Encryption (0x08|0x0019) plen 28
        Handle: 3585
        Random number: 0x0000000000000000
        Encrypted diversifier: 0x0000
        Long term key: 44264272a5c426a9e868f034cf0e69f3
> HCI Event: Command Status (0x0f) plen 4
      LE Start Encryption (0x08|0x0019) ncmd 1
        Status: Success (0x00)
> HCI Event: Encryption Key Refresh Complete (0x30) plen 3
        Status: Success (0x00)
        Handle: 3585

Signed-off-by: Szymon Janc <szymon.janc@codecoup.pl>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
2018-03-01 19:55:56 +01:00
..
bnep
cmtp net: delete /proc THIS_MODULE references 2018-01-16 15:01:33 -05:00
hidp Merge branches 'for-4.16/upstream' and 'for-4.15/upstream-fixes' into for-linus 2018-01-31 16:23:58 +01:00
rfcomm
6lowpan.c
a2mp.c
a2mp.h
af_bluetooth.c vfs: do bulk POLL* -> EPOLL* replacement 2018-02-11 14:34:03 -08:00
amp.c
amp.h
ecdh_helper.c
ecdh_helper.h
hci_conn.c
hci_core.c
hci_debugfs.c seq_file: Introduce DEFINE_SHOW_ATTRIBUTE() helper macro 2018-02-07 12:50:21 +02:00
hci_debugfs.h
hci_event.c
hci_request.c Bluetooth: Add support to advertise when connected 2017-12-13 09:41:37 +01:00
hci_request.h
hci_sock.c
hci_sysfs.c
Kconfig
l2cap_core.c Bluetooth: Prevent stack info leak from the EFS element. 2018-01-04 17:01:01 +01:00
l2cap_sock.c
leds.c
leds.h
lib.c
Makefile
mgmt_util.c
mgmt_util.h
mgmt.c
sco.c
selftest.c
selftest.h
smp.c Bluetooth: Fix missing encryption refresh on Security Request 2018-03-01 19:55:56 +01:00
smp.h