mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-14 22:44:27 +08:00
Bluetooth: hci_core: Fix hci_conn_hash_lookup_cis
[ Upstream commit50efc63d1a
] 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:c14516faed
("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>
This commit is contained in:
parent
7ee2ba3dd6
commit
a07a95bcb9
@ -1227,11 +1227,11 @@ static inline struct hci_conn *hci_conn_hash_lookup_cis(struct hci_dev *hdev,
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* Match CIG ID if set */
|
/* Match CIG ID if set */
|
||||||
if (cig != BT_ISO_QOS_CIG_UNSET && cig != c->iso_qos.ucast.cig)
|
if (cig != c->iso_qos.ucast.cig)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* Match CIS ID if set */
|
/* Match CIS ID if set */
|
||||||
if (id != BT_ISO_QOS_CIS_UNSET && id != c->iso_qos.ucast.cis)
|
if (id != c->iso_qos.ucast.cis)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* Match destination address if set */
|
/* Match destination address if set */
|
||||||
|
Loading…
Reference in New Issue
Block a user