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;