Lines Matching refs:handle

85 ** Parameters:      handle          - handle for the connection
94 void pan_conn_ind_cb (UINT16 handle,
145 BNEP_ConnectResp (handle, BNEP_CONN_FAILED_SRC_UUID);
179 BNEP_ConnectResp (handle, BNEP_CONN_FAILED_DST_UUID);
183 PAN_TRACE_EVENT ("pan_conn_ind_cb - for handle %d, current role %d, dst uuid 0x%x, src uuid 0x%x, role change %s",
184 handle, pan_cb.role, local_uuid->uu.uuid16, remote_uuid->uu.uuid16, is_role_change?"YES":"NO");
189 BNEP_ConnectResp (handle, BNEP_CONN_FAILED_UUID_SIZE);
200 BNEP_ConnectResp (handle, BNEP_CONN_FAILED_SRC_UUID);
210 BNEP_ConnectResp (handle, BNEP_CONN_FAILED_DST_UUID);
223 BNEP_ConnectResp (handle, BNEP_CONN_FAILED_DST_UUID);
238 pcb = pan_get_pcb_by_handle (handle);
247 BNEP_ConnectResp (handle, BNEP_CONN_FAILED_DST_UUID);
272 BNEP_ConnectResp (handle, BNEP_SUCCESS);
286 BNEP_ConnectResp (handle, BNEP_CONN_FAILED_DST_UUID);
292 PAN_TRACE_DEBUG ("New connection indication for handle %d", handle);
293 pcb = pan_allocate_pcb (p_bda, handle);
297 BNEP_ConnectResp (handle, BNEP_CONN_FAILED);
309 BNEP_ConnectResp (handle, BNEP_SUCCESS);
322 ** Parameters: handle - handle for the connection given in the connection
333 void pan_connect_state_cb (UINT16 handle, BD_ADDR rem_bda, tBNEP_RESULT result, BOOLEAN is_role_change)
339 PAN_TRACE_EVENT ("pan_connect_state_cb - for handle %d, result %d", handle, result);
340 pcb = pan_get_pcb_by_handle (handle);
343 PAN_TRACE_ERROR ("PAN State change indication for wrong handle %d", handle);
352 (*pan_cb.pan_conn_state_cb) (pcb->handle, pcb->rem_bda, result, is_role_change, PAN_ROLE_INACTIVE, PAN_ROLE_INACTIVE);
404 (*pan_cb.pan_conn_state_cb) (pcb->handle, pcb->rem_bda, PAN_SUCCESS, is_role_change, pan_cb.active_role, peer_role);
423 ** Parameters: handle - handle for the connection
435 void pan_data_ind_cb (UINT16 handle,
458 PAN_TRACE_EVENT ("pan_data_ind_cb - for handle %d", handle);
459 pcb = pan_get_pcb_by_handle (handle);
462 PAN_TRACE_ERROR ("PAN Data indication for wrong handle %d", handle);
468 PAN_TRACE_ERROR ("PAN Data indication in wrong state %d for handle %d",
469 pcb->con_state, handle);
476 PAN_TRACE_DEBUG ("PAN received broadcast packet on handle %d, src uuid 0x%x",
477 handle, pcb->src_uuid);
481 pan_cb.pcb[i].handle != handle &&
484 BNEP_Write (pan_cb.pcb[i].handle, dst, p_data, len, protocol, src, ext);
489 (*pan_cb.pan_data_ind_cb) (pcb->handle, src, dst, protocol, p_data, len, ext, TRUE);
502 BNEP_Write (pan_cb.pcb[i].handle, dst, p_data, len, protocol, src, ext);
515 (*pan_cb.pan_data_ind_cb) (pcb->handle, src, dst, protocol, p_data, len, ext, forward);
529 ** Parameters: handle - handle for the connection
540 void pan_data_buf_ind_cb (UINT16 handle,
554 pcb = pan_get_pcb_by_handle (handle);
557 PAN_TRACE_ERROR ("PAN Data buffer indication for wrong handle %d", handle);
564 PAN_TRACE_ERROR ("PAN Data indication in wrong state %d for handle %d",
565 pcb->con_state, handle);
573 PAN_TRACE_EVENT ("pan_data_buf_ind_cb - for handle %d, protocol 0x%x, length %d, ext %d",
574 handle, protocol, len, ext);
586 PAN_TRACE_DEBUG ("PAN received broadcast packet on handle %d, src uuid 0x%x",
587 handle, pcb->src_uuid);
591 pan_cb.pcb[i].handle != handle &&
594 BNEP_Write (pan_cb.pcb[i].handle, dst, p_data, len, protocol, src, ext);
599 (*pan_cb.pan_data_buf_ind_cb) (pcb->handle, src, dst, protocol, p_buf, ext, forward);
602 (*pan_cb.pan_data_ind_cb) (pcb->handle, src, dst, protocol, p_data, len, ext, forward);
614 result = BNEP_WriteBuf (dst_pcb->handle, dst, p_buf, protocol, src, ext);
616 PAN_TRACE_ERROR ("Failed to write data for PAN connection handle %d", dst_pcb->handle);
623 (*pan_cb.pan_data_buf_ind_cb) (pcb->handle, src, dst, protocol, p_buf, ext, forward);
626 (*pan_cb.pan_data_ind_cb) (pcb->handle, src, dst, protocol, p_data, len, ext, forward);
642 ** Parameters: handle - handle for the connection
648 void pan_tx_data_flow_cb (UINT16 handle,
653 (*pan_cb.pan_tx_data_flow_cb) (handle, event);
667 ** Parameters: handle - handle for the connection
678 void pan_proto_filt_ind_cb (UINT16 handle,
685 PAN_TRACE_EVENT ("pan_proto_filt_ind_cb - called for handle %d with ind %d, result %d, num %d",
686 handle, indication, result, num_filters);
689 (*pan_cb.pan_pfilt_ind_cb) (handle, indication, result, num_filters, p_filters);
705 ** Parameters: handle - handle for the connection
716 void pan_mcast_filt_ind_cb (UINT16 handle,
723 PAN_TRACE_EVENT ("pan_mcast_filt_ind_cb - called for handle %d with ind %d, result %d, num %d",
724 handle, indication, result, num_filters);
727 (*pan_cb.pan_mfilt_ind_cb) (handle, indication, result, num_filters, p_filters);