Lines Matching refs:p_clcb
43 static BOOLEAN gatt_sign_data (tGATT_CLCB *p_clcb)
45 tGATT_VALUE *p_attr = (tGATT_VALUE *)p_clcb->p_attr_buf;
47 UINT16 payload_size = p_clcb->p_tcb->payload_size;
52 gatt_set_sec_act(p_clcb->p_tcb, GATT_SEC_OK);
68 if (BTM_BleDataSignature(p_clcb->p_tcb->peer_bda,
74 gatt_set_ch_state(p_clcb->p_tcb, GATT_CH_OPEN);
75 gatt_act_write(p_clcb, GATT_SEC_SIGN_DATA);
79 gatt_end_operation(p_clcb, GATT_INTERNAL_ERROR, NULL);
132 void gatt_sec_check_complete(BOOLEAN sec_check_ok, tGATT_CLCB *p_clcb, UINT8 sec_act)
134 if (GKI_queue_is_empty(&p_clcb->p_tcb->pending_enc_clcb))
135 gatt_set_sec_act(p_clcb->p_tcb, GATT_SEC_NONE);
139 gatt_end_operation(p_clcb, GATT_AUTH_FAIL, NULL);
141 else if (p_clcb->operation == GATTC_OPTYPE_WRITE)
143 gatt_act_write(p_clcb, sec_act);
145 else if (p_clcb->operation == GATTC_OPTYPE_READ)
147 gatt_act_read(p_clcb, p_clcb->counter);
190 gatt_sec_check_complete(status , p_buf->p_clcb, p_tcb->sec_act);
198 gatt_security_check_start(p_buf->p_clcb);
244 gatt_security_check_start(p_buf->p_clcb);
302 tGATT_SEC_ACTION gatt_determine_sec_act(tGATT_CLCB *p_clcb )
306 tGATT_TCB *p_tcb = p_clcb->p_tcb;
307 tGATT_AUTH_REQ auth_req = p_clcb->auth_req;
370 (p_clcb->operation == GATTC_OPTYPE_WRITE) &&
371 (p_clcb->op_subtype == GATT_WRITE_NO_RSP))
475 BOOLEAN gatt_security_check_start(tGATT_CLCB *p_clcb)
477 tGATT_TCB *p_tcb = p_clcb->p_tcb;
484 gatt_sec_act = gatt_determine_sec_act(p_clcb);
493 gatt_sign_data(p_clcb);
510 gatt_add_pending_enc_channel_clcb (p_tcb, p_clcb);
513 gatt_add_pending_enc_channel_clcb (p_tcb, p_clcb);
517 gatt_sec_check_complete(TRUE, p_clcb, gatt_sec_act);