#include "bt_target.h"
#include <string.h>
+#include "log/log.h"
#include "smp_int.h"
#if BLE_INCLUDED == TRUE
return;
}
+ if (p_cb->role > HCI_ROLE_SLAVE)
+ {
+ SMP_TRACE_ERROR("%s: invalid role %d", __func__, p_cb->role);
+ android_errorWriteLog(0x534e4554, "80145946");
+ return;
+ }
+
SMP_TRACE_DEBUG( "SMP Role: %s State: [%s (%d)], Event: [%s (%d)]",
(p_cb->role == HCI_ROLE_SLAVE) ? "Slave" : "Master",
smp_get_br_state_name( p_cb->br_state),