Commit 11dc486e authored by Iulia Tanasescu's avatar Iulia Tanasescu Committed by Greg Kroah-Hartman
Browse files

Bluetooth: ISO: Reassociate a socket with an active BIS



[ Upstream commit fa224d0c ]

For ISO Broadcast, all BISes from a BIG have the same lifespan - they
cannot be created or terminated independently from each other.

This links together all BIS hcons that are part of the same BIG, so all
hcons are kept alive as long as the BIG is active.

If multiple BIS sockets are opened for a BIG handle, and only part of
them are closed at some point, the associated hcons will be marked as
open. If new sockets will later be opened for the same BIG, they will
be reassociated with the open BIS hcons.

All BIS hcons will be cleaned up and the BIG will be terminated when
the last BIS socket is closed from userspace.

Signed-off-by: default avatarIulia Tanasescu <iulia.tanasescu@nxp.com>
Signed-off-by: default avatarLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Stable-dep-of: 581dd2dc ("Bluetooth: hci_event: Fix using rcu_read_(un)lock while iterating")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 81c4b952
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment