linux/net/bluetooth
Pauli Virtanen c695439d19 Bluetooth: fix connection setup in l2cap_connect
The amp_id argument of l2cap_connect() was removed in
commit 84a4bb6548 ("Bluetooth: HCI: Remove HCI_AMP support")

It was always called with amp_id == 0, i.e. AMP_ID_BREDR == 0x00 (ie.
non-AMP controller).  In the above commit, the code path for amp_id != 0
was preserved, although it should have used the amp_id == 0 one.

Restore the previous behavior of the non-AMP code path, to fix problems
with L2CAP connections.

Fixes: 84a4bb6548 ("Bluetooth: HCI: Remove HCI_AMP support")
Signed-off-by: Pauli Virtanen <pav@iki.fi>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
2024-06-10 09:48:30 -04:00
..
bnep
cmtp
hidp
rfcomm net: change proto and proto_ops accept type 2024-05-13 18:19:09 -06:00
6lowpan.c
af_bluetooth.c
aosp.c
aosp.h
coredump.c
ecdh_helper.c
ecdh_helper.h
eir.c
eir.h
hci_codec.c
hci_codec.h
hci_conn.c Bluetooth: HCI: Remove HCI_AMP support 2024-05-14 10:54:49 -04:00
hci_core.c Bluetooth: hci_core: Fix not handling hdev->le_num_of_adv_sets=1 2024-05-14 10:56:37 -04:00
hci_debugfs.c
hci_debugfs.h
hci_event.c Bluetooth: HCI: Remove HCI_AMP support 2024-05-14 10:54:49 -04:00
hci_request.c
hci_request.h Bluetooth: Remove 3 repeated macro definitions 2024-05-14 10:51:05 -04:00
hci_sock.c Bluetooth: HCI: Remove HCI_AMP support 2024-05-14 10:54:49 -04:00
hci_sync.c Bluetooth: hci_sync: Fix not using correct handle 2024-06-10 09:48:25 -04:00
hci_sysfs.c
iso.c net-accept-more-20240515 2024-05-18 10:32:39 -07:00
Kconfig
l2cap_core.c Bluetooth: fix connection setup in l2cap_connect 2024-06-10 09:48:30 -04:00
l2cap_sock.c net-accept-more-20240515 2024-05-18 10:32:39 -07:00
leds.c
leds.h
lib.c
Makefile
mgmt.c Bluetooth: HCI: Remove HCI_AMP support 2024-05-14 10:54:49 -04:00
mgmt_config.c
mgmt_config.h
mgmt_util.c
mgmt_util.h
msft.c
msft.h
sco.c net-accept-more-20240515 2024-05-18 10:32:39 -07:00
selftest.c
selftest.h
smp.c
smp.h