Bluetooth: Consolidate encryption handling in hci_encrypt_cfm
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 19 May 2020 20:25:19 +0000 (13:25 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 20 May 2020 14:30:33 +0000 (16:30 +0200)
commit3ca44c16b0dcc764b641ee4ac226909f5c421aa3
treeea7ca8d86c41266850436e81622090e6129fbd44
parenta228f7a410290d836f3a9f9b1ed5aef1aab25cc7
Bluetooth: Consolidate encryption handling in hci_encrypt_cfm

This makes hci_encrypt_cfm calls hci_connect_cfm in case the connection
state is BT_CONFIG so callers don't have to check the state.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_event.c