Bluetooth: hci_core: Fix hci_conn_hash_lookup_cis
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 8 Dec 2023 22:22:29 +0000 (17:22 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 1 Jan 2024 12:42:31 +0000 (12:42 +0000)
commita07a95bcb966b238a3d2b92c9fe1fc684c0910c4
tree21f8bbb5400f4b821bb8f21834d44159fb41ee6d
parent7ee2ba3dd66b97f14c5b4a7867af87a94490993a
Bluetooth: hci_core: Fix hci_conn_hash_lookup_cis

[ Upstream commit 50efc63d1a7a7b9a6ed21adae1b9a7123ec8abc0 ]

hci_conn_hash_lookup_cis shall always match the requested CIG and CIS
ids even when they are unset as otherwise it result in not being able
to bind/connect different sockets to the same address as that would
result in having multiple sockets mapping to the same hci_conn which
doesn't really work and prevents BAP audio configuration such as
AC 6(i) when CIG and CIS are left unset.

Fixes: c14516faede3 ("Bluetooth: hci_conn: Fix not matching by CIS ID")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/net/bluetooth/hci_core.h