Lines Matching refs:pan_cb

40 tPAN_CB  pan_cb;  variable
183 … handle, pan_cb.role, local_uuid->uu.uuid16, remote_uuid->uu.uuid16, is_role_change?"YES":"NO"); in pan_conn_ind_cb()
213 if (((!(pan_cb.role & UUID_SERVCLASS_PANU)) in pan_conn_ind_cb()
215 ((!(pan_cb.role & UUID_SERVCLASS_GN)) in pan_conn_ind_cb()
217 ((!(pan_cb.role & UUID_SERVCLASS_NAP)) in pan_conn_ind_cb()
239 if (pan_cb.num_conns > 1 && local_uuid->uu.uuid16 == UUID_SERVCLASS_PANU) in pan_conn_ind_cb()
262 if (pan_cb.pan_bridge_req_cb) in pan_conn_ind_cb()
263 (*pan_cb.pan_bridge_req_cb) (pcb->rem_bda, FALSE); in pan_conn_ind_cb()
267 pan_cb.active_role = req_role; in pan_conn_ind_cb()
279 if (pan_cb.num_conns && in pan_conn_ind_cb()
281 pan_cb.active_role == PAN_ROLE_CLIENT)) in pan_conn_ind_cb()
301 pan_cb.active_role = req_role; in pan_conn_ind_cb()
305 pan_cb.num_conns++; in pan_conn_ind_cb()
349 if (pan_cb.pan_conn_state_cb) in pan_connect_state_cb()
350 …(*pan_cb.pan_conn_state_cb) (pcb->handle, pcb->rem_bda, result, is_role_change, PAN_ROLE_INACTIVE,… in pan_connect_state_cb()
363 pan_cb.active_role = pan_cb.prv_active_role; in pan_connect_state_cb()
365 if ((pcb->src_uuid == UUID_SERVCLASS_NAP) && pan_cb.pan_bridge_req_cb) in pan_connect_state_cb()
366 (*pan_cb.pan_bridge_req_cb) (pcb->rem_bda, TRUE); in pan_connect_state_cb()
374 if ((pcb->src_uuid == UUID_SERVCLASS_NAP) && pan_cb.pan_bridge_req_cb) in pan_connect_state_cb()
375 (*pan_cb.pan_bridge_req_cb) (pcb->rem_bda, FALSE); in pan_connect_state_cb()
378 pan_cb.num_conns--; in pan_connect_state_cb()
385 pan_cb.active_role = PAN_ROLE_CLIENT; in pan_connect_state_cb()
387 pan_cb.active_role = PAN_ROLE_GN_SERVER; in pan_connect_state_cb()
389 pan_cb.active_role = PAN_ROLE_NAP_SERVER; in pan_connect_state_cb()
401 if (pan_cb.pan_conn_state_cb) in pan_connect_state_cb()
402 …(*pan_cb.pan_conn_state_cb) (pcb->handle, pcb->rem_bda, PAN_SUCCESS, is_role_change, pan_cb.active… in pan_connect_state_cb()
405 if (pan_cb.pan_bridge_req_cb && pcb->src_uuid == UUID_SERVCLASS_NAP) in pan_connect_state_cb()
408 (*pan_cb.pan_bridge_req_cb) (pcb->rem_bda, TRUE); in pan_connect_state_cb()
478 if (pan_cb.pcb[i].con_state == PAN_STATE_CONNECTED && in pan_data_ind_cb()
479 pan_cb.pcb[i].handle != handle && in pan_data_ind_cb()
480 pcb->src_uuid == pan_cb.pcb[i].src_uuid) in pan_data_ind_cb()
482 BNEP_Write (pan_cb.pcb[i].handle, dst, p_data, len, protocol, src, ext); in pan_data_ind_cb()
486 if (pan_cb.pan_data_ind_cb) in pan_data_ind_cb()
487 (*pan_cb.pan_data_ind_cb) (pcb->handle, src, dst, protocol, p_data, len, ext, TRUE); in pan_data_ind_cb()
495 if (pan_cb.pcb[i].con_state == PAN_STATE_CONNECTED && in pan_data_ind_cb()
496 pcb->src_uuid == pan_cb.pcb[i].src_uuid) in pan_data_ind_cb()
498 if (memcmp (pan_cb.pcb[i].rem_bda, dst, BD_ADDR_LEN) == 0) in pan_data_ind_cb()
500 BNEP_Write (pan_cb.pcb[i].handle, dst, p_data, len, protocol, src, ext); in pan_data_ind_cb()
512 if (pan_cb.pan_data_ind_cb) in pan_data_ind_cb()
513 (*pan_cb.pan_data_ind_cb) (pcb->handle, src, dst, protocol, p_data, len, ext, forward); in pan_data_ind_cb()
588 if (pan_cb.pcb[i].con_state == PAN_STATE_CONNECTED && in pan_data_buf_ind_cb()
589 pan_cb.pcb[i].handle != handle && in pan_data_buf_ind_cb()
590 pcb->src_uuid == pan_cb.pcb[i].src_uuid) in pan_data_buf_ind_cb()
592 BNEP_Write (pan_cb.pcb[i].handle, dst, p_data, len, protocol, src, ext); in pan_data_buf_ind_cb()
596 if (pan_cb.pan_data_buf_ind_cb) in pan_data_buf_ind_cb()
597 … (*pan_cb.pan_data_buf_ind_cb) (pcb->handle, src, dst, protocol, p_buf, ext, forward); in pan_data_buf_ind_cb()
598 else if (pan_cb.pan_data_ind_cb) in pan_data_buf_ind_cb()
600 … (*pan_cb.pan_data_ind_cb) (pcb->handle, src, dst, protocol, p_data, len, ext, forward); in pan_data_buf_ind_cb()
623 if (pan_cb.pan_data_buf_ind_cb) in pan_data_buf_ind_cb()
624 (*pan_cb.pan_data_buf_ind_cb) (pcb->handle, src, dst, protocol, p_buf, ext, forward); in pan_data_buf_ind_cb()
625 else if (pan_cb.pan_data_ind_cb) in pan_data_buf_ind_cb()
627 (*pan_cb.pan_data_ind_cb) (pcb->handle, src, dst, protocol, p_data, len, ext, forward); in pan_data_buf_ind_cb()
653 if (pan_cb.pan_tx_data_flow_cb) in pan_tx_data_flow_cb()
654 (*pan_cb.pan_tx_data_flow_cb) (handle, event); in pan_tx_data_flow_cb()
688 if (pan_cb.pan_pfilt_ind_cb) in pan_proto_filt_ind_cb()
689 (*pan_cb.pan_pfilt_ind_cb) (handle, indication, result, num_filters, p_filters); in pan_proto_filt_ind_cb()
722 if (pan_cb.pan_mfilt_ind_cb) in pan_mcast_filt_ind_cb()
723 (*pan_cb.pan_mfilt_ind_cb) (handle, indication, result, num_filters, p_filters); in pan_mcast_filt_ind_cb()