Lines Matching refs:switch_role_state
260 p->switch_role_state = BTM_ACL_SWKEY_STATE_IDLE; in btm_acl_created()
648 if (p->switch_role_state != BTM_ACL_SWKEY_STATE_IDLE) in BTM_SwitchRole()
651 p->switch_role_state); in BTM_SwitchRole()
667 p->switch_role_state = BTM_ACL_SWKEY_STATE_MODE_CHANGE; in BTM_SwitchRole()
686 p->switch_role_state = BTM_ACL_SWKEY_STATE_ENCRYPTION_OFF; in BTM_SwitchRole()
693 p->switch_role_state = BTM_ACL_SWKEY_STATE_IN_PROGRESS; in BTM_SwitchRole()
744 if (p->switch_role_state == BTM_ACL_SWKEY_STATE_ENCRYPTION_OFF) in btm_acl_encrypt_change()
749 p->switch_role_state = BTM_ACL_SWKEY_STATE_IDLE; in btm_acl_encrypt_change()
754 p->switch_role_state = BTM_ACL_SWKEY_STATE_SWITCHING; in btm_acl_encrypt_change()
760 p->switch_role_state = BTM_ACL_SWKEY_STATE_IDLE; in btm_acl_encrypt_change()
774 else if (p->switch_role_state == BTM_ACL_SWKEY_STATE_ENCRYPTION_ON) in btm_acl_encrypt_change()
776 p->switch_role_state = BTM_ACL_SWKEY_STATE_IDLE; in btm_acl_encrypt_change()
790 evt.new_role, evt.hci_status, p->switch_role_state); in btm_acl_encrypt_change()
1498 if (p->switch_role_state == BTM_ACL_SWKEY_STATE_SWITCHING) in btm_acl_role_changed()
1503 p->switch_role_state = BTM_ACL_SWKEY_STATE_ENCRYPTION_ON; in btm_acl_role_changed()
1510 if (p->switch_role_state == BTM_ACL_SWKEY_STATE_IN_PROGRESS) in btm_acl_role_changed()
1512 p->switch_role_state = BTM_ACL_SWKEY_STATE_IDLE; in btm_acl_role_changed()
1530 p_data->role, p_data->hci_status, p->switch_role_state); in btm_acl_role_changed()
2425 if (p->switch_role_state == BTM_ACL_SWKEY_STATE_MODE_CHANGE) in btm_cont_rswitch()
2435 if (p->switch_role_state == BTM_ACL_SWKEY_STATE_MODE_CHANGE) in btm_cont_rswitch()
2436 p->switch_role_state = BTM_ACL_SWKEY_STATE_ENCRYPTION_OFF; in btm_cont_rswitch()
2441 if (p->switch_role_state == BTM_ACL_SWKEY_STATE_MODE_CHANGE) in btm_cont_rswitch()
2448 if (p->switch_role_state == BTM_ACL_SWKEY_STATE_MODE_CHANGE) in btm_cont_rswitch()
2450 p->switch_role_state = BTM_ACL_SWKEY_STATE_IN_PROGRESS; in btm_cont_rswitch()
2461 p->switch_role_state = BTM_ACL_SWKEY_STATE_IDLE; in btm_cont_rswitch()