Commit 56f765c
Bluetooth: iso: fix socket matching ambiguity between BIS and CIS
When both BIS and CIS links exist, their sockets are in
the BT_LISTEN state.
dump sock:
sk 000000001977ef51 state 6
src 10:a5:62:31:05:cf dst 00:00:00:00:00:00
sk 0000000031d28700 state 7
src 10:a5:62:31:05:cf dst00:00:00:00:00:00
sk 00000000613af00e state 4 # listen sock of bis
src 10:a5:62:31:05:cf dst 54:00:00:d4:99:30
sk 000000001710468c state 9
src 10:a5:62:31:05:cf dst 54:00:00:d4:99:30
sk 000000005d97dfde state 4 #listen sock of cis
src 10:a5:62:31:05:cf dst 00:00:00:00:00:00
To locate the CIS socket correctly, check both the BT_LISTEN
state and whether dst addr is BDADDR_ANY.
Link: bluez/bluez#1224
Signed-off-by: Yang Li <[email protected]>
Signed-off-by: Luiz Augusto von Dentz <[email protected]>1 parent 027473e commit 56f765c
1 file changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2021 | 2021 | | |
2022 | 2022 | | |
2023 | 2023 | | |
| 2024 | + | |
| 2025 | + | |
| 2026 | + | |
| 2027 | + | |
| 2028 | + | |
2024 | 2029 | | |
2025 | 2030 | | |
2026 | 2031 | | |
| |||
2105 | 2110 | | |
2106 | 2111 | | |
2107 | 2112 | | |
2108 | | - | |
| 2113 | + | |
2109 | 2114 | | |
2110 | 2115 | | |
2111 | 2116 | | |
| |||
2374 | 2379 | | |
2375 | 2380 | | |
2376 | 2381 | | |
2377 | | - | |
| 2382 | + | |
2378 | 2383 | | |
2379 | 2384 | | |
2380 | 2385 | | |
| |||
0 commit comments