fix the attempt oob flag if we receive oob

pull/6932/head
paul-szczepanek-arm 2018-03-22 12:32:01 +00:00
parent 2b2d9a2453
commit 350924129f
1 changed files with 4 additions and 0 deletions

View File

@ -563,6 +563,10 @@ ble_error_t GenericSecurityManager::legacyPairingOobReceived(
_oob_temporary_key = *tk;
_oob_temporary_key_creator_address = *address;
if (cb->peer_address == _oob_temporary_key_creator_address) {
cb->attempt_oob = true;
}
if (cb->legacy_pairing_oob_request_pending) {
on_legacy_pairing_oob_request(cb->connection);
/* legacy_pairing_oob_request_pending stops us from