mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-06-05 21:04:49 +00:00
NimBLE AFR: Fix conn_handle related bug in pairing request
This commit is contained in:
committed by
Kewal M. Shah
parent
5318896e09
commit
a7295f3e73
@@ -6157,6 +6157,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;
|
||||
|
||||
@@ -883,7 +883,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;
|
||||
|
||||
Reference in New Issue
Block a user