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

Commit d73fbee8 authored by Chris Manton's avatar Chris Manton
Browse files

stack:: Use proper type tSMP_STATUS

Bug: 345572400
Test: m .
Flag: EXEMPT, Mechanical Refactor

Change-Id: I34778925114492e0bfef3131489b59bc291a1ddf
parent 784ead99
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -740,7 +740,7 @@ static uint8_t bta_dm_ble_smp_cback(tBTM_LE_EVT event, const RawAddress& bda,
          sec_event.auth_cmpl.bd_name,
          get_btm_client_interface().security.BTM_SecReadDevName(bda));

      if (p_data->complt.reason != HCI_SUCCESS) {
      if (p_data->complt.reason != SMP_SUCCESS) {
        // TODO This is not a proper use of this type
        sec_event.auth_cmpl.fail_reason =
            static_cast<tHCI_STATUS>(BTA_DM_AUTH_CONVERT_SMP_CODE(
+2 −1
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@
#include "stack/include/bt_octets.h"
#include "stack/include/hcidefs.h"
#include "stack/include/smp_api_types.h"
#include "stack/include/smp_status.h"
#include "types/bt_transport.h"
#include "types/raw_address.h"

@@ -495,7 +496,7 @@ typedef struct {

/* data type for tBTM_LE_COMPLT */
typedef struct {
  uint8_t reason;
  tSMP_STATUS reason;
  uint8_t sec_level;
  bool is_pair_cancel;
  bool smp_over_br;