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)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 15 Dec 2023 16:52:06 +0000 (11:52 -0500)
commit50efc63d1a7a7b9a6ed21adae1b9a7123ec8abc0
treea048476d36fc8e6f18a7b8542e09861b6a3cc116
parenta5812c68d849505ea657f653446512b85887f813
Bluetooth: hci_core: Fix hci_conn_hash_lookup_cis

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>
include/net/bluetooth/hci_core.h