Home | History | Annotate | Download | only in smp

Lines Matching defs:p_cb

134   tSMP_CB* p_cb = &smp_cb;
137 p_cb->state, p_cb->br_state, p_cb->flags,
140 if (p_cb->state != SMP_STATE_IDLE ||
141 p_cb->flags & SMP_PAIR_FLAGS_WE_STARTED_DD || p_cb->smp_over_br) {
145 p_cb->flags = SMP_PAIR_FLAGS_WE_STARTED_DD;
146 p_cb->pairing_bda = bd_addr;
152 smp_sm_event(p_cb, SMP_AUTH_CMPL_EVT, &smp_int_data);
174 tSMP_CB* p_cb = &smp_cb;
177 p_cb->state, p_cb->br_state, p_cb->flags,
180 if (p_cb->state != SMP_STATE_IDLE || p_cb->smp_over_br ||
181 p_cb->flags & SMP_PAIR_FLAGS_WE_STARTED_DD) {
186 p_cb->role = HCI_ROLE_MASTER;
187 p_cb->flags = SMP_PAIR_FLAGS_WE_STARTED_DD;
188 p_cb->smp_over_br = true;
189 p_cb->pairing_bda = bd_addr;
195 smp_br_state_machine_event(p_cb, SMP_BR_AUTH_CMPL_EVT, &smp_int_data);
214 tSMP_CB* p_cb = &smp_cb;
218 if (p_cb->cert_failure == SMP_PASSKEY_ENTRY_FAIL ||
219 p_cb->cert_failure == SMP_NUMERIC_COMPAR_FAIL)
220 err_code = p_cb->cert_failure;
222 BTM_TRACE_EVENT("SMP_CancelPair state=%d flag=0x%x ", p_cb->state,
223 p_cb->flags);
224 if (p_cb->state != SMP_STATE_IDLE && p_cb->pairing_bda == bd_addr) {
225 p_cb->is_pair_cancel = true;
229 smp_sm_event(p_cb, SMP_AUTH_CMPL_EVT, &smp_int_data);
296 tSMP_CB* p_cb = &smp_cb;
301 if (p_cb->cb_evt != SMP_PASSKEY_REQ_EVT) {
302 SMP_TRACE_WARNING("SMP_PasskeyReply() - Wrong State: %d", p_cb->state);
306 if (bd_addr != p_cb->pairing_bda) {
323 smp_sm_event(p_cb, SMP_AUTH_CMPL_EVT, &smp_int_data);
325 } else if (p_cb->selected_association_model ==
331 smp_convert_string_to_tk(p_cb->tk, passkey);
350 tSMP_CB* p_cb = &smp_cb;
355 if (p_cb->cb_evt != SMP_NC_REQ_EVT) {
356 SMP_TRACE_WARNING("%s() - Wrong State: %d", __func__, p_cb->state);
360 if (bd_addr != p_cb->pairing_bda) {
375 smp_sm_event(p_cb, SMP_AUTH_CMPL_EVT, &smp_int_data);
377 smp_sm_event(p_cb, SMP_SC_NC_OK_EVT, NULL);
395 tSMP_CB* p_cb = &smp_cb;
401 if (p_cb->state != SMP_STATE_WAIT_APP_RSP || p_cb->cb_evt != SMP_OOB_REQ_EVT)
407 smp_sm_event(p_cb, SMP_AUTH_CMPL_EVT, &smp_int_data);
411 memcpy(p_cb->tk, p_data, len);
414 key.p_data = p_cb->tk;
433 tSMP_CB* p_cb = &smp_cb;
440 smp_sm_event(p_cb, SMP_AUTH_CMPL_EVT, &smp_int_data);
447 __func__, p_cb->req_oob_type, p_oob->loc_oob_data.present,
450 if (p_cb->state != SMP_STATE_WAIT_APP_RSP ||
451 p_cb->cb_evt != SMP_SC_OOB_REQ_EVT)
455 switch (p_cb->req_oob_type) {
475 smp_sm_event(p_cb, SMP_AUTH_CMPL_EVT, &smp_int_data);
479 p_cb->sc_oob_data = *p_oob;
523 tSMP_CB* p_cb = &smp_cb;
527 if (bd_addr != p_cb->pairing_bda) {
539 if (p_cb->local_io_capability != SMP_IO_CAP_IN) {
541 p_cb->local_io_capability);
545 if (p_cb->selected_association_model != SMP_MODEL_SEC_CONN_PASSKEY_ENT) {
547 p_cb->selected_association_model);
553 smp_sm_event(p_cb, SMP_KEYPRESS_NOTIFICATION_EVENT, &smp_int_data);
568 tSMP_CB* p_cb = &smp_cb;
576 << ", BDA:" << addr_to_send_to->bda << ", state:" << p_cb->state
577 << ", br_state: " << p_cb->br_state;
579 if ((p_cb->state != SMP_STATE_IDLE) || (p_cb->smp_over_br)) {
587 p_cb->sc_oob_data.loc_oob_data.addr_sent_to = *addr_to_send_to;
588 smp_sm_event(p_cb, SMP_CR_LOC_SC_OOB_DATA_EVT, NULL);