diff options
| author | Sonny Sasaka <[email protected]> | 2020-08-14 19:09:09 +0000 |
|---|---|---|
| committer | Marcel Holtmann <[email protected]> | 2020-09-20 06:21:14 +0000 |
| commit | a46b7ed4d52d09bd6c7ab53b2217d04fc2f02c65 (patch) | |
| tree | d0393371e7624766a900b8bef029bb284145c8c8 /net/bluetooth/hci_request.c | |
| parent | Bluetooth: btusb: Enable wide band speech support for BTUSB_QCA_ROME (diff) | |
| download | kernel-a46b7ed4d52d09bd6c7ab53b2217d04fc2f02c65.tar.gz kernel-a46b7ed4d52d09bd6c7ab53b2217d04fc2f02c65.zip | |
Bluetooth: Fix auto-creation of hci_conn at Conn Complete event
Currently the code auto-creates hci_conn only if the remote address has
been discovered before. This may not be the case. For example, the
remote device may trigger connection after reboot at already-paired
state so there is no inquiry result found, but it is still correct to
create the hci_conn when Connection Complete event is received.
A better guard is to check against bredr allowlist. Devices in the
allowlist have been given permission to auto-connect.
Fixes: 4f40afc6c764 ("Bluetooth: Handle BR/EDR devices during suspend")
Signed-off-by: Sonny Sasaka <[email protected]>
Reviewed-by: Abhishek Pandit-Subedi <[email protected]>
Signed-off-by: Marcel Holtmann <[email protected]>
Diffstat (limited to 'net/bluetooth/hci_request.c')
0 files changed, 0 insertions, 0 deletions
