Lines Matching refs:pan_cb

41 tPAN_CB pan_cb;  variable
117 __func__, handle, pan_cb.role, local_uuid16, remote_uuid16, in pan_conn_ind_cb()
138 if (((!(pan_cb.role & UUID_SERVCLASS_PANU)) && in pan_conn_ind_cb()
140 ((!(pan_cb.role & UUID_SERVCLASS_GN)) && in pan_conn_ind_cb()
142 ((!(pan_cb.role & UUID_SERVCLASS_NAP)) && in pan_conn_ind_cb()
197 if (pan_cb.num_conns > 1 && local_uuid16 == UUID_SERVCLASS_PANU) { in pan_conn_ind_cb()
219 if (pan_cb.pan_bridge_req_cb) in pan_conn_ind_cb()
220 (*pan_cb.pan_bridge_req_cb)(pcb->rem_bda, false); in pan_conn_ind_cb()
224 pan_cb.active_role = req_role; in pan_conn_ind_cb()
234 if (pan_cb.num_conns && (local_uuid16 == UUID_SERVCLASS_PANU || in pan_conn_ind_cb()
235 pan_cb.active_role == PAN_ROLE_CLIENT)) { in pan_conn_ind_cb()
253 pan_cb.active_role = req_role; in pan_conn_ind_cb()
257 pan_cb.num_conns++; in pan_conn_ind_cb()
299 if (pan_cb.pan_conn_state_cb) in pan_connect_state_cb()
300 (*pan_cb.pan_conn_state_cb)(pcb->handle, pcb->rem_bda, result, in pan_connect_state_cb()
314 pan_cb.active_role = pan_cb.prv_active_role; in pan_connect_state_cb()
316 if ((pcb->src_uuid == UUID_SERVCLASS_NAP) && pan_cb.pan_bridge_req_cb) in pan_connect_state_cb()
317 (*pan_cb.pan_bridge_req_cb)(pcb->rem_bda, true); in pan_connect_state_cb()
324 if ((pcb->src_uuid == UUID_SERVCLASS_NAP) && pan_cb.pan_bridge_req_cb) in pan_connect_state_cb()
325 (*pan_cb.pan_bridge_req_cb)(pcb->rem_bda, false); in pan_connect_state_cb()
328 pan_cb.num_conns--; in pan_connect_state_cb()
335 pan_cb.active_role = PAN_ROLE_CLIENT; in pan_connect_state_cb()
337 pan_cb.active_role = PAN_ROLE_GN_SERVER; in pan_connect_state_cb()
339 pan_cb.active_role = PAN_ROLE_NAP_SERVER; in pan_connect_state_cb()
351 if (pan_cb.pan_conn_state_cb) in pan_connect_state_cb()
352 (*pan_cb.pan_conn_state_cb)(pcb->handle, pcb->rem_bda, PAN_SUCCESS, in pan_connect_state_cb()
353 is_role_change, pan_cb.active_role, peer_role); in pan_connect_state_cb()
356 if (pan_cb.pan_bridge_req_cb && pcb->src_uuid == UUID_SERVCLASS_NAP) { in pan_connect_state_cb()
358 (*pan_cb.pan_bridge_req_cb)(pcb->rem_bda, true); in pan_connect_state_cb()
418 if (pan_cb.pcb[i].con_state == PAN_STATE_CONNECTED && in pan_data_ind_cb()
419 pan_cb.pcb[i].handle != handle && in pan_data_ind_cb()
420 pcb->src_uuid == pan_cb.pcb[i].src_uuid) { in pan_data_ind_cb()
421 BNEP_Write(pan_cb.pcb[i].handle, dst, p_data, len, protocol, &src, ext); in pan_data_ind_cb()
425 if (pan_cb.pan_data_ind_cb) in pan_data_ind_cb()
426 (*pan_cb.pan_data_ind_cb)(pcb->handle, src, dst, protocol, p_data, len, in pan_data_ind_cb()
434 if (pan_cb.pcb[i].con_state == PAN_STATE_CONNECTED && in pan_data_ind_cb()
435 pcb->src_uuid == pan_cb.pcb[i].src_uuid) { in pan_data_ind_cb()
436 if (pan_cb.pcb[i].rem_bda == dst) { in pan_data_ind_cb()
437 BNEP_Write(pan_cb.pcb[i].handle, dst, p_data, len, protocol, &src, ext); in pan_data_ind_cb()
449 if (pan_cb.pan_data_ind_cb) in pan_data_ind_cb()
450 (*pan_cb.pan_data_ind_cb)(pcb->handle, src, dst, protocol, p_data, len, ext, in pan_data_ind_cb()
519 if (pan_cb.pcb[i].con_state == PAN_STATE_CONNECTED && in pan_data_buf_ind_cb()
520 pan_cb.pcb[i].handle != handle && in pan_data_buf_ind_cb()
521 pcb->src_uuid == pan_cb.pcb[i].src_uuid) { in pan_data_buf_ind_cb()
522 BNEP_Write(pan_cb.pcb[i].handle, dst, p_data, len, protocol, &src, in pan_data_buf_ind_cb()
527 if (pan_cb.pan_data_buf_ind_cb) in pan_data_buf_ind_cb()
528 (*pan_cb.pan_data_buf_ind_cb)(pcb->handle, src, dst, protocol, p_buf, in pan_data_buf_ind_cb()
530 else if (pan_cb.pan_data_ind_cb) in pan_data_buf_ind_cb()
531 (*pan_cb.pan_data_ind_cb)(pcb->handle, src, dst, protocol, p_data, len, in pan_data_buf_ind_cb()
556 if (pan_cb.pan_data_buf_ind_cb) in pan_data_buf_ind_cb()
557 (*pan_cb.pan_data_buf_ind_cb)(pcb->handle, src, dst, protocol, p_buf, ext, in pan_data_buf_ind_cb()
559 else if (pan_cb.pan_data_ind_cb) in pan_data_buf_ind_cb()
560 (*pan_cb.pan_data_ind_cb)(pcb->handle, src, dst, protocol, p_data, len, ext, in pan_data_buf_ind_cb()
580 if (pan_cb.pan_tx_data_flow_cb) (*pan_cb.pan_tx_data_flow_cb)(handle, event); in pan_tx_data_flow_cb()
614 if (pan_cb.pan_pfilt_ind_cb) in pan_proto_filt_ind_cb()
615 (*pan_cb.pan_pfilt_ind_cb)(handle, indication, result, num_filters, in pan_proto_filt_ind_cb()
648 if (pan_cb.pan_mfilt_ind_cb) in pan_mcast_filt_ind_cb()
649 (*pan_cb.pan_mfilt_ind_cb)(handle, indication, result, num_filters, in pan_mcast_filt_ind_cb()