Skip to content
Commit 7ccca396 authored by Pauli Virtanen's avatar Pauli Virtanen Committed by Greg Kroah-Hartman
Browse files

Bluetooth: fix connection setup in l2cap_connect



[ Upstream commit c695439d ]

The amp_id argument of l2cap_connect() was removed in
commit 84a4bb65 ("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: 84a4bb65 ("Bluetooth: HCI: Remove HCI_AMP support")
Signed-off-by: default avatarPauli Virtanen <pav@iki.fi>
Signed-off-by: default avatarLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 599a28fa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment