Commit a35c0b5
Bluetooth: ISO: use correct CIS order in Set CIG Parameters event
[ Upstream commit 71e9588 ]
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>
Stable-dep-of: 0acd4ee ("Bluetooth: hci_event: validate LE Set CIG Parameters response")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent ac1a7c3 commit a35c0b5
3 files changed
Lines changed: 32 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1192 | 1192 | | |
1193 | 1193 | | |
1194 | 1194 | | |
1195 | | - | |
| 1195 | + | |
1196 | 1196 | | |
1197 | 1197 | | |
1198 | 1198 | | |
1199 | | - | |
| 1199 | + | |
1200 | 1200 | | |
1201 | 1201 | | |
1202 | | - | |
| 1202 | + | |
| 1203 | + | |
1203 | 1204 | | |
1204 | 1205 | | |
1205 | 1206 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1862 | 1862 | | |
1863 | 1863 | | |
1864 | 1864 | | |
1865 | | - | |
1866 | | - | |
| 1865 | + | |
| 1866 | + | |
1867 | 1867 | | |
1868 | 1868 | | |
1869 | 1869 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3785 | 3785 | | |
3786 | 3786 | | |
3787 | 3787 | | |
| 3788 | + | |
3788 | 3789 | | |
3789 | | - | |
| 3790 | + | |
| 3791 | + | |
3790 | 3792 | | |
3791 | 3793 | | |
3792 | 3794 | | |
| 3795 | + | |
| 3796 | + | |
| 3797 | + | |
| 3798 | + | |
| 3799 | + | |
| 3800 | + | |
3793 | 3801 | | |
3794 | 3802 | | |
3795 | | - | |
| 3803 | + | |
3796 | 3804 | | |
3797 | 3805 | | |
3798 | | - | |
| 3806 | + | |
3799 | 3807 | | |
3800 | 3808 | | |
3801 | 3809 | | |
3802 | 3810 | | |
3803 | 3811 | | |
3804 | | - | |
| 3812 | + | |
| 3813 | + | |
| 3814 | + | |
| 3815 | + | |
| 3816 | + | |
| 3817 | + | |
| 3818 | + | |
| 3819 | + | |
| 3820 | + | |
| 3821 | + | |
| 3822 | + | |
| 3823 | + | |
3805 | 3824 | | |
3806 | | - | |
3807 | | - | |
3808 | | - | |
| 3825 | + | |
3809 | 3826 | | |
3810 | 3827 | | |
3811 | 3828 | | |
3812 | 3829 | | |
3813 | | - | |
| 3830 | + | |
3814 | 3831 | | |
3815 | 3832 | | |
3816 | 3833 | | |
3817 | 3834 | | |
3818 | 3835 | | |
3819 | | - | |
3820 | | - | |
| 3836 | + | |
3821 | 3837 | | |
3822 | | - | |
3823 | | - | |
3824 | | - | |
3825 | | - | |
3826 | | - | |
3827 | 3838 | | |
3828 | 3839 | | |
3829 | | - | |
3830 | | - | |
3831 | 3840 | | |
3832 | 3841 | | |
3833 | 3842 | | |
| |||
0 commit comments