Bluetooth: ISO: Fix using BT_SK_PA_SYNC to detect BIS sockets
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 9 Jun 2025 18:53:53 +0000 (14:53 -0400)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 11 Jun 2025 20:29:39 +0000 (16:29 -0400)
commit2df108c227b266a9ec9e3fda3828d2ac9662aa33
tree9611b121c71f6c9e61c28207e565d15397a87776
parent47c03902269aff377f959dc3fd94a9733aa31d6e
Bluetooth: ISO: Fix using BT_SK_PA_SYNC to detect BIS sockets

BT_SK_PA_SYNC is only valid for Broadcast Sinks which means socket used
for Broadcast Sources wouldn't be able to use the likes of getpeername
to read out the sockaddr_iso_bc fields which may have been update (e.g.
bc_sid).

Fixes: 0a766a0affb5 ("Bluetooth: ISO: Fix getpeername not returning sockaddr_iso_bc fields")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/iso.c