Lines Matching refs:pan_cb
64 pan_cb.pan_conn_state_cb = p_register->pan_conn_state_cb; in PAN_Register()
65 pan_cb.pan_bridge_req_cb = p_register->pan_bridge_req_cb; in PAN_Register()
66 pan_cb.pan_data_buf_ind_cb = p_register->pan_data_buf_ind_cb; in PAN_Register()
67 pan_cb.pan_data_ind_cb = p_register->pan_data_ind_cb; in PAN_Register()
68 pan_cb.pan_pfilt_ind_cb = p_register->pan_pfilt_ind_cb; in PAN_Register()
69 pan_cb.pan_mfilt_ind_cb = p_register->pan_mfilt_ind_cb; in PAN_Register()
70 pan_cb.pan_tx_data_flow_cb = p_register->pan_tx_data_flow_cb; in PAN_Register()
91 pan_cb.pan_bridge_req_cb = NULL; in PAN_Deregister()
92 pan_cb.pan_data_buf_ind_cb = NULL; in PAN_Deregister()
93 pan_cb.pan_data_ind_cb = NULL; in PAN_Deregister()
94 pan_cb.pan_conn_state_cb = NULL; in PAN_Deregister()
95 pan_cb.pan_pfilt_ind_cb = NULL; in PAN_Deregister()
96 pan_cb.pan_mfilt_ind_cb = NULL; in PAN_Deregister()
146 if (pan_cb.role == role) { in PAN_SetRole()
167 if (pan_cb.pan_nap_sdp_handle != 0) in PAN_SetRole()
168 SDP_DeleteRecord(pan_cb.pan_nap_sdp_handle); in PAN_SetRole()
170 pan_cb.pan_nap_sdp_handle = in PAN_SetRole()
176 else if (pan_cb.role & PAN_ROLE_NAP_SERVER) { in PAN_SetRole()
177 if (pan_cb.pan_nap_sdp_handle != 0) { in PAN_SetRole()
178 SDP_DeleteRecord(pan_cb.pan_nap_sdp_handle); in PAN_SetRole()
179 pan_cb.pan_nap_sdp_handle = 0; in PAN_SetRole()
194 if (pan_cb.pan_gn_sdp_handle != 0) in PAN_SetRole()
195 SDP_DeleteRecord(pan_cb.pan_gn_sdp_handle); in PAN_SetRole()
197 pan_cb.pan_gn_sdp_handle = in PAN_SetRole()
202 else if (pan_cb.role & PAN_ROLE_GN_SERVER) { in PAN_SetRole()
203 if (pan_cb.pan_gn_sdp_handle != 0) { in PAN_SetRole()
204 SDP_DeleteRecord(pan_cb.pan_gn_sdp_handle); in PAN_SetRole()
205 pan_cb.pan_gn_sdp_handle = 0; in PAN_SetRole()
219 if (pan_cb.pan_user_sdp_handle != 0) in PAN_SetRole()
220 SDP_DeleteRecord(pan_cb.pan_user_sdp_handle); in PAN_SetRole()
222 pan_cb.pan_user_sdp_handle = pan_register_with_sdp( in PAN_SetRole()
228 else if (pan_cb.role & PAN_ROLE_CLIENT) { in PAN_SetRole()
229 if (pan_cb.pan_user_sdp_handle != 0) { in PAN_SetRole()
230 SDP_DeleteRecord(pan_cb.pan_user_sdp_handle); in PAN_SetRole()
231 pan_cb.pan_user_sdp_handle = 0; in PAN_SetRole()
240 pan_cb.role = role; in PAN_SetRole()
280 if (!(pan_cb.role & src_role)) { in PAN_Connect()
301 if ((pan_cb.num_conns > 1) || (pan_cb.num_conns && (!pcb))) { in PAN_Connect()
325 if (pan_cb.num_conns && pan_cb.active_role == PAN_ROLE_CLIENT && !pcb) { in PAN_Connect()
356 pan_cb.num_conns++; in PAN_Connect()
378 pan_cb.prv_active_role = pan_cb.active_role; in PAN_Connect()
379 pan_cb.active_role = src_role; in PAN_Connect()
409 if (pcb->con_state != PAN_STATE_IDLE) pan_cb.num_conns--; in PAN_Disconnect()
411 if (pan_cb.pan_bridge_req_cb && pcb->src_uuid == UUID_SERVCLASS_NAP) in PAN_Disconnect()
412 (*pan_cb.pan_bridge_req_cb)(pcb->rem_bda, false); in PAN_Disconnect()
451 if (pan_cb.role == PAN_ROLE_INACTIVE || !pan_cb.num_conns) { in PAN_Write()
463 if (pan_cb.pcb[i].con_state == PAN_STATE_CONNECTED) in PAN_Write()
464 BNEP_Write(pan_cb.pcb[i].handle, dst, p_data, len, protocol, &src, ext); in PAN_Write()
508 if (pan_cb.role == PAN_ROLE_INACTIVE || (!(pan_cb.num_conns))) { in PAN_WriteBuf()
518 if (pan_cb.pcb[i].con_state == PAN_STATE_CONNECTED) in PAN_WriteBuf()
519 BNEP_Write(pan_cb.pcb[i].handle, dst, data, p_buf->len, protocol, &src, in PAN_WriteBuf()
527 if (pan_cb.active_role == PAN_ROLE_CLIENT) { in PAN_WriteBuf()
530 if (pan_cb.pcb[i].con_state == PAN_STATE_CONNECTED && in PAN_WriteBuf()
531 pan_cb.pcb[i].src_uuid == UUID_SERVCLASS_PANU) in PAN_WriteBuf()
542 BNEP_WriteBuf(pan_cb.pcb[i].handle, dst, p_buf, protocol, &src, ext); in PAN_WriteBuf()
677 pan_cb.trace_level = new_level; in PAN_SetTraceLevel()
681 return (pan_cb.trace_level); in PAN_SetTraceLevel()
696 memset(&pan_cb, 0, sizeof(tPAN_CB)); in PAN_Init()
699 pan_cb.trace_level = PAN_INITIAL_TRACE_LEVEL; in PAN_Init()
701 pan_cb.trace_level = BT_TRACE_LEVEL_NONE; /* No traces */ in PAN_Init()