Skip to content

Commit 77511c3

Browse files
committed
BLE - Call SecInit unconditionally as it is required by low HCI level driver
That module handles random number incomming from the controller. Overhead is low (less than 150 bytes of flash).
1 parent 2f98901 commit 77511c3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

features/FEATURE_BLE/targets/TARGET_CORDIO/source/CordioBLE.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -386,10 +386,8 @@ void BLE::stack_setup()
386386

387387
WsfTimerInit();
388388

389-
#if BLE_FEATURE_SECURITY
389+
// Note: SecInit required for RandInit.
390390
SecInit();
391-
#endif
392-
393391
SecRandInit();
394392

395393
#if BLE_FEATURE_SECURITY

0 commit comments

Comments
 (0)