Home | History | Annotate | Download | only in smp

Lines Matching refs:p_cb

92     tSMP_CB   *p_cb = &smp_cb;
101 if (memcmp(bd_addr, p_cb->pairing_bda, BD_ADDR_LEN) == 0)
111 if(!p_cb->connect_initialized)
113 p_cb->connect_initialized = TRUE;
115 p_cb->role = L2CA_GetBleConnRole(bd_addr);
118 p_cb->local_r_key = p_cb->local_i_key = SMP_SEC_DEFAULT_KEY;
119 p_cb->loc_auth_req = p_cb->peer_auth_req = SMP_DEFAULT_AUTH_REQ;
120 p_cb->cb_evt = SMP_IO_CAP_REQ_EVT;
121 smp_sm_event(p_cb, SMP_L2CAP_CONN_EVT, NULL);
128 smp_sm_event(p_cb, SMP_L2CAP_DISCONN_EVT, &int_data);
146 tSMP_CB *p_cb = &smp_cb;
164 if ((p_cb->state == SMP_STATE_IDLE) && (p_cb->br_state == SMP_BR_STATE_IDLE))
166 p_cb->role = L2CA_GetBleConnRole(bd_addr);
167 memcpy(&p_cb->pairing_bda[0], bd_addr, BD_ADDR_LEN);
169 else if (memcmp(&bd_addr[0], p_cb->pairing_bda, BD_ADDR_LEN))
178 if (memcmp(&bd_addr[0], p_cb->pairing_bda, BD_ADDR_LEN) == 0)
180 btu_stop_timer (&p_cb->rsp_timer_ent);
181 btu_start_timer (&p_cb->rsp_timer_ent, BTU_TTYPE_SMP_PAIRING_CMD,
188 __FUNCTION__, cmd, p_cb->peer_auth_req, p_cb->loc_auth_req);
190 if ((p_cb->peer_auth_req & SMP_SC_SUPPORT_BIT) &&
191 (p_cb->loc_auth_req & SMP_SC_SUPPORT_BIT))
197 p_cb->rcvd_cmd_code = cmd;
198 p_cb->rcvd_cmd_len = (UINT8) p_buf->len;
199 smp_sm_event(p_cb, cmd, p);
214 tSMP_CB *p_cb = &smp_cb;
216 if (p_cb->total_tx_unacked >= num_pkt)
217 p_cb->total_tx_unacked -= num_pkt;
222 if (p_cb->total_tx_unacked == 0 && p_cb->wait_for_authorization_complete)
225 smp_sm_event(p_cb, SMP_AUTH_CMPL_EVT, &reason);
227 smp_br_state_machine_event(p_cb, SMP_BR_AUTH_CMPL_EVT, &reason);
243 tSMP_CB *p_cb = &smp_cb;
255 if (!(memcmp(bd_addr, p_cb->pairing_bda, BD_ADDR_LEN) == 0))
266 if(!p_cb->connect_initialized)
268 p_cb->connect_initialized = TRUE;
270 p_cb->local_r_key = p_cb->local_i_key = SMP_BR_SEC_DEFAULT_KEY;
271 p_cb->loc_auth_req = p_cb->peer_auth_req = 0;
272 p_cb->cb_evt = SMP_BR_KEYS_REQ_EVT;
273 smp_br_state_machine_event(p_cb, SMP_BR_L2CAP_CONN_EVT, NULL);
280 smp_br_state_machine_event(p_cb, SMP_BR_L2CAP_DISCONN_EVT, &int_data);
296 tSMP_CB *p_cb = &smp_cb;
314 if ((p_cb->state == SMP_STATE_IDLE) && (p_cb->br_state == SMP_BR_STATE_IDLE))
316 p_cb->role = HCI_ROLE_SLAVE;
317 p_cb->smp_over_br = TRUE;
318 memcpy(&p_cb->pairing_bda[0], bd_addr, BD_ADDR_LEN);
320 else if (memcmp(&bd_addr[0], p_cb->pairing_bda, BD_ADDR_LEN))
329 if (memcmp(&bd_addr[0], p_cb->pairing_bda, BD_ADDR_LEN) == 0)
331 btu_stop_timer (&p_cb->rsp_timer_ent);
332 btu_start_timer (&p_cb->rsp_timer_ent, BTU_TTYPE_SMP_PAIRING_CMD,
335 p_cb->rcvd_cmd_code = cmd;
336 p_cb->rcvd_cmd_len = (UINT8) p_buf->len;
337 smp_br_state_machine_event(p_cb, cmd, p);