Skip to content
Snippets Groups Projects
Commit 3e24328f authored by schneider's avatar schneider
Browse files

fix(ble): Generate new ECC keys after pairing

parent 93234db7
No related branches found
No related tags found
1 merge request!402New pairing database
......@@ -763,6 +763,7 @@ static void bleProcMsg(bleMsg_t *pMsg)
LOG_INFO("ble", "Secure pairing successful, auth: 0x%02X",
pMsg->dm.pairCmpl.auth);
DmSecGenerateEccKeyReq();
AppDbNvmStoreBond(AppDbGetHdl((dmConnId_t) pMsg->hdr.param));
pair_connId = DM_CONN_ID_NONE;
......@@ -787,6 +788,9 @@ static void bleProcMsg(bleMsg_t *pMsg)
pMsg->hdr.status);
break;
}
DmSecGenerateEccKeyReq();
pair_connId = DM_CONN_ID_NONE;
trigger_event(BLE_EVENT_PAIRING_FAILED);
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment