Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 82bd5350 authored by Hui Peng's avatar Hui Peng
Browse files

Fix a bug in SMP_Init

init_security_mode is not properly setup.

Bug: 314704064
Test: mma packages/modules/Bluetooth | manual log verification
Change-Id: I8418707c693a70301c2db867c4ec97a79a5c5082
parent ed92fef8
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -48,9 +48,10 @@
 *
 ******************************************************************************/
void SMP_Init(uint8_t init_security_mode) {
  memset(&smp_cb, 0, sizeof(tSMP_CB));

  smp_cb.init_security_mode = init_security_mode;

  memset(&smp_cb, 0, sizeof(tSMP_CB));
  smp_cb.smp_rsp_timer_ent = alarm_new("smp.smp_rsp_timer_ent");
  smp_cb.delayed_auth_timer_ent = alarm_new("smp.delayed_auth_timer_ent");