From 0daa3aae4d1afb563ffd61ad238638db64b3375e Mon Sep 17 00:00:00 2001 From: Jacques Gagnon Date: Sat, 14 Sep 2024 15:49:33 -0400 Subject: [PATCH] [BT] Ignore invalid PS3 reports --- main/bluetooth/hidp/ps3.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main/bluetooth/hidp/ps3.c b/main/bluetooth/hidp/ps3.c index 5493fa1e..48883c6a 100644 --- a/main/bluetooth/hidp/ps3.c +++ b/main/bluetooth/hidp/ps3.c @@ -90,7 +90,9 @@ void bt_hid_ps3_hdlr(struct bt_dev *device, struct bt_hci_pkt *bt_hci_acl_pkt, u } bt_hid_cmd_ps3_set_conf(device, &rumble); #else - bt_host_bridge(device, bt_hci_acl_pkt->hidp_hdr.protocol, bt_hci_acl_pkt->hidp_data, hidp_data_len); + if (bt_hci_acl_pkt->hidp_data[0] != 0xFF) { + bt_host_bridge(device, bt_hci_acl_pkt->hidp_hdr.protocol, bt_hci_acl_pkt->hidp_data, hidp_data_len); + } #endif break; }