diff --git a/nimble/host/src/ble_gap.c b/nimble/host/src/ble_gap.c index c26b4c4db..e00f627d5 100644 --- a/nimble/host/src/ble_gap.c +++ b/nimble/host/src/ble_gap.c @@ -6423,6 +6423,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; diff --git a/nimble/host/src/ble_sm.c b/nimble/host/src/ble_sm.c index 7af28a8f7..5fd604bf6 100644 --- a/nimble/host/src/ble_sm.c +++ b/nimble/host/src/ble_sm.c @@ -893,7 +893,6 @@ static int ble_sm_pairing_req(uint16_t conn_handle, struct ble_sm_pair_cmd *req) { struct ble_gap_pairing_req pair_req; - int rc; pair_req.conn_handle = conn_handle; pair_req.io_cap = req->io_cap;