In pure U2F mode, no keepalive is sent by authenticator. Instead, client sends commands to know the status.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos 2024-12-11 22:36:24 +01:00
parent f58bcaecf1
commit 1431f91281
No known key found for this signature in database
GPG key ID: C0095B7870A4CCD3

View file

@ -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;