mirror of https://github.com/ARMmbed/mbed-os.git
The GenericSecurityManager tracks the most recent OOB data generated by the PAL and the PAL function to generate OOB data is expected to be asynchronous such that the OOB data is returned via a callback. There was a race condition on the security manager's oob data variable because it was cleared (set to all zeros) after calling PAL generate. The expectation was that the clear operation would occur before the callback executed, but this is proving to not be the case. Instead, the callback is being executed as if it were syncronous with PAL generate, then PAL generate returns and the oob data is cleared, thereby losing the generated oob data that was set in the callback. To fix the issue, clear the oob data variables before calling into the PAL. |
||
---|---|---|
.. | ||
gap | ||
generic | ||
services | ||
BLE.cpp | ||
BLEInstanceBase.cpp | ||
DiscoveredCharacteristic.cpp | ||
GapScanningParams.cpp | ||
LegacyGap.cpp |