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

Commit e3cea84d authored by Chris Manton's avatar Chris Manton Committed by Automerger Merge Worker
Browse files

bta::bta_dm_sirk_verifiction_cback Proper return value tBTM_STATUS am: 1c8ef94a

parents c6205edd 1c8ef94a
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -21,17 +21,16 @@
#include <cstdint>

#include "bta/dm/bta_dm_act.h"
#include "bta/dm/bta_dm_disc.h"
#include "bta/dm/bta_dm_int.h"
#include "bta/dm/bta_dm_sec_int.h"
#include "bta/include/bta_dm_ci.h"  // bta_dm_ci_rmt_oob
#include "btif/include/btif_dm.h"
#include "btif/include/btif_storage.h"
#include "internal_include/bt_target.h"
#include "stack/include/bt_dev_class.h"
#include "stack/include/btm_ble_sec_api_types.h"
#include "stack/include/btm_client_interface.h"
#include "stack/include/btm_sec_api.h"
#include "stack/include/btm_status.h"
#include "stack/include/gatt_api.h"
#include "stack/include/security_client_callbacks.h"
#include "types/bt_transport.h"
@@ -47,7 +46,7 @@ static uint8_t bta_dm_new_link_key_cback(const RawAddress& bd_addr, DEV_CLASS de
                                         bool is_ctkd);
static uint8_t bta_dm_pin_cback(const RawAddress& bd_addr, DEV_CLASS dev_class,
                                const BD_NAME bd_name, bool min_16_digit);
static uint8_t bta_dm_sirk_verifiction_cback(const RawAddress& bd_addr);
static tBTM_STATUS bta_dm_sirk_verifiction_cback(const RawAddress& bd_addr);
static void bta_dm_authentication_complete_cback(const RawAddress& bd_addr, DEV_CLASS dev_class,
                                                 BD_NAME bd_name, tHCI_REASON result);
static void bta_dm_ble_id_key_cback(uint8_t key_type, tBTM_BLE_LOCAL_KEYS* p_key);
@@ -896,7 +895,7 @@ static void bta_dm_ble_id_key_cback(uint8_t key_type, tBTM_BLE_LOCAL_KEYS* p_key
 * Returns          void
 *
 ******************************************************************************/
static uint8_t bta_dm_sirk_verifiction_cback(const RawAddress& bd_addr) {
static tBTM_STATUS bta_dm_sirk_verifiction_cback(const RawAddress& bd_addr) {
  tBTA_DM_SEC sec_event = {.ble_req = {
                                   .bd_addr = bd_addr,
                           }};
+2 −1
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@
#include "stack/include/bt_name.h"
#include "stack/include/bt_octets.h"
#include "stack/include/btm_ble_sec_api_types.h"
#include "stack/include/btm_status.h"
#include "stack/include/hci_error_code.h"
#include "types/bt_transport.h"
#include "types/raw_address.h"
@@ -71,7 +72,7 @@ typedef void(tBTM_AUTH_COMPLETE_CALLBACK)(const RawAddress& bd_addr, DEV_CLASS d
/* Request SIRK verification for found member. Parameters are
 *              BD Address of remote
 */
typedef uint8_t(tBTM_SIRK_VERIFICATION_CALLBACK)(const RawAddress& bd_addr);
typedef tBTM_STATUS(tBTM_SIRK_VERIFICATION_CALLBACK)(const RawAddress& bd_addr);

struct tBTM_APPL_INFO {
  tBTM_PIN_CALLBACK* p_pin_callback{nullptr};