Skip to content
/ linux Public

Commit 874e739

Browse files
Vudentzgregkh
authored andcommitted
Bluetooth: ISO: Fix defer tests being unstable
[ Upstream commit 62bcaa6 ] iso-tester defer tests seem to fail with hci_conn_hash_lookup_cig being unable to resolve a cig in set_cig_params_sync due a race where it is run immediatelly before hci_bind_cis is able to set the QoS settings into the hci_conn object. So this moves the assigning of the QoS settings to be done directly by hci_le_set_cig_params to prevent that from happening again. Fixes: 26afbd8 ("Bluetooth: Add initial implementation of CIS connections") Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent fce04c8 commit 874e739

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

net/bluetooth/hci_conn.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1927,6 +1927,8 @@ static bool hci_le_set_cig_params(struct hci_conn *conn, struct bt_iso_qos *qos)
19271927
return false;
19281928

19291929
done:
1930+
conn->iso_qos = *qos;
1931+
19301932
if (hci_cmd_sync_queue(hdev, set_cig_params_sync,
19311933
UINT_PTR(qos->ucast.cig), NULL) < 0)
19321934
return false;
@@ -1996,8 +1998,6 @@ struct hci_conn *hci_bind_cis(struct hci_dev *hdev, bdaddr_t *dst,
19961998
}
19971999

19982000
hci_conn_hold(cis);
1999-
2000-
cis->iso_qos = *qos;
20012001
cis->state = BT_BOUND;
20022002

20032003
return cis;

0 commit comments

Comments
 (0)