Lines Matching refs:test_bit
743 complete = test_bit(SMP_FLAG_COMPLETE, &smp->flags); in smp_chan_destroy()
835 if (test_bit(SMP_FLAG_SC, &smp->flags)) in get_auth_method()
868 if (smp->method == JUST_CFM && test_bit(SMP_FLAG_INITIATOR, in tk_request()
886 if (test_bit(SMP_FLAG_SC, &smp->flags)) in tk_request()
1069 persistent = !test_bit(HCI_CONN_FLUSH_KEY, in smp_notify_keys()
1108 if (test_bit(SMP_FLAG_DEBUG_KEY, &smp->flags)) in smp_notify_keys()
1137 if (test_bit(SMP_FLAG_DEBUG_KEY, &smp->flags)) in sc_add_ltk()
1251 if (test_bit(SMP_FLAG_SC, &smp->flags)) { in smp_distribute_keys()
1528 if (test_bit(SMP_FLAG_WAIT_USER, &smp->flags)) { in sc_passkey_round()
1627 if (test_bit(SMP_FLAG_SC, &smp->flags)) { in smp_user_confirm_reply()
1656 if (test_bit(SMP_FLAG_CFM_PENDING, &smp->flags)) { in smp_user_confirm_reply()
1756 if (!test_bit(HCI_CONN_AES_CCM, &conn->hcon->flags) && in smp_cmd_pairing_req()
1822 if (test_bit(SMP_FLAG_SC, &smp->flags)) { in smp_cmd_pairing_req()
1844 if (test_bit(SMP_FLAG_LOCAL_OOB, &smp->flags)) { in sc_send_public_key()
1967 if (test_bit(SMP_FLAG_SC, &smp->flags)) { in smp_cmd_pairing_rsp()
1983 if (test_bit(SMP_FLAG_TK_VALID, &smp->flags)) in smp_cmd_pairing_rsp()
2061 if (test_bit(SMP_FLAG_SC, &smp->flags)) { in smp_cmd_pairing_confirm()
2065 if (test_bit(SMP_FLAG_REMOTE_PK, &smp->flags)) in smp_cmd_pairing_confirm()
2082 if (test_bit(SMP_FLAG_TK_VALID, &smp->flags)) in smp_cmd_pairing_confirm()
2107 if (!test_bit(SMP_FLAG_SC, &smp->flags)) in smp_cmd_pairing_random()
2215 test_bit(HCI_CONN_STK_ENCRYPT, &hcon->flags) && in smp_sufficient_security()
2536 if (test_bit(SMP_FLAG_REMOTE_OOB, &smp->flags) || in sc_select_method()
2537 test_bit(SMP_FLAG_LOCAL_OOB, &smp->flags)) in sc_select_method()
2568 if (method == JUST_CFM && test_bit(SMP_FLAG_INITIATOR, &smp->flags)) in sc_select_method()
2591 if (test_bit(SMP_FLAG_REMOTE_OOB, &smp->flags)) { in smp_cmd_public_key()
2733 if (test_bit(SMP_FLAG_WAIT_USER, &smp->flags)) { in smp_cmd_dhkey_check()
2899 if (!test_bit(HCI_CONN_NEW_LINK_KEY, &hcon->flags)) in bredr_pairing()
2903 if (!test_bit(HCI_CONN_ENCRYPT, &hcon->flags)) in bredr_pairing()
2915 if (!test_bit(HCI_CONN_AES_CCM, &hcon->flags) && in bredr_pairing()
2972 if (!test_bit(HCI_CONN_ENCRYPT, &hcon->flags)) in smp_resume_cb()
2990 if (hcon->type == ACL_LINK && test_bit(HCI_CONN_ENCRYPT, &hcon->flags)) in smp_ready_cb()