mirror of https://github.com/ARMmbed/mbed-os.git
only generate oob if using oob
parent
d1b4713ae6
commit
e1885486fa
|
@ -556,7 +556,11 @@ ble_error_t GenericSecurityManager::setOOBDataUsage(
|
||||||
cb->attempt_oob = useOOB;
|
cb->attempt_oob = useOOB;
|
||||||
cb->oob_mitm_protection = OOBProvidesMITM;
|
cb->oob_mitm_protection = OOBProvidesMITM;
|
||||||
|
|
||||||
return generateOOB(&cb->local_address);;
|
if (useOOB) {
|
||||||
|
return generateOOB(&cb->local_address);
|
||||||
|
} else {
|
||||||
|
return BLE_ERROR_NONE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ble_error_t GenericSecurityManager::confirmationEntered(
|
ble_error_t GenericSecurityManager::confirmationEntered(
|
||||||
|
|
Loading…
Reference in New Issue