Lines Matching full:p_cb
134 tSMP_CB* p_cb = &smp_cb;
137 SMP_TRACE_EVENT("%s state=%d br_state=%d flag=0x%x ", __func__, p_cb->state,
138 p_cb->br_state, p_cb->flags);
139 if (p_cb->state != SMP_STATE_IDLE ||
140 p_cb->flags & SMP_PAIR_FLAGS_WE_STARTED_DD || p_cb->smp_over_br) {
144 p_cb->flags = SMP_PAIR_FLAGS_WE_STARTED_DD;
145 p_cb->pairing_bda = bd_addr;
149 smp_sm_event(p_cb, SMP_AUTH_CMPL_EVT, &status);
171 tSMP_CB* p_cb = &smp_cb;
174 SMP_TRACE_EVENT("%s state=%d br_state=%d flag=0x%x ", __func__, p_cb->state,
175 p_cb->br_state, p_cb->flags);
177 if (p_cb->state != SMP_STATE_IDLE || p_cb->smp_over_br ||
178 p_cb->flags & SMP_PAIR_FLAGS_WE_STARTED_DD) {
183 p_cb->role = HCI_ROLE_MASTER;
184 p_cb->flags = SMP_PAIR_FLAGS_WE_STARTED_DD;
185 p_cb->smp_over_br = true;
186 p_cb->pairing_bda = bd_addr;
190 smp_br_state_machine_event(p_cb, SMP_BR_AUTH_CMPL_EVT, &status);
209 tSMP_CB* p_cb = &smp_cb;
214 if (p_cb->cert_failure == SMP_PASSKEY_ENTRY_FAIL ||
215 p_cb->cert_failure == SMP_NUMERIC_COMPAR_FAIL)
216 err_code = p_cb->cert_failure;
218 BTM_TRACE_EVENT("SMP_CancelPair state=%d flag=0x%x ", p_cb->state,
219 p_cb->flags);
220 if (p_cb->state != SMP_STATE_IDLE && p_cb->pairing_bda == bd_addr) {
221 p_cb->is_pair_cancel = true;
223 smp_sm_event(p_cb, SMP_AUTH_CMPL_EVT, &err_code);
285 tSMP_CB* p_cb = &smp_cb;
291 if (p_cb->cb_evt != SMP_PASSKEY_REQ_EVT) {
292 SMP_TRACE_WARNING("SMP_PasskeyReply() - Wrong State: %d", p_cb->state);
296 if (bd_addr != p_cb->pairing_bda) {
311 smp_sm_event(p_cb, SMP_AUTH_CMPL_EVT, &failure);
313 } else if (p_cb->selected_association_model ==
317 smp_convert_string_to_tk(p_cb->tk, passkey);
336 tSMP_CB* p_cb = &smp_cb;
342 if (p_cb->cb_evt != SMP_NC_REQ_EVT) {
343 SMP_TRACE_WARNING("%s() - Wrong State: %d", __func__, p_cb->state);
347 if (bd_addr != p_cb->pairing_bda) {
360 smp_sm_event(p_cb, SMP_AUTH_CMPL_EVT, &failure);
362 smp_sm_event(p_cb, SMP_SC_NC_OK_EVT, NULL);
380 tSMP_CB* p_cb = &smp_cb;
387 if (p_cb->state != SMP_STATE_WAIT_APP_RSP || p_cb->cb_evt != SMP_OOB_REQ_EVT)
391 smp_sm_event(p_cb, SMP_AUTH_CMPL_EVT, &failure);
395 memcpy(p_cb->tk, p_data, len);
398 key.p_data = p_cb->tk;
415 tSMP_CB* p_cb = &smp_cb;
421 smp_sm_event(p_cb, SMP_AUTH_CMPL_EVT, &failure);
428 __func__, p_cb->req_oob_type, p_oob->loc_oob_data.present,
431 if (p_cb->state != SMP_STATE_WAIT_APP_RSP ||
432 p_cb->cb_evt != SMP_SC_OOB_REQ_EVT)
436 switch (p_cb->req_oob_type) {
454 smp_sm_event(p_cb, SMP_AUTH_CMPL_EVT, &failure);
458 p_cb->sc_oob_data = *p_oob;
501 tSMP_CB* p_cb = &smp_cb;
505 if (bd_addr != p_cb->pairing_bda) {
517 if (p_cb->local_io_capability != SMP_IO_CAP_IN) {
519 p_cb->local_io_capability);
523 if (p_cb->selected_association_model != SMP_MODEL_SEC_CONN_PASSKEY_ENT) {
525 p_cb->selected_association_model);
529 smp_sm_event(p_cb, SMP_KEYPRESS_NOTIFICATION_EVENT, &value);
544 tSMP_CB* p_cb = &smp_cb;
552 << ", BDA:" << addr_to_send_to->bda << ", state:" << p_cb->state
553 << ", br_state: " << p_cb->br_state;
555 if ((p_cb->state != SMP_STATE_IDLE) || (p_cb->smp_over_br)) {
563 p_cb->sc_oob_data.loc_oob_data.addr_sent_to = *addr_to_send_to;
564 smp_sm_event(p_cb, SMP_CR_LOC_SC_OOB_DATA_EVT, NULL);