Lines Matching refs:sec_flags
141 if(p_dev_rec->sec_flags & BTM_SEC_AUTHENTICATED)
159 if(p_dev_rec->sec_flags & BTM_SEC_ENCRYPTED)
177 if(p_dev_rec->sec_flags & BTM_SEC_AUTHORIZED)
196 if(p_dev_rec->sec_flags & BTM_SEC_16_DIGIT_PIN_AUTHED)
352 *p_sec_flags = (UINT8) p_dev_rec->sec_flags;
376 *p_sec_flags = (UINT8) p_dev_rec->sec_flags;
378 *p_sec_flags = (UINT8) (p_dev_rec->sec_flags >> 8);
904 p_dev_rec->sec_flags |= BTM_SEC_LINK_KEY_AUTHED;
906 p_dev_rec->sec_flags |= BTM_SEC_16_DIGIT_PIN_AUTHED;
944 p_dev_rec->sec_flags &= ~BTM_SEC_LINK_KEY_AUTHED;
997 BTM_TRACE_DEBUG ("before update sec_flags=0x%x", p_dev_rec->sec_flags);
1001 && (p_dev_rec->sec_flags & BTM_SEC_AUTHENTICATED))
1004 && (p_dev_rec->sec_flags & BTM_SEC_LE_AUTHENTICATED))
1038 p_dev_rec->sec_flags &= ~ BTM_SEC_LE_MASK;
1053 p_dev_rec->sec_flags &= ~(BTM_SEC_LINK_KEY_KNOWN | BTM_SEC_AUTHENTICATED | BTM_SEC_ENCRYPTED
1056 BTM_TRACE_DEBUG ("after update sec_flags=0x%x", p_dev_rec->sec_flags);
1083 p_dev_rec->sec_flags &= ~BTM_SEC_NAME_KNOWN;
1306 && (p_dev_rec->sec_flags & BTM_SEC_LINK_KEY_KNOWN))
1332 if ((p_dev_rec != NULL) && (p_dev_rec->sec_flags & BTM_SEC_LINK_KEY_KNOWN))
1389 (p_dev_rec->sec_flags & BTM_SEC_ENCRYPTED))
1422 p_dev_rec->hci_handle, p_dev_rec->sec_state, p_dev_rec->sec_flags,
1545 p_dev_rec->sec_flags |= BTM_SEC_LINK_KEY_AUTHED;
1546 p_dev_rec->sec_flags |= BTM_SEC_16_DIGIT_PIN_AUTHED;
1597 p_dev_rec->sec_flags &= ~(BTM_SEC_LINK_KEY_AUTHED | BTM_SEC_LINK_KEY_KNOWN);
2002 if (p_dev_rec->sec_flags & BTM_SEC_LINK_KEY_KNOWN)
2035 BTM_TRACE_DEBUG ("%s() is_possible: %d sec_flags: 0x%x", __func__, is_possible, p_dev_rec->sec_flags);
2055 if (!(p_dev_rec->sec_flags & BTM_SEC_LINK_KEY_KNOWN))
2060 BTM_TRACE_DEBUG ("need upgrade!! sec_flags:0x%x", p_dev_rec->sec_flags);
2077 p_dev_rec->sec_flags &= ~(BTM_SEC_LINK_KEY_KNOWN | BTM_SEC_LINK_KEY_AUTHED);
2078 p_dev_rec->sec_flags &= ~BTM_SEC_AUTHENTICATED;
2079 BTM_TRACE_DEBUG ("sec_flags:0x%x", p_dev_rec->sec_flags);
2169 ((((security_required & BTM_SEC_OUT_FLAGS) == BTM_SEC_OUT_AUTHENTICATE) && (p_dev_rec->sec_flags & BTM_SEC_AUTHENTICATED))) ||
2170 ((((security_required & BTM_SEC_OUT_FLAGS) == (BTM_SEC_OUT_AUTHENTICATE | BTM_SEC_OUT_ENCRYPT)) && (p_dev_rec->sec_flags & BTM_SEC_ENCRYPTED))) ||
2171 ((((security_required & BTM_SEC_OUT_FLAGS) == BTM_SEC_OUT_FLAGS) && (p_dev_rec->sec_flags & BTM_SEC_AUTHORIZED))) )
2179 ((((security_required & BTM_SEC_IN_FLAGS) == BTM_SEC_IN_AUTHENTICATE) && (p_dev_rec->sec_flags & BTM_SEC_AUTHENTICATED))) ||
2180 ((((security_required & BTM_SEC_IN_FLAGS) == (BTM_SEC_IN_AUTHENTICATE | BTM_SEC_IN_ENCRYPT)) && (p_dev_rec->sec_flags & BTM_SEC_ENCRYPTED))) ||
2181 ((((security_required & BTM_SEC_IN_FLAGS) == BTM_SEC_IN_FLAGS) && (p_dev_rec->sec_flags & BTM_SEC_AUTHORIZED))) )
2247 BTM_TRACE_EVENT ("security_flags:x%x, sec_flags:x%x", security_required, p_dev_rec->sec_flags);
2330 BTM_TRACE_DEBUG("%s: (%s) remote features unknown!!sec_flags:0x%02x", __FUNCTION__,
2331 (is_originator) ? "initiator" : "acceptor", p_dev_rec->sec_flags);
2338 BTM_TRACE_DEBUG ("%s() sm4:0x%x, sec_flags:0x%x, security_required:0x%x chk:%d", __func__,
2339 p_dev_rec->sm4, p_dev_rec->sec_flags, security_required, chk_acp_auth_done);
2400 (p_dev_rec->sec_flags & BTM_SEC_AUTHENTICATED), (p_dev_rec->sec_flags & BTM_SEC_ENCRYPTED));
2403 if ((0 == (p_dev_rec->sec_flags & BTM_SEC_AUTHENTICATED))
2404 ||(0 == (p_dev_rec->sec_flags & BTM_SEC_ENCRYPTED)))
2430 p_dev_rec->sec_flags &= ~BTM_SEC_AUTHORIZED;
2439 if ((p_dev_rec->sec_flags & BTM_SEC_LINK_KEY_KNOWN) != 0)
2443 p_dev_rec->sec_flags &= ~(BTM_SEC_LINK_KEY_KNOWN | BTM_SEC_LINK_KEY_AUTHED |
2445 BTM_TRACE_DEBUG ("%s: sec_flags:0x%x", __FUNCTION__, p_dev_rec->sec_flags);
2455 __func__, psm, handle, p_dev_rec->sec_state, p_dev_rec->sec_flags,
2653 if ((p_dev_rec->sec_flags & BTM_SEC_LINK_KEY_KNOWN) != 0)
2658 p_dev_rec->sec_flags &= ~(BTM_SEC_LINK_KEY_KNOWN | BTM_SEC_LINK_KEY_AUTHED |
2660 BTM_TRACE_DEBUG("%s: sec_flags:0x%x", __FUNCTION__, p_dev_rec->sec_flags);
2678 p_dev_rec->sec_flags &= ~(BTM_SEC_AUTHORIZED);
2681 __func__, mx_proto_id, mx_chan_id, p_dev_rec->sec_state, p_dev_rec->sec_flags,
2723 if (!p_dev_rec || !(p_dev_rec->sec_flags & BTM_SEC_LINK_KEY_AUTHED))
3116 p_dev_rec->sec_flags |= BTM_SEC_NAME_KNOWN;
3117 BTM_TRACE_EVENT ("setting BTM_SEC_NAME_KNOWN sec_flags:0x%x", p_dev_rec->sec_flags);
3264 && (p_dev_rec->sec_flags & BTM_SEC_AUTHENTICATED))
3806 p_dev_rec->sec_flags |= BTM_SEC_AUTHENTICATED;
4064 && ((p_dev_rec->sec_flags & (BTM_SEC_AUTHENTICATED | BTM_SEC_ENCRYPTED)) ==
4097 && (!(p_dev_rec->sec_flags &BTM_SEC_LE_LINK_KEY_KNOWN) ||
4099 (!(p_dev_rec->sec_flags & BTM_SEC_LE_LINK_KEY_AUTHED) &&
4100 (p_dev_rec->sec_flags & BTM_SEC_LINK_KEY_AUTHED))))
4127 BTM_TRACE_DEBUG ("Collision retry sm4:x%x sec_flags:0x%x", p_dev_rec->sm4, p_dev_rec->sec_flags);
4135 p_dev_rec->sec_flags &= ~BTM_SEC_LINK_KEY_KNOWN;
4136 BTM_TRACE_DEBUG ("Retry for missing key sm4:x%x sec_flags:0x%x", p_dev_rec->sm4, p_dev_rec->sec_flags);
4159 p_dev_rec->sec_flags |= BTM_SEC_AUTHENTICATED;
4166 p_dev_rec->sec_flags |= BTM_SEC_16_DIGIT_PIN_AUTHED;
4196 BTM_TRACE_DEBUG ("before update p_dev_rec->sec_flags=0x%x", (p_dev_rec) ? p_dev_rec->sec_flags : 0 );
4214 p_dev_rec->sec_flags |= (BTM_SEC_AUTHENTICATED | BTM_SEC_ENCRYPTED);
4218 p_dev_rec->sec_flags |= BTM_SEC_16_DIGIT_PIN_AUTHED;
4223 p_dev_rec->sec_flags |= (BTM_SEC_LE_AUTHENTICATED | BTM_SEC_LE_ENCRYPTED);
4232 p_dev_rec->sec_flags &= ~BTM_SEC_ENCRYPTED;
4234 p_dev_rec->sec_flags &= ~BTM_SEC_LE_ENCRYPTED;
4237 BTM_TRACE_DEBUG ("after update p_dev_rec->sec_flags=0x%x", p_dev_rec->sec_flags );
4251 p_dev_rec->sec_flags &= ~ (BTM_SEC_LE_LINK_KEY_KNOWN);
4273 (!(p_dev_rec->sec_flags &BTM_SEC_LE_LINK_KEY_KNOWN) ||
4275 (!(p_dev_rec->sec_flags & BTM_SEC_LE_LINK_KEY_AUTHED)
4276 && (p_dev_rec->sec_flags & BTM_SEC_LINK_KEY_AUTHED))))
4453 if (p_dev_rec->sec_flags & BTM_SEC_NAME_KNOWN)
4544 p_dev_rec->sec_flags &= ~((BTM_SEC_LINK_KEY_KNOWN | BTM_SEC_LINK_KEY_AUTHED) << bit_shift);
4574 p_dev_rec->sec_flags &= ~ (BTM_SEC_LE_LINK_KEY_KNOWN << bit_shift);
4605 && (p_dev_rec->sec_flags & BTM_SEC_LINK_KEY_KNOWN) )
4661 p_dev_rec->sec_flags &= ~((BTM_SEC_AUTHORIZED | BTM_SEC_AUTHENTICATED |
4665 p_dev_rec->sec_flags |= ((BTM_SEC_AUTHENTICATED | BTM_SEC_ENCRYPTED) << bit_shift);
4668 p_dev_rec->sec_flags |= (BTM_SEC_AUTHENTICATED << bit_shift);
4673 p_dev_rec->sec_flags |= (BTM_SEC_16_DIGIT_PIN_AUTHED << bit_shift);
4682 if (!(p_dev_rec->sec_flags & BTM_SEC_NAME_KNOWN) || p_dev_rec->is_originator)
4766 BTM_TRACE_EVENT("%s before update sec_flags=0x%x", __func__, p_dev_rec->sec_flags);
4773 p_dev_rec->sec_flags &= ~BTM_SEC_LINK_KEY_KNOWN;
4795 /* see sec_flags processing in btm_acl_removed */
4800 p_dev_rec->sec_flags &= ~(BTM_SEC_LE_AUTHENTICATED|BTM_SEC_LE_ENCRYPTED);
4807 p_dev_rec->sec_flags &= ~(BTM_SEC_AUTHORIZED | BTM_SEC_AUTHENTICATED | BTM_SEC_ENCRYPTED
4832 BTM_TRACE_EVENT("%s after update sec_flags=0x%x", __func__, p_dev_rec->sec_flags);
4867 p_dev_rec->sec_flags |= BTM_SEC_LINK_KEY_KNOWN;
4876 p_dev_rec->sec_flags |= BTM_SEC_16_DIGIT_PIN_AUTHED;
4919 if ((!(p_dev_rec->sec_flags & BTM_SEC_NAME_KNOWN)
4936 BTM_TRACE_EVENT ("rmt_io_caps:%d, sec_flags:x%x, dev_class[1]:x%02x", p_dev_rec->rmt_io_caps, p_dev_rec->sec_flags, p_dev_rec->dev_class[1])
4954 if (p_dev_rec->sec_flags & BTM_SEC_LINK_KEY_AUTHED)
5000 if (p_dev_rec->sec_flags & BTM_SEC_LINK_KEY_KNOWN)
5246 if (p_dev_rec->sec_flags & BTM_SEC_NAME_KNOWN)
5269 p_dev_rec->sec_flags |= BTM_SEC_NAME_KNOWN;
5334 p_dev_rec->security_required, p_dev_rec->sec_flags, p_dev_rec->sec_state);
5341 if (!(p_dev_rec->sec_flags & BTM_SEC_NAME_KNOWN)
5354 if ((((!(p_dev_rec->sec_flags & BTM_SEC_AUTHENTICATED))
5357 || (!(p_dev_rec->sec_flags & BTM_SEC_16_DIGIT_PIN_AUTHED)
5388 if ((p_dev_rec->sec_flags & BTM_SEC_LINK_KEY_KNOWN)
5389 && (!(p_dev_rec->sec_flags & BTM_SEC_16_DIGIT_PIN_AUTHED)
5392 p_dev_rec->sec_flags &= ~(BTM_SEC_LINK_KEY_KNOWN | BTM_SEC_LINK_KEY_AUTHED
5405 if (!(p_dev_rec->sec_flags & BTM_SEC_ENCRYPTED)
5435 if (!(p_dev_rec->sec_flags & BTM_SEC_AUTHORIZED)
5542 if ((p_dev_rec->sec_flags & BTM_SEC_NAME_KNOWN)
5582 p_dev_rec->sec_flags |= BTM_SEC_AUTHORIZED;
6187 || (p_e->sec_act == BTM_BLE_SEC_ENCRYPT_MITM && p_dev_rec->sec_flags
6259 ((p_dev_rec->ble.key_type && (p_dev_rec->sec_flags & BTM_SEC_LE_LINK_KEY_KNOWN))||
6263 (p_dev_rec->sec_flags & BTM_SEC_LINK_KEY_KNOWN)))