From fe9e7f880ae1648b368e59281e90b16a9f2ae050 Mon Sep 17 00:00:00 2001 From: "matthias.ringwald@gmail.com" Date: Thu, 26 Feb 2015 14:30:51 +0000 Subject: [PATCH] fix regression in r3160 that broke security manager --- ble/sm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ble/sm.c b/ble/sm.c index 31fe320fb..b9f451da2 100644 --- a/ble/sm.c +++ b/ble/sm.c @@ -1344,8 +1344,8 @@ static void sm_handle_random_result(uint8_t * data){ break; } - // retrieve sm_connection provided to sm_aes128_start_encryption - sm_connection_t * connection = sm_aes128_connection_source; + // retrieve sm_connection provided to sm_random_start + sm_connection_t * connection = sm_random_connection_source; if (!connection) return; switch (connection->sm_engine_state){ case SM_PH2_W4_RANDOM_TK: