• Iulia Tanasescu's avatar
    Bluetooth: ISO: Handle PA sync when no BIGInfo reports are generated · d356c924
    Iulia Tanasescu authored
    In case of a Broadcast Source that has PA enabled but no active BIG,
    a Broadcast Sink needs to establish PA sync and parse BASE from PA
    reports.
    
    This commit moves the allocation of a PA sync hcon from the BIGInfo
    advertising report event to the PA sync established event. After the
    first complete PA report, the hcon is notified to the ISO layer. A
    child socket is allocated and enqueued in the parent's accept queue.
    
    BIGInfo reports also need to be processed, to extract the encryption
    field and inform userspace. After the first BIGInfo report is received,
    the PA sync hcon is notified again to the ISO layer. Since a socket will
    be found this time, the socket state will transition to BT_CONNECTED and
    the userspace will be woken up using sk_state_change.
    Signed-off-by: default avatarIulia Tanasescu <iulia.tanasescu@nxp.com>
    Signed-off-by: default avatarLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
    d356c924
iso.c 48.5 KB