Lines Matching refs:role
134 tPAN_RESULT PAN_SetRole (UINT8 role, in PAN_SetRole() argument
147 if ((!(role & (PAN_ROLE_CLIENT | PAN_ROLE_GN_SERVER | PAN_ROLE_NAP_SERVER))) && in PAN_SetRole()
148 role != PAN_ROLE_INACTIVE) in PAN_SetRole()
150 PAN_TRACE_ERROR ("PAN role %d is invalid", role); in PAN_SetRole()
155 if (pan_cb.role == role) in PAN_SetRole()
157 PAN_TRACE_EVENT ("PAN role already was set to: %d", role); in PAN_SetRole()
167 PAN_TRACE_API ("PAN_SetRole() called with role 0x%x", role); in PAN_SetRole()
173 if (role & PAN_ROLE_NAP_SERVER) in PAN_SetRole()
185 else if (pan_cb.role & PAN_ROLE_NAP_SERVER) in PAN_SetRole()
201 if (role & PAN_ROLE_GN_SERVER) in PAN_SetRole()
213 else if (pan_cb.role & PAN_ROLE_GN_SERVER) in PAN_SetRole()
229 if (role & PAN_ROLE_CLIENT) in PAN_SetRole()
240 else if (pan_cb.role & PAN_ROLE_CLIENT) in PAN_SetRole()
252 if (role == PAN_ROLE_INACTIVE) in PAN_SetRole()
255 pan_cb.role = role; in PAN_SetRole()
256 PAN_TRACE_EVENT ("PAN role set to: %d", role); in PAN_SetRole()
299 if (!(pan_cb.role & src_role)) in PAN_Connect()
494 if (pan_cb.role == PAN_ROLE_INACTIVE || !pan_cb.num_conns) { in PAN_Write()
550 if (pan_cb.role == PAN_ROLE_INACTIVE || (!(pan_cb.num_conns))) in PAN_WriteBuf()