• Home
  • Raw
  • Download

Lines Matching refs:icon

63 	struct osu_icon icon[OSU_MAX_ITEMS];  member
326 struct icon_entry *icon; in hs20_find_icon() local
328 dl_list_for_each(icon, &wpa_s->icon_head, struct icon_entry, list) { in hs20_find_icon()
329 if (os_memcmp(icon->bssid, bssid, ETH_ALEN) == 0 && in hs20_find_icon()
330 os_strcmp(icon->file_name, file_name) == 0 && icon->image) in hs20_find_icon()
331 return icon; in hs20_find_icon()
342 struct icon_entry *icon; in hs20_get_icon() local
352 icon = hs20_find_icon(wpa_s, bssid, file_name); in hs20_get_icon()
353 if (!icon || !icon->image || offset >= icon->image_len) in hs20_get_icon()
355 if (size > icon->image_len - offset) in hs20_get_icon()
356 size = icon->image_len - offset; in hs20_get_icon()
363 b64 = base64_encode(&icon->image[offset], size, &b64_size); in hs20_get_icon()
375 static void hs20_free_icon_entry(struct icon_entry *icon) in hs20_free_icon_entry() argument
379 MAC2STR(icon->bssid), icon->dialog_token, in hs20_free_icon_entry()
380 icon->file_name ? icon->file_name : "N/A", in hs20_free_icon_entry()
381 (unsigned int) icon->image_len); in hs20_free_icon_entry()
382 os_free(icon->file_name); in hs20_free_icon_entry()
383 os_free(icon->image); in hs20_free_icon_entry()
384 os_free(icon); in hs20_free_icon_entry()
391 struct icon_entry *icon, *tmp; in hs20_del_icon() local
403 dl_list_for_each_safe(icon, tmp, &wpa_s->icon_head, struct icon_entry, in hs20_del_icon()
405 if ((!bssid || os_memcmp(icon->bssid, bssid, ETH_ALEN) == 0) && in hs20_del_icon()
407 os_strcmp(icon->file_name, file_name) == 0)) { in hs20_del_icon()
408 dl_list_del(&icon->list); in hs20_del_icon()
409 hs20_free_icon_entry(icon); in hs20_del_icon()
445 struct icon_entry *icon, *tmp; in hs20_remove_duplicate_icons() local
447 dl_list_for_each_safe(icon, tmp, &wpa_s->icon_head, struct icon_entry, in hs20_remove_duplicate_icons()
449 if (icon == new_icon) in hs20_remove_duplicate_icons()
451 if (os_memcmp(icon->bssid, new_icon->bssid, ETH_ALEN) == 0 && in hs20_remove_duplicate_icons()
452 os_strcmp(icon->file_name, new_icon->file_name) == 0) { in hs20_remove_duplicate_icons()
453 dl_list_del(&icon->list); in hs20_remove_duplicate_icons()
454 hs20_free_icon_entry(icon); in hs20_remove_duplicate_icons()
468 struct icon_entry *icon; in hs20_process_icon_binary_file() local
470 dl_list_for_each(icon, &wpa_s->icon_head, struct icon_entry, list) { in hs20_process_icon_binary_file()
471 if (icon->dialog_token == dialog_token && !icon->image && in hs20_process_icon_binary_file()
472 os_memcmp(icon->bssid, sa, ETH_ALEN) == 0) { in hs20_process_icon_binary_file()
473 icon->image = os_memdup(pos, slen); in hs20_process_icon_binary_file()
474 if (!icon->image) in hs20_process_icon_binary_file()
476 icon->image_len = slen; in hs20_process_icon_binary_file()
477 hs20_remove_duplicate_icons(wpa_s, icon); in hs20_process_icon_binary_file()
480 MAC2STR(sa), icon->file_name, in hs20_process_icon_binary_file()
481 (unsigned int) icon->image_len); in hs20_process_icon_binary_file()
483 icon->file_name, in hs20_process_icon_binary_file()
484 icon->image, in hs20_process_icon_binary_file()
485 icon->image_len); in hs20_process_icon_binary_file()
581 struct osu_icon *icon = &osu->icon[j]; in hs20_osu_icon_fetch_result() local
582 if (icon->id || icon->failed) in hs20_osu_icon_fetch_result()
585 icon->failed = 1; in hs20_osu_icon_fetch_result()
587 icon->id = wpa_s->osu_icon_id; in hs20_osu_icon_fetch_result()
811 struct osu_icon *icon = &osu->icon[j]; in hs20_osu_fetch_done() local
812 if (icon->failed) in hs20_osu_fetch_done()
815 icon->id, icon->width, icon->height, icon->lang, in hs20_osu_fetch_done()
816 icon->icon_type, icon->filename); in hs20_osu_fetch_done()
836 struct osu_icon *icon = &osu->icon[j]; in hs20_next_osu_icon() local
837 if (icon->id || icon->failed) in hs20_next_osu_icon()
841 "from " MACSTR, icon->filename, in hs20_next_osu_icon()
846 (u8 *) icon->filename, in hs20_next_osu_icon()
847 os_strlen(icon->filename), in hs20_next_osu_icon()
849 icon->failed = 1; in hs20_next_osu_icon()
971 struct osu_icon *icon = &prov->icon[prov->icon_count]; in hs20_osu_add_prov() local
979 icon->width = WPA_GET_LE16(pos2); in hs20_osu_add_prov()
981 icon->height = WPA_GET_LE16(pos2); in hs20_osu_add_prov()
983 os_memcpy(icon->lang, pos2, 3); in hs20_osu_add_prov()
991 os_memcpy(icon->icon_type, pos2, flen); in hs20_osu_add_prov()
1005 os_memcpy(icon->filename, pos2, flen); in hs20_osu_add_prov()