From b78a8ff4c8ce3bcf3da228989ab9f2a4965adb5a Mon Sep 17 00:00:00 2001 From: Prasad Alatkar Date: Wed, 16 Jun 2021 19:13:42 +0530 Subject: [PATCH] NimBLE AFR: Fix conn_handle related bug in pairing request --- nimble/host/src/ble_gap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/nimble/host/src/ble_gap.c b/nimble/host/src/ble_gap.c index e3c5175eb..01e6a68f4 100644 --- a/nimble/host/src/ble_gap.c +++ b/nimble/host/src/ble_gap.c @@ -4613,6 +4613,7 @@ ble_gap_pairing_req_event(const struct ble_gap_pairing_req *req) memset(&event, 0, sizeof event); event.type = BLE_GAP_EVENT_PAIRING_REQUEST; + event.pairing_req.conn_handle = req->conn_handle; event.pairing_req.io_cap = req->io_cap; event.pairing_req.oob_data_flag = req->oob_data_flag; event.pairing_req.authreq = req->authreq;