Lines Matching refs:pan_cb
63 pan_cb.pan_conn_state_cb = p_register->pan_conn_state_cb;
64 pan_cb.pan_bridge_req_cb = p_register->pan_bridge_req_cb;
65 pan_cb.pan_data_buf_ind_cb = p_register->pan_data_buf_ind_cb;
66 pan_cb.pan_data_ind_cb = p_register->pan_data_ind_cb;
67 pan_cb.pan_pfilt_ind_cb = p_register->pan_pfilt_ind_cb;
68 pan_cb.pan_mfilt_ind_cb = p_register->pan_mfilt_ind_cb;
69 pan_cb.pan_tx_data_flow_cb = p_register->pan_tx_data_flow_cb;
93 pan_cb.pan_bridge_req_cb = NULL;
94 pan_cb.pan_data_buf_ind_cb = NULL;
95 pan_cb.pan_data_ind_cb = NULL;
96 pan_cb.pan_conn_state_cb = NULL;
97 pan_cb.pan_pfilt_ind_cb = NULL;
98 pan_cb.pan_mfilt_ind_cb = NULL;
154 if (pan_cb.role == role)
177 if (pan_cb.pan_nap_sdp_handle != 0)
178 SDP_DeleteRecord (pan_cb.pan_nap_sdp_handle);
180 pan_cb.pan_nap_sdp_handle = pan_register_with_sdp (UUID_SERVCLASS_NAP, p_sec[2], p_nap_name, p_desc);
186 else if (pan_cb.role & PAN_ROLE_NAP_SERVER)
188 if (pan_cb.pan_nap_sdp_handle != 0)
190 SDP_DeleteRecord (pan_cb.pan_nap_sdp_handle);
191 pan_cb.pan_nap_sdp_handle = 0;
209 if (pan_cb.pan_gn_sdp_handle != 0)
210 SDP_DeleteRecord (pan_cb.pan_gn_sdp_handle);
212 pan_cb.pan_gn_sdp_handle = pan_register_with_sdp (UUID_SERVCLASS_GN, p_sec[1], p_gn_name, p_desc);
218 else if (pan_cb.role & PAN_ROLE_GN_SERVER)
220 if (pan_cb.pan_gn_sdp_handle != 0)
222 SDP_DeleteRecord (pan_cb.pan_gn_sdp_handle);
223 pan_cb.pan_gn_sdp_handle = 0;
240 if (pan_cb.pan_user_sdp_handle != 0)
241 SDP_DeleteRecord (pan_cb.pan_user_sdp_handle);
243 pan_cb.pan_user_sdp_handle = pan_register_with_sdp (UUID_SERVCLASS_PANU, p_sec[0], p_user_name, p_desc);
249 else if (pan_cb.role & PAN_ROLE_CLIENT)
251 if (pan_cb.pan_user_sdp_handle != 0)
253 SDP_DeleteRecord (pan_cb.pan_user_sdp_handle);
254 pan_cb.pan_user_sdp_handle = 0;
266 pan_cb.role = role;
311 if (!(pan_cb.role & src_role))
331 if ((pan_cb.num_conns > 1) || (pan_cb.num_conns && (!pcb)))
363 if (pan_cb.num_conns && pan_cb.active_role == PAN_ROLE_CLIENT && !pcb)
404 pan_cb.num_conns++;
432 pan_cb.prv_active_role = pan_cb.active_role;
433 pan_cb.active_role = src_role;
469 pan_cb.num_conns--;
471 if (pan_cb.pan_bridge_req_cb && pcb->src_uuid == UUID_SERVCLASS_NAP)
472 (*pan_cb
517 if (pan_cb.role == PAN_ROLE_INACTIVE || (!(pan_cb.num_conns)))
528 if (pan_cb.pcb[i].con_state == PAN_STATE_CONNECTED)
529 BNEP_Write (pan_cb.pcb[i].handle, dst, p_data, len, protocol, src, ext);
535 if (pan_cb.active_role == PAN_ROLE_CLIENT)
540 if (pan_cb.pcb[i].con_state == PAN_STATE_CONNECTED &&
541 pan_cb.pcb[i].src_uuid == UUID_SERVCLASS_PANU)
551 result = BNEP_Write (pan_cb.pcb[i].handle, dst, p_data, len, protocol, src, ext);
639 if (pan_cb.role == PAN_ROLE_INACTIVE || (!(pan_cb.num_conns)))
647 if (pan_cb.active_role == PAN_ROLE_CLIENT)
652 if (pan_cb.pcb[i].con_state == PAN_STATE_CONNECTED &&
653 pan_cb.pcb[i].src_uuid == UUID_SERVCLASS_PANU)
664 result = BNEP_WriteBuf (pan_cb.pcb[i].handle, dst, p_buf, protocol, src, ext);
824 pan_cb.trace_level = new_level;
828 return (pan_cb.trace_level);
844 memset (&pan_cb, 0, sizeof (tPAN_CB));
847 pan_cb.trace_level = PAN_INITIAL_TRACE_LEVEL;
849 pan_cb.trace_level = BT_TRACE_LEVEL_NONE; /* No traces */