From e276e383d14e5d8d8365c656d6d3cc860f58f71a Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Tue, 25 May 2021 13:27:41 +0200 Subject: [PATCH] hci: store remote ssp io capabilities --- src/hci.c | 1 + src/hci.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/hci.c b/src/hci.c index 22061bd3f..bca1b7b44 100644 --- a/src/hci.c +++ b/src/hci.c @@ -2656,6 +2656,7 @@ static void event_handler(uint8_t *packet, uint16_t size){ conn = hci_connection_for_bd_addr_and_type(addr, BD_ADDR_TYPE_ACL); if (!conn) break; conn->io_cap_response_auth_req = hci_event_io_capability_response_get_authentication_requirements(packet); + conn->io_cap_response_io = hci_event_io_capability_response_get_io_capability(packet); break; case HCI_EVENT_IO_CAPABILITY_REQUEST: diff --git a/src/hci.h b/src/hci.h index deeeb1993..c8a152271 100644 --- a/src/hci.h +++ b/src/hci.h @@ -535,6 +535,7 @@ typedef struct { #ifdef ENABLE_CLASSIC // IO Capabilities Response uint8_t io_cap_response_auth_req; + uint8_t io_cap_response_io; // connection mode, default ACL_CONNECTION_MODE_ACTIVE uint8_t connection_mode;