Commit 71e9588
Bluetooth: ISO: use correct CIS order in Set CIG Parameters event
The order of CIS handle array in Set CIG Parameters response shall match
the order of the CIS_ID array in the command (Core v5.3 Vol 4 Part E Sec
7.8.97). We send CIS_IDs mainly in the order of increasing CIS_ID (but
with "last" CIS first if it has fixed CIG_ID). In handling of the
reply, we currently assume this is also the same as the order of
hci_conn in hdev->conn_hash, but that is not true.
Match the correct hci_conn to the correct handle by matching them based
on the CIG+CIS combination. The CIG+CIS combination shall be unique for
ISO_LINK hci_conn at state >= BT_BOUND, which we maintain in
hci_le_set_cig_params.
Fixes: 26afbd8 ("Bluetooth: Add initial implementation of CIS connections")
Signed-off-by: Pauli Virtanen <pav@iki.fi>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>1 parent 6c242c6 commit 71e9588
2 files changed
Lines changed: 28 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1202 | 1202 | | |
1203 | 1203 | | |
1204 | 1204 | | |
1205 | | - | |
| 1205 | + | |
| 1206 | + | |
1206 | 1207 | | |
1207 | 1208 | | |
1208 | 1209 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3804 | 3804 | | |
3805 | 3805 | | |
3806 | 3806 | | |
| 3807 | + | |
3807 | 3808 | | |
3808 | | - | |
| 3809 | + | |
| 3810 | + | |
3809 | 3811 | | |
3810 | 3812 | | |
3811 | 3813 | | |
| 3814 | + | |
| 3815 | + | |
| 3816 | + | |
| 3817 | + | |
| 3818 | + | |
| 3819 | + | |
3812 | 3820 | | |
3813 | 3821 | | |
3814 | | - | |
| 3822 | + | |
3815 | 3823 | | |
3816 | 3824 | | |
3817 | | - | |
| 3825 | + | |
3818 | 3826 | | |
3819 | 3827 | | |
3820 | 3828 | | |
3821 | 3829 | | |
3822 | 3830 | | |
3823 | | - | |
| 3831 | + | |
| 3832 | + | |
| 3833 | + | |
| 3834 | + | |
| 3835 | + | |
| 3836 | + | |
| 3837 | + | |
| 3838 | + | |
| 3839 | + | |
| 3840 | + | |
| 3841 | + | |
| 3842 | + | |
3824 | 3843 | | |
3825 | | - | |
3826 | | - | |
3827 | | - | |
3828 | | - | |
| 3844 | + | |
3829 | 3845 | | |
3830 | 3846 | | |
3831 | | - | |
| 3847 | + | |
3832 | 3848 | | |
3833 | 3849 | | |
3834 | 3850 | | |
3835 | 3851 | | |
3836 | 3852 | | |
3837 | | - | |
3838 | | - | |
| 3853 | + | |
3839 | 3854 | | |
3840 | | - | |
3841 | | - | |
3842 | | - | |
3843 | | - | |
3844 | | - | |
3845 | 3855 | | |
3846 | 3856 | | |
3847 | | - | |
3848 | | - | |
3849 | 3857 | | |
3850 | 3858 | | |
3851 | 3859 | | |
| |||
0 commit comments