Home | History | Annotate | Download | only in plugins

Lines Matching defs:key_info

870 	struct link_key_info *key_info;
888 key_info = match->data;
890 key_info = NULL;
892 DBG("Matching key %s", key_info ? "found" : "not found");
894 if (key_info == NULL || (!dev->debug_keys && key_info->type == 0x03)) {
903 DBG("link key type 0x%02x", key_info->type);
907 if (key_info->type == 0x04 && conn->loc_auth != 0xff &&
914 memcpy(lr.link_key, key_info->key, 16);
927 struct link_key_info *key_info;
941 key_info = match->data;
943 key_info = NULL;
945 if (key_info == NULL) {
946 key_info = g_new0(struct link_key_info, 1);
947 bacpy(&key_info->bdaddr, &evt->bdaddr);
950 dev->keys = g_slist_remove(dev->keys, key_info);
951 old_key_type = key_info->type;
954 memcpy(key_info->key, evt->link_key, sizeof(evt->link_key));
955 key_info->type = evt->key_type;
956 key_info->pin_len = dev->pin_length;
978 key_info->type = key_type;
1017 g_free(key_info);
1023 dev->keys = g_slist_prepend(dev->keys, key_info);