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

Commit db342c1c authored by Charlie Boutier's avatar Charlie Boutier
Browse files

SMP: Remove the fixed channel if the incoming SMP packet is discard.

Test: atest pts-bot:SM/CEN/KDU/BI-01-C
Bug: 272038804
Change-Id: I8ddbdda74a46f2014649b907fabd32ec82f64a18
parent 8a8ed44f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -215,6 +215,8 @@ static void smp_data_received(uint16_t channel, const RawAddress& bd_addr,
    tSMP_INT_DATA smp_int_data;
    smp_int_data.p_data = p;
    smp_sm_event(p_cb, static_cast<tSMP_EVENT>(cmd), &smp_int_data);
  } else {
    L2CA_RemoveFixedChnl(channel, bd_addr);
  }

  osi_free(p_buf);