Lines Matching defs:pan_cb
40 tPAN_CB pan_cb;
184 handle, pan_cb.role, local_uuid->uu.uuid16, remote_uuid->uu.uuid16, is_role_change?"YES":"NO");
215 if (((!(pan_cb.role & UUID_SERVCLASS_PANU))
217 ((!(pan_cb.role & UUID_SERVCLASS_GN))
219 ((!(pan_cb.role & UUID_SERVCLASS_NAP))
241 if (pan_cb.num_conns > 1 && local_uuid->uu.uuid16 == UUID_SERVCLASS_PANU)
264 if (pan_cb.pan_bridge_req_cb)
265 (*pan_cb.pan_bridge_req_cb) (pcb->rem_bda, FALSE);
269 pan_cb.active_role = req_role;
281 if (pan_cb.num_conns &&
283 pan_cb.active_role == PAN_ROLE_CLIENT))
303 pan_cb.active_role = req_role;
307 pan_cb.num_conns++;
351 if (pan_cb.pan_conn_state_cb)
352 (*pan_cb.pan_conn_state_cb) (pcb->handle, pcb->rem_bda, result, is_role_change, PAN_ROLE_INACTIVE, PAN_ROLE_INACTIVE);
365 pan_cb.active_role = pan_cb.prv_active_role;
367 if ((pcb->src_uuid == UUID_SERVCLASS_NAP) && pan_cb.pan_bridge_req_cb)
368 (*pan_cb.pan_bridge_req_cb) (pcb->rem_bda, TRUE);
376 if ((pcb->src_uuid == UUID_SERVCLASS_NAP) && pan_cb.pan_bridge_req_cb)
377 (*pan_cb.pan_bridge_req_cb) (pcb->rem_bda, FALSE);
380 pan_cb.num_conns--;
387 pan_cb.active_role = PAN_ROLE_CLIENT;
389 pan_cb.active_role = PAN_ROLE_GN_SERVER;
391 pan_cb.active_role = PAN_ROLE_NAP_SERVER;
403 if (pan_cb.pan_conn_state_cb)
404 (*pan_cb.pan_conn_state_cb) (pcb->handle, pcb->rem_bda, PAN_SUCCESS, is_role_change, pan_cb.active_role, peer_role);
407 if (pan_cb.pan_bridge_req_cb && pcb->src_uuid == UUID_SERVCLASS_NAP)
410 (*pan_cb.pan_bridge_req_cb) (pcb->rem_bda, TRUE);
480 if (pan_cb.pcb[i].con_state == PAN_STATE_CONNECTED &&
481 pan_cb.pcb[i].handle != handle &&
482 pcb->src_uuid == pan_cb.pcb[i].src_uuid)
484 BNEP_Write (pan_cb.pcb[i].handle, dst, p_data, len, protocol, src, ext);
488 if (pan_cb.pan_data_ind_cb)
489 (*pan_cb.pan_data_ind_cb) (pcb->handle, src, dst, protocol, p_data, len, ext, TRUE);
497 if (pan_cb.pcb[i].con_state == PAN_STATE_CONNECTED &&
498 pcb->src_uuid == pan_cb.pcb[i].src_uuid)
500 if (memcmp (pan_cb.pcb[i].rem_bda, dst, BD_ADDR_LEN) == 0)
502 BNEP_Write (pan_cb.pcb[i].handle, dst, p_data, len, protocol, src, ext);
514 if (pan_cb.pan_data_ind_cb)
515 (*pan_cb.pan_data_ind_cb) (pcb->handle, src, dst, protocol, p_data, len, ext, forward);
590 if (pan_cb.pcb[i].con_state == PAN_STATE_CONNECTED &&
591 pan_cb.pcb[i].handle != handle &&
592 pcb->src_uuid == pan_cb.pcb[i].src_uuid)
594 BNEP_Write (pan_cb.pcb[i].handle, dst, p_data, len, protocol, src, ext);
598 if (pan_cb.pan_data_buf_ind_cb)
599 (*pan_cb.pan_data_buf_ind_cb) (pcb->handle, src, dst, protocol, p_buf, ext, forward);
600 else if (pan_cb.pan_data_ind_cb)
602 (*pan_cb.pan_data_ind_cb) (pcb->handle, src, dst, protocol, p_data, len, ext, forward);
622 if (pan_cb.pan_data_buf_ind_cb)
623 (*pan_cb.pan_data_buf_ind_cb) (pcb->handle, src, dst, protocol, p_buf, ext, forward);
624 else if (pan_cb.pan_data_ind_cb)
626 (*pan_cb.pan_data_ind_cb) (pcb->handle, src, dst, protocol, p_data, len, ext, forward);
652 if (pan_cb.pan_tx_data_flow_cb)
653 (*pan_cb.pan_tx_data_flow_cb) (handle, event);
688 if (pan_cb.pan_pfilt_ind_cb)
689 (*pan_cb.pan_pfilt_ind_cb) (handle, indication, result, num_filters, p_filters);
726 if (pan_cb.pan_mfilt_ind_cb)
727 (*pan_cb.pan_mfilt_ind_cb) (handle, indication, result, num_filters, p_filters);