]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
Bluetooth: hci_sync: enable PA Sync Lost event
authorYang Li <yang.li@amlogic.com>
Fri, 19 Dec 2025 02:43:09 +0000 (10:43 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Jan 2026 10:21:15 +0000 (11:21 +0100)
[ Upstream commit ab749bfe6a1fc233213f2d00facea5233139d509 ]

Enable the PA Sync Lost event mask to ensure PA sync loss is properly
reported and handled.

Fixes: 485e0626e587 ("Bluetooth: hci_event: Fix not handling PA Sync Lost event")
Signed-off-by: Yang Li <yang.li@amlogic.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/bluetooth/hci_sync.c

index 6e76798ec786b1bd0844971eb24d2e1242373601..f5896c023a9fac662dc152a820d75c1b933bbbaa 100644 (file)
@@ -4402,6 +4402,7 @@ static int hci_le_set_event_mask_sync(struct hci_dev *hdev)
        if (bis_capable(hdev)) {
                events[1] |= 0x20;      /* LE PA Report */
                events[1] |= 0x40;      /* LE PA Sync Established */
+               events[1] |= 0x80;      /* LE PA Sync Lost */
                events[3] |= 0x04;      /* LE Create BIG Complete */
                events[3] |= 0x08;      /* LE Terminate BIG Complete */
                events[3] |= 0x10;      /* LE BIG Sync Established */