From b2c1e52c9809022f049c3515e932dcafd46c6f33 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Mon, 20 Nov 2017 17:48:41 +0100 Subject: [PATCH] att_server: workaround for identity already resolved before connection complete --- src/ble/att_server.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ble/att_server.c b/src/ble/att_server.c index b0f52211f..fafc893c3 100644 --- a/src/ble/att_server.c +++ b/src/ble/att_server.c @@ -192,7 +192,8 @@ static void att_event_packet_handler (uint8_t packet_type, uint16_t channel, uin att_server->connection.encryption_key_size = 0; att_server->connection.authenticated = 0; att_server->connection.authorized = 0; - att_server->ir_le_device_db_index = -1; + // workaround: identity resolving can already be complete, at least store result + att_server->ir_le_device_db_index = sm_le_device_index(con_handle); att_server->pairing_active = 0; break;