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