Lines Matching refs:ie
41 struct wpabuf *ie; in wifi_display_get_wfd_ie() local
54 ie = wpabuf_alloc(len); in wifi_display_get_wfd_ie()
55 if (ie == NULL) in wifi_display_get_wfd_ie()
60 wpabuf_put_buf(ie, global->wfd_subelem[i]); in wifi_display_get_wfd_ie()
63 return ie; in wifi_display_get_wfd_ie()
69 struct wpabuf *ie, *buf; in wifi_display_update_wfd_ie() local
174 ie = wifi_display_encaps(buf); in wifi_display_update_wfd_ie()
175 wpa_hexdump_buf(MSG_DEBUG, "WFD: WFD IE for Beacon", ie); in wifi_display_update_wfd_ie()
176 p2p_set_wfd_ie_beacon(global->p2p, ie); in wifi_display_update_wfd_ie()
178 ie = wifi_display_encaps(buf); in wifi_display_update_wfd_ie()
180 ie); in wifi_display_update_wfd_ie()
181 p2p_set_wfd_ie_assoc_req(global->p2p, ie); in wifi_display_update_wfd_ie()
183 ie = wifi_display_encaps(buf); in wifi_display_update_wfd_ie()
184 wpa_hexdump_buf(MSG_DEBUG, "WFD: WFD IE for GO Negotiation", ie); in wifi_display_update_wfd_ie()
185 p2p_set_wfd_ie_go_neg(global->p2p, ie); in wifi_display_update_wfd_ie()
187 ie = wifi_display_encaps(buf); in wifi_display_update_wfd_ie()
189 "Request", ie); in wifi_display_update_wfd_ie()
190 p2p_set_wfd_ie_prov_disc_req(global->p2p, ie); in wifi_display_update_wfd_ie()
197 ie = wifi_display_encaps(buf); in wifi_display_update_wfd_ie()
198 wpa_hexdump_buf(MSG_DEBUG, "WFD: WFD IE for Probe Request", ie); in wifi_display_update_wfd_ie()
199 p2p_set_wfd_ie_probe_req(global->p2p, ie); in wifi_display_update_wfd_ie()
204 ie = wifi_display_encaps(buf); in wifi_display_update_wfd_ie()
205 wpa_hexdump_buf(MSG_DEBUG, "WFD: WFD IE for Probe Response", ie); in wifi_display_update_wfd_ie()
206 p2p_set_wfd_ie_probe_resp(global->p2p, ie); in wifi_display_update_wfd_ie()
214 ie = wifi_display_encaps(buf); in wifi_display_update_wfd_ie()
215 wpa_hexdump_buf(MSG_DEBUG, "WFD: WFD IE for P2P Invitation", ie); in wifi_display_update_wfd_ie()
216 p2p_set_wfd_ie_invitation(global->p2p, ie); in wifi_display_update_wfd_ie()
218 ie = wifi_display_encaps(buf); in wifi_display_update_wfd_ie()
220 "Response", ie); in wifi_display_update_wfd_ie()
221 p2p_set_wfd_ie_prov_disc_resp(global->p2p, ie); in wifi_display_update_wfd_ie()
299 struct wpabuf *ie) in wifi_display_subelem_set_from_ies() argument
307 ie, ie ? (unsigned long) wpabuf_len(ie) : 0); in wifi_display_subelem_set_from_ies()
309 if (ie == NULL || wpabuf_len(ie) < 6) in wifi_display_subelem_set_from_ies()
312 pos = wpabuf_head(ie); in wifi_display_subelem_set_from_ies()
313 end = pos + wpabuf_len(ie); in wifi_display_subelem_set_from_ies()
358 struct wpabuf *ie; in wifi_display_subelem_get() local
361 ie = wifi_display_get_wfd_ie(global); in wifi_display_subelem_get()
362 if (ie == NULL) in wifi_display_subelem_get()
364 res = wpa_snprintf_hex(buf, buflen, wpabuf_head(ie), in wifi_display_subelem_get()
365 wpabuf_len(ie)); in wifi_display_subelem_get()
366 wpabuf_free(ie); in wifi_display_subelem_get()