Lines Matching refs:handle
84 ** Parameters: handle - handle for the connection
93 void pan_conn_ind_cb (UINT16 handle,
144 BNEP_ConnectResp (handle, BNEP_CONN_FAILED_SRC_UUID);
178 BNEP_ConnectResp (handle, BNEP_CONN_FAILED_DST_UUID);
182 PAN_TRACE_EVENT5 ("pan_conn_ind_cb - for handle %d, current role %d, dst uuid 0x%x, src uuid 0x%x, role change %s",
183 handle, pan_cb.role, local_uuid->uu.uuid16, remote_uuid->uu.uuid16, is_role_change?"YES":"NO");
188 BNEP_ConnectResp (handle, BNEP_CONN_FAILED_UUID_SIZE);
199 BNEP_ConnectResp (handle, BNEP_CONN_FAILED_SRC_UUID);
209 BNEP_ConnectResp (handle, BNEP_CONN_FAILED_DST_UUID);
222 BNEP_ConnectResp (handle, BNEP_CONN_FAILED_DST_UUID);
237 pcb = pan_get_pcb_by_handle (handle);
246 BNEP_ConnectResp (handle, BNEP_CONN_FAILED_DST_UUID);
271 BNEP_ConnectResp (handle, BNEP_SUCCESS);
285 BNEP_ConnectResp (handle, BNEP_CONN_FAILED_DST_UUID);
291 PAN_TRACE_DEBUG1 ("New connection indication for handle %d", handle);
292 pcb = pan_allocate_pcb (p_bda, handle);
296 BNEP_ConnectResp (handle, BNEP_CONN_FAILED);
308 BNEP_ConnectResp (handle, BNEP_SUCCESS);
321 ** Parameters: handle - handle for the connection given in the connection
332 void pan_connect_state_cb (UINT16 handle, BD_ADDR rem_bda, tBNEP_RESULT result, BOOLEAN is_role_change)
337 PAN_TRACE_EVENT2 ("pan_connect_state_cb - for handle %d, result %d", handle, result);
338 pcb = pan_get_pcb_by_handle (handle);
341 PAN_TRACE_ERROR1 ("PAN State change indication for wrong handle %d", handle);
350 (*pan_cb.pan_conn_state_cb) (pcb->handle, pcb->rem_bda, result, is_role_change, PAN_ROLE_INACTIVE, PAN_ROLE_INACTIVE);
402 (*pan_cb.pan_conn_state_cb) (pcb->handle, pcb->rem_bda, PAN_SUCCESS, is_role_change, pan_cb.active_role, peer_role);
421 ** Parameters: handle - handle for the connection
433 void pan_data_ind_cb (UINT16 handle,
456 PAN_TRACE_EVENT1 ("pan_data_ind_cb - for handle %d", handle);
457 pcb = pan_get_pcb_by_handle (handle);
460 PAN_TRACE_ERROR1 ("PAN Data indication for wrong handle %d", handle);
466 PAN_TRACE_ERROR2 ("PAN Data indication in wrong state %d for handle %d",
467 pcb->con_state, handle);
474 PAN_TRACE_DEBUG2 ("PAN received broadcast packet on handle %d, src uuid 0x%x",
475 handle, pcb->src_uuid);
479 pan_cb.pcb[i].handle != handle &&
482 BNEP_Write (pan_cb.pcb[i].handle, dst, p_data, len, protocol, src, ext);
487 (*pan_cb.pan_data_ind_cb) (pcb->handle, src, dst, protocol, p_data, len, ext, TRUE);
500 BNEP_Write (pan_cb.pcb[i].handle, dst, p_data, len, protocol, src, ext);
513 (*pan_cb.pan_data_ind_cb) (pcb->handle, src, dst, protocol, p_data, len, ext, forward);
527 ** Parameters: handle - handle for the connection
538 void pan_data_buf_ind_cb (UINT16 handle,
552 pcb = pan_get_pcb_by_handle (handle);
555 PAN_TRACE_ERROR1 ("PAN Data buffer indication for wrong handle %d", handle);
562 PAN_TRACE_ERROR2 ("PAN Data indication in wrong state %d for handle %d",
563 pcb->con_state, handle);
571 PAN_TRACE_EVENT4 ("pan_data_buf_ind_cb - for handle %d, protocol 0x%x, length %d, ext %d",
572 handle, protocol, len, ext);
584 PAN_TRACE_DEBUG2 ("PAN received broadcast packet on handle %d, src uuid 0x%x",
585 handle, pcb->src_uuid);
589 pan_cb.pcb[i].handle != handle &&
592 BNEP_Write (pan_cb.pcb[i].handle, dst, p_data, len, protocol, src, ext);
597 (*pan_cb.pan_data_buf_ind_cb) (pcb->handle, src, dst, protocol, p_buf, ext, forward);
600 (*pan_cb.pan_data_ind_cb) (pcb->handle, src, dst, protocol, p_data, len, ext, forward);
612 result = BNEP_WriteBuf (dst_pcb->handle, dst, p_buf, protocol, src, ext);
614 PAN_TRACE_ERROR1 ("Failed to write data for PAN connection handle %d", dst_pcb->handle);
621 (*pan_cb.pan_data_buf_ind_cb) (pcb->handle, src, dst, protocol, p_buf, ext, forward);
624 (*pan_cb.pan_data_ind_cb) (pcb->handle, src, dst, protocol, p_data, len, ext, forward);
640 ** Parameters: handle - handle for the connection
646 void pan_tx_data_flow_cb (UINT16 handle,
651 (*pan_cb.pan_tx_data_flow_cb) (handle, event);
665 ** Parameters: handle - handle for the connection
676 void pan_proto_filt_ind_cb (UINT16 handle,
683 PAN_TRACE_EVENT4 ("pan_proto_filt_ind_cb - called for handle %d with ind %d, result %d, num %d",
684 handle, indication, result, num_filters);
687 (*pan_cb.pan_pfilt_ind_cb) (handle, indication, result, num_filters, p_filters);
703 ** Parameters: handle - handle for the connection
714 void pan_mcast_filt_ind_cb (UINT16 handle,
721 PAN_TRACE_EVENT4 ("pan_mcast_filt_ind_cb - called for handle %d with ind %d, result %d, num %d",
722 handle, indication, result, num_filters);
725 (*pan_cb.pan_mfilt_ind_cb) (handle, indication, result, num_filters, p_filters);