Lines Matching refs:switch_role_state
263 p->switch_role_state = BTM_ACL_SWKEY_STATE_IDLE;
681 if (p->switch_role_state != BTM_ACL_SWKEY_STATE_IDLE)
684 p->switch_role_state);
695 p->switch_role_state = BTM_ACL_SWKEY_STATE_MODE_CHANGE;
702 p->switch_role_state = BTM_ACL_SWKEY_STATE_MODE_CHANGE;
718 p->switch_role_state = BTM_ACL_SWKEY_STATE_MODE_CHANGE;
738 p->switch_role_state = BTM_ACL_SWKEY_STATE_ENCRYPTION_OFF;
745 p->switch_role_state = BTM_ACL_SWKEY_STATE_IN_PROGRESS;
890 if (p->switch_role_state != BTM_ACL_SWKEY_STATE_SWITCHING)
906 /* Set the switch_role_state to IDLE since the reply received from HCI */
955 if (p->switch_role_state == BTM_ACL_SWKEY_STATE_ENCRYPTION_OFF)
960 p->switch_role_state = BTM_ACL_SWKEY_STATE_IDLE;
965 p->switch_role_state = BTM_ACL_SWKEY_STATE_SWITCHING;
971 p->switch_role_state = BTM_ACL_SWKEY_STATE_IDLE;
985 else if (p->switch_role_state == BTM_ACL_SWKEY_STATE_ENCRYPTION_ON)
987 p->switch_role_state = BTM_ACL_SWKEY_STATE_IDLE;
1002 evt.new_role, evt.hci_status, p->switch_role_state);
2345 if (p->switch_role_state == BTM_ACL_SWKEY_STATE_SWITCHING)
2353 p->switch_role_state = BTM_ACL_SWKEY_STATE_ENCRYPTION_ON;
2359 p->switch_role_state = BTM_ACL_SWKEY_STATE_ENCRYPTION_ON;
2364 /* Set the switch_role_state
2366 if (p->switch_role_state == BTM_ACL_SWKEY_STATE_IN_PROGRESS)
2368 p->switch_role_state = BTM_ACL_SWKEY_STATE_IDLE;
2387 p_data->role, p_data->hci_status, p->switch_role_state);
3287 if (p->switch_role_state == BTM_ACL_SWKEY_STATE_MODE_CHANGE ||
3298 if (p->switch_role_state == BTM_ACL_SWKEY_STATE_MODE_CHANGE)
3299 p->switch_role_state = BTM_ACL_SWKEY_STATE_ENCRYPTION_OFF;
3307 if (p->switch_role_state == BTM_ACL_SWKEY_STATE_MODE_CHANGE)
3317 if (p->switch_role_state == BTM_ACL_SWKEY_STATE_MODE_CHANGE)
3319 p->switch_role_state = BTM_ACL_SWKEY_STATE_IN_PROGRESS;
3329 p->switch_role_state = BTM_ACL_SWKEY_STATE_IN_PROGRESS;
3336 p->switch_role_state = BTM_ACL_SWKEY_STATE_IDLE;