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()
94 pan_cb.pan_bridge_req_cb = NULL; in PAN_Deregister()
95 pan_cb.pan_data_buf_ind_cb = NULL; in PAN_Deregister()
96 pan_cb.pan_data_ind_cb = NULL; in PAN_Deregister()
97 pan_cb.pan_conn_state_cb = NULL; in PAN_Deregister()
98 pan_cb.pan_pfilt_ind_cb = NULL; in PAN_Deregister()
99 pan_cb.pan_mfilt_ind_cb = NULL; in PAN_Deregister()
155 if (pan_cb.role == role) in PAN_SetRole()
178 if (pan_cb.pan_nap_sdp_handle != 0) in PAN_SetRole()
179 SDP_DeleteRecord (pan_cb.pan_nap_sdp_handle); in PAN_SetRole()
181pan_cb.pan_nap_sdp_handle = pan_register_with_sdp (UUID_SERVCLASS_NAP, p_sec[2], p_nap_name, p_des… in PAN_SetRole()
185 else if (pan_cb.role & PAN_ROLE_NAP_SERVER) in PAN_SetRole()
187 if (pan_cb.pan_nap_sdp_handle != 0) in PAN_SetRole()
189 SDP_DeleteRecord (pan_cb.pan_nap_sdp_handle); in PAN_SetRole()
190 pan_cb.pan_nap_sdp_handle = 0; in PAN_SetRole()
206 if (pan_cb.pan_gn_sdp_handle != 0) in PAN_SetRole()
207 SDP_DeleteRecord (pan_cb.pan_gn_sdp_handle); in PAN_SetRole()
209pan_cb.pan_gn_sdp_handle = pan_register_with_sdp (UUID_SERVCLASS_GN, p_sec[1], p_gn_name, p_desc); in PAN_SetRole()
213 else if (pan_cb.role & PAN_ROLE_GN_SERVER) in PAN_SetRole()
215 if (pan_cb.pan_gn_sdp_handle != 0) in PAN_SetRole()
217 SDP_DeleteRecord (pan_cb.pan_gn_sdp_handle); in PAN_SetRole()
218 pan_cb.pan_gn_sdp_handle = 0; in PAN_SetRole()
233 if (pan_cb.pan_user_sdp_handle != 0) in PAN_SetRole()
234 SDP_DeleteRecord (pan_cb.pan_user_sdp_handle); in PAN_SetRole()
236pan_cb.pan_user_sdp_handle = pan_register_with_sdp (UUID_SERVCLASS_PANU, p_sec[0], p_user_name, p_… in PAN_SetRole()
240 else if (pan_cb.role & PAN_ROLE_CLIENT) in PAN_SetRole()
242 if (pan_cb.pan_user_sdp_handle != 0) in PAN_SetRole()
244 SDP_DeleteRecord (pan_cb.pan_user_sdp_handle); in PAN_SetRole()
245 pan_cb.pan_user_sdp_handle = 0; in PAN_SetRole()
255 pan_cb.role = role; in PAN_SetRole()
299 if (!(pan_cb.role & src_role)) in PAN_Connect()
319 if ((pan_cb.num_conns > 1) || (pan_cb.num_conns && (!pcb))) in PAN_Connect()
348 if (pan_cb.num_conns && pan_cb.active_role == PAN_ROLE_CLIENT && !pcb) in PAN_Connect()
387 pan_cb.num_conns++; in PAN_Connect()
415 pan_cb.prv_active_role = pan_cb.active_role; in PAN_Connect()
416 pan_cb.active_role = src_role; in PAN_Connect()
452 pan_cb.num_conns--; in PAN_Disconnect()
454 if (pan_cb.pan_bridge_req_cb && pcb->src_uuid == UUID_SERVCLASS_NAP) in PAN_Disconnect()
455 (*pan_cb.pan_bridge_req_cb) (pcb->rem_bda, FALSE); in PAN_Disconnect()
494 if (pan_cb.role == PAN_ROLE_INACTIVE || !pan_cb.num_conns) { in PAN_Write()
506 if (pan_cb.pcb[i].con_state == PAN_STATE_CONNECTED) in PAN_Write()
507 BNEP_Write (pan_cb.pcb[i].handle, dst, p_data, len, protocol, src, ext); in PAN_Write()
550 if (pan_cb.role == PAN_ROLE_INACTIVE || (!(pan_cb.num_conns))) in PAN_WriteBuf()
562 if (pan_cb.pcb[i].con_state == PAN_STATE_CONNECTED) in PAN_WriteBuf()
563 BNEP_Write(pan_cb.pcb[i].handle, dst, data, p_buf->len, protocol, src, ext); in PAN_WriteBuf()
570 if (pan_cb.active_role == PAN_ROLE_CLIENT) in PAN_WriteBuf()
575 if (pan_cb.pcb[i].con_state == PAN_STATE_CONNECTED && in PAN_WriteBuf()
576 pan_cb.pcb[i].src_uuid == UUID_SERVCLASS_PANU) in PAN_WriteBuf()
587 result = BNEP_WriteBuf (pan_cb.pcb[i].handle, dst, p_buf, protocol, src, ext); in PAN_WriteBuf()
739 pan_cb.trace_level = new_level; in PAN_SetTraceLevel()
743 return (pan_cb.trace_level); in PAN_SetTraceLevel()
759 memset (&pan_cb, 0, sizeof (tPAN_CB)); in PAN_Init()
762 pan_cb.trace_level = PAN_INITIAL_TRACE_LEVEL; in PAN_Init()
764 pan_cb.trace_level = BT_TRACE_LEVEL_NONE; /* No traces */ in PAN_Init()