From 1431f91281dbe31f6327aea58df7bf3c3da259f6 Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Wed, 11 Dec 2024 22:36:24 +0100 Subject: [PATCH] In pure U2F mode, no keepalive is sent by authenticator. Instead, client sends commands to know the status. Signed-off-by: Pol Henarejos --- src/usb/hid/hid.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/usb/hid/hid.c b/src/usb/hid/hid.c index 15356d0..878a472 100644 --- a/src/usb/hid/hid.c +++ b/src/usb/hid/hid.c @@ -538,6 +538,9 @@ int driver_process_usb_packet_hid(uint16_t read) { } void send_keepalive() { + if (thread_type == 1) { + return; + } CTAPHID_FRAME *resp = (CTAPHID_FRAME *) (hid_tx[ITF_HID_CTAP].buffer + sizeof(hid_tx[ITF_HID_CTAP].buffer) - 64); //memset(ctap_resp, 0, sizeof(CTAPHID_FRAME)); resp->cid = ctap_req->cid;