Lines Matching refs:smp_cb
52 memset(&smp_cb, 0, sizeof(tSMP_CB)); in SMP_Init()
53 smp_cb.smp_rsp_timer_ent = alarm_new("smp.smp_rsp_timer_ent"); in SMP_Init()
54 smp_cb.delayed_auth_timer_ent = alarm_new("smp.delayed_auth_timer_ent"); in SMP_Init()
57 smp_cb.trace_level = SMP_INITIAL_TRACE_LEVEL; in SMP_Init()
59 smp_cb.trace_level = BT_TRACE_LEVEL_NONE; /* No traces */ in SMP_Init()
68 smp_cb.cert_failure = in SMP_Init()
70 if (smp_cb.cert_failure) in SMP_Init()
72 smp_cb.cert_failure); in SMP_Init()
96 if (new_level != 0xFF) smp_cb.trace_level = new_level; in SMP_SetTraceLevel()
98 return (smp_cb.trace_level); in SMP_SetTraceLevel()
111 SMP_TRACE_EVENT("SMP_Register state=%d", smp_cb.state); in SMP_Register()
113 if (smp_cb.p_callback != NULL) { in SMP_Register()
116 smp_cb.p_callback = p_cback; in SMP_Register()
134 tSMP_CB* p_cb = &smp_cb; in SMP_Pair()
174 tSMP_CB* p_cb = &smp_cb; in SMP_BR_PairWith()
214 tSMP_CB* p_cb = &smp_cb; in SMP_PairCancel()
252 if (smp_cb.smp_over_br) { in SMP_SecurityGrant()
253 if (smp_cb.br_state != SMP_BR_STATE_WAIT_APP_RSP || in SMP_SecurityGrant()
254 smp_cb.cb_evt != SMP_SEC_REQUEST_EVT || smp_cb.pairing_bda != bd_addr) { in SMP_SecurityGrant()
260 smp_cb.cb_evt = 0; in SMP_SecurityGrant()
263 smp_br_state_machine_event(&smp_cb, SMP_BR_API_SEC_GRANT_EVT, in SMP_SecurityGrant()
268 if (smp_cb.state != SMP_STATE_WAIT_APP_RSP || in SMP_SecurityGrant()
269 smp_cb.cb_evt != SMP_SEC_REQUEST_EVT || smp_cb.pairing_bda != bd_addr) in SMP_SecurityGrant()
273 smp_cb.cb_evt = 0; in SMP_SecurityGrant()
276 smp_sm_event(&smp_cb, SMP_API_SEC_GRANT_EVT, &smp_int_data); in SMP_SecurityGrant()
296 tSMP_CB* p_cb = &smp_cb; in SMP_PasskeyReply()
329 smp_sm_event(&smp_cb, SMP_SC_KEY_READY_EVT, &smp_int_data); in SMP_PasskeyReply()
350 tSMP_CB* p_cb = &smp_cb; in SMP_ConfirmReply()
395 tSMP_CB* p_cb = &smp_cb; in SMP_OobDataReply()
398 SMP_TRACE_EVENT("%s State: %d res:%d", __func__, smp_cb.state, res); in SMP_OobDataReply()
418 smp_sm_event(&smp_cb, SMP_KEY_READY_EVT, &smp_int_data); in SMP_OobDataReply()
433 tSMP_CB* p_cb = &smp_cb; in SMP_SecureConnectionOobDataReply()
482 smp_sm_event(&smp_cb, SMP_SC_OOB_DATA_EVT, &smp_int_data); in SMP_SecureConnectionOobDataReply()
498 tSMP_CB* p_cb = &smp_cb; in SMP_KeypressNotification()
543 tSMP_CB* p_cb = &smp_cb; in SMP_CreateLocalSecureConnectionsOobData()