Lines Matching refs:adv_data

2326 	struct p2ps_advertisement *adv_data;  in p2p_service_find_asp()  local
2334 adv_data = p2p->p2ps_adv_list; in p2p_service_find_asp()
2335 while (adv_data) { in p2p_service_find_asp()
2336 if (os_memcmp(hash, adv_data->hash, P2PS_HASH_LEN) == 0) in p2p_service_find_asp()
2339 os_strncmp(adv_data->svc_name, P2PS_WILD_HASH_STR, in p2p_service_find_asp()
2342 adv_data = adv_data->next; in p2p_service_find_asp()
2714 struct p2ps_advertisement *adv_data; in p2p_service_p2ps_id() local
2719 adv_data = p2p->p2ps_adv_list; in p2p_service_p2ps_id()
2720 while (adv_data) { in p2p_service_p2ps_id()
2721 if (adv_data->id == adv_id) in p2p_service_p2ps_id()
2722 return adv_data; in p2p_service_p2ps_id()
2723 adv_data = adv_data->next; in p2p_service_p2ps_id()
2732 struct p2ps_advertisement *adv_data; in p2p_service_del_asp() local
2738 adv_data = p2p->p2ps_adv_list; in p2p_service_del_asp()
2740 while (adv_data) { in p2p_service_del_asp()
2741 if (adv_data->id == adv_id) { in p2p_service_del_asp()
2743 *prior = adv_data->next; in p2p_service_del_asp()
2744 os_free(adv_data); in p2p_service_del_asp()
2747 prior = &adv_data->next; in p2p_service_del_asp()
2748 adv_data = adv_data->next; in p2p_service_del_asp()
2759 struct p2ps_advertisement *adv_data, *tmp, **prev; in p2p_service_add_asp() local
2782 adv_data = os_zalloc(adv_data_len); in p2p_service_add_asp()
2783 if (!adv_data) in p2p_service_add_asp()
2786 os_memcpy(adv_data->hash, buf, P2PS_HASH_LEN); in p2p_service_add_asp()
2787 adv_data->id = adv_id; in p2p_service_add_asp()
2788 adv_data->state = svc_state; in p2p_service_add_asp()
2789 adv_data->config_methods = config_methods & p2p->cfg->config_methods; in p2p_service_add_asp()
2790 adv_data->auto_accept = (u8) auto_accept; in p2p_service_add_asp()
2791 os_memcpy(adv_data->svc_name, adv_str, adv_len); in p2p_service_add_asp()
2794 adv_data->cpt_priority[i] = cpt_priority[i]; in p2p_service_add_asp()
2795 adv_data->cpt_mask |= cpt_priority[i]; in p2p_service_add_asp()
2799 adv_data->svc_info = &adv_data->svc_name[adv_len + 1]; in p2p_service_add_asp()
2800 os_memcpy(adv_data->svc_info, svc_info, info_len); in p2p_service_add_asp()
2810 if (tmp->id == adv_data->id) { in p2p_service_add_asp()
2811 if (os_strcmp(tmp->svc_name, adv_data->svc_name) != 0) { in p2p_service_add_asp()
2812 os_free(adv_data); in p2p_service_add_asp()
2815 adv_data->next = tmp->next; in p2p_service_add_asp()
2816 *prev = adv_data; in p2p_service_add_asp()
2820 if (os_strcmp(tmp->svc_name, adv_data->svc_name) == 0) { in p2p_service_add_asp()
2821 adv_data->next = tmp->next; in p2p_service_add_asp()
2822 tmp->next = adv_data; in p2p_service_add_asp()
2831 adv_data->next = p2p->p2ps_adv_list; in p2p_service_add_asp()
2832 p2p->p2ps_adv_list = adv_data; in p2p_service_add_asp()
2837 adv_id, adv_data->config_methods, svc_state, adv_str, in p2p_service_add_asp()
2838 adv_data->cpt_mask); in p2p_service_add_asp()