]> git.ipfire.org Git - thirdparty/linux.git/commit
Bluetooth: Remove pending ACL connection attempts
authorJonas Dreßler <verdre@v0yd.nl>
Tue, 6 Feb 2024 11:08:14 +0000 (12:08 +0100)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 6 Mar 2024 22:22:40 +0000 (17:22 -0500)
commit4aa42119d971603dc9e4d8cf4f53d5fcf082ea7d
tree407be941e1d0c79bb42a38767de9c80eb871d41e
parent45340097ce6ea7e875674a5a7d24c95ecbc93ef9
Bluetooth: Remove pending ACL connection attempts

With the last commit we moved to using the hci_sync queue for "Create
Connection" requests, removing the need for retrying the paging after
finished/failed "Create Connection" requests and after the end of
inquiries.

hci_conn_check_pending() was used to trigger this retry, we can remove it
now.

Note that we can also remove the special handling for COMMAND_DISALLOWED
errors in the completion handler of "Create Connection", because "Create
Connection" requests are now always serialized.

This is somewhat reverting commit 4c67bc74f016 ("[Bluetooth] Support
concurrent connect requests").

With this, the BT_CONNECT2 state of ACL hci_conn objects should now be
back to meaning only one thing: That we received a "Connection Request"
from another device (see hci_conn_request_evt), but the response to that
is going to be deferred.

Signed-off-by: Jonas Dreßler <verdre@v0yd.nl>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_conn.c
net/bluetooth/hci_event.c