Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Bluetooth: hci_sync: Correct hci_set_event_mask_page_2_sync() event mask

Event HCI_Truncated_Page_Complete should belong to central
and HCI_Peripheral_Page_Response_Timeout should belong to
peripheral, but hci_set_event_mask_page_2_sync() take these
two events for wrong roles, so correct it by this change.

Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

authored by

Zijun Hu and committed by
Luiz Augusto von Dentz
0feb8af0 57117d72

+2 -2
+2 -2
net/bluetooth/hci_sync.c
··· 3608 3608 if (lmp_cpb_central_capable(hdev)) { 3609 3609 events[1] |= 0x40; /* Triggered Clock Capture */ 3610 3610 events[1] |= 0x80; /* Synchronization Train Complete */ 3611 - events[2] |= 0x10; /* Peripheral Page Response Timeout */ 3611 + events[2] |= 0x08; /* Truncated Page Complete */ 3612 3612 events[2] |= 0x20; /* CPB Channel Map Change */ 3613 3613 changed = true; 3614 3614 } ··· 3620 3620 events[2] |= 0x01; /* Synchronization Train Received */ 3621 3621 events[2] |= 0x02; /* CPB Receive */ 3622 3622 events[2] |= 0x04; /* CPB Timeout */ 3623 - events[2] |= 0x08; /* Truncated Page Complete */ 3623 + events[2] |= 0x10; /* Peripheral Page Response Timeout */ 3624 3624 changed = true; 3625 3625 } 3626 3626