Lines Matching refs:pan_cb
39 tPAN_CB pan_cb;
183 handle, pan_cb.role, local_uuid->uu.uuid16, remote_uuid->uu.uuid16, is_role_change?"YES":"NO");
214 if (((!(pan_cb.role & UUID_SERVCLASS_PANU))
216 ((!(pan_cb.role & UUID_SERVCLASS_GN))
218 ((!(pan_cb.role & UUID_SERVCLASS_NAP))
240 if (pan_cb.num_conns > 1 && local_uuid->uu.uuid16 == UUID_SERVCLASS_PANU)
263 if (pan_cb.pan_bridge_req_cb)
264 (*pan_cb.pan_bridge_req_cb) (pcb->rem_bda, FALSE);
268 pan_cb.active_role = req_role;
280 if (pan_cb.num_conns &&
282 pan_cb.active_role == PAN_ROLE_CLIENT))
302 pan_cb.active_role = req_role;
306 pan_cb.num_conns++;
349 if (pan_cb.pan_conn_state_cb)
350 (*pan_cb.pan_conn_state_cb) (pcb->handle, pcb->rem_bda, result, is_role_change, PAN_ROLE_INACTIVE, PAN_ROLE_INACTIVE);
363 pan_cb.active_role = pan_cb.prv_active_role;
365 if ((pcb->src_uuid == UUID_SERVCLASS_NAP) && pan_cb.pan_bridge_req_cb)
366 (*pan_cb.pan_bridge_req_cb) (pcb->rem_bda, TRUE);
374 if ((pcb->src_uuid == UUID_SERVCLASS_NAP) && pan_cb.pan_bridge_req_cb)
375 (*pan_cb.pan_bridge_req_cb) (pcb->rem_bda, FALSE);
378 pan_cb.num_conns--;
385 pan_cb.active_role = PAN_ROLE_CLIENT;
387 pan_cb.active_role = PAN_ROLE_GN_SERVER;
389 pan_cb.active_role = PAN_ROLE_NAP_SERVER;
401 if (pan_cb.pan_conn_state_cb)
402 (*pan_cb.pan_conn_state_cb) (pcb->handle, pcb->rem_bda, PAN_SUCCESS, is_role_change, pan_cb.active_role, peer_role);
405 if (pan_cb.pan_bridge_req_cb && pcb->src_uuid == UUID_SERVCLASS_NAP)
408 (*pan_cb.pan_bridge_req_cb) (pcb->rem_bda, TRUE);
478 if (pan_cb.pcb[i].con_state == PAN_STATE_CONNECTED &&
479 pan_cb.pcb[i].handle != handle &&
480 pcb->src_uuid == pan_cb.pcb[i].src_uuid)
482 BNEP_Write (pan_cb.pcb[i].handle, dst, p_data, len, protocol, src, ext);
486 if (pan_cb.pan_data_ind_cb)
487 (*pan_cb.pan_data_ind_cb) (pcb->handle, src, dst, protocol, p_data, len, ext, TRUE);
495 if (pan_cb.pcb[i].con_state == PAN_STATE_CONNECTED &&
496 pcb->src_uuid == pan_cb.pcb[i].src_uuid)
498 if (memcmp (pan_cb.pcb[i].rem_bda, dst, BD_ADDR_LEN) == 0)
500 BNEP_Write (pan_cb.pcb[i].handle, dst, p_data, len, protocol, src, ext);
512 if (pan_cb.pan_data_ind_cb)
513 (*pan_cb.pan_data_ind_cb) (pcb->handle, src, dst, protocol, p_data, len, ext, forward);
588 if (pan_cb.pcb[i].con_state == PAN_STATE_CONNECTED &&
589 pan_cb.pcb[i].handle != handle &&
590 pcb->src_uuid == pan_cb.pcb[i].src_uuid)
592 BNEP_Write (pan_cb.pcb[i].handle, dst, p_data, len, protocol, src, ext);
596 if (pan_cb.pan_data_buf_ind_cb)
597 (*pan_cb.pan_data_buf_ind_cb) (pcb->handle, src, dst, protocol, p_buf, ext, forward);
598 else if (pan_cb.pan_data_ind_cb)
600 (*pan_cb.pan_data_ind_cb) (pcb->handle, src, dst, protocol, p_data, len, ext, forward);
620 if (pan_cb.pan_data_buf_ind_cb)
621 (*pan_cb.pan_data_buf_ind_cb) (pcb->handle, src, dst, protocol, p_buf, ext, forward);
622 else if (pan_cb.pan_data_ind_cb)
624 (*pan_cb.pan_data_ind_cb) (pcb->handle, src, dst, protocol, p_data, len, ext, forward);
650 if (pan_cb.pan_tx_data_flow_cb)
651 (*pan_cb.pan_tx_data_flow_cb) (handle, event);
686 if (pan_cb.pan_pfilt_ind_cb)
687 (*pan_cb.pan_pfilt_ind_cb) (handle, indication, result, num_filters, p_filters);
724 if (pan_cb.pan_mfilt_ind_cb)
725 (*pan_cb.pan_mfilt_ind_cb) (handle, indication, result, num_filters, p_filters);