Lines Matching refs:ie
126 static void p2p_client_info(struct wpabuf *ie, struct p2p_group_member *m) in p2p_client_info() argument
130 if (wpabuf_tailroom(ie) < wpabuf_len(m->client_info) + 1) in p2p_client_info()
132 wpabuf_put_buf(ie, m->client_info); in p2p_client_info()
137 struct wpabuf *ie) in p2p_group_add_common_ies() argument
157 p2p_buf_add_capability(ie, dev_capab, group_capab); in p2p_group_add_common_ies()
161 static void p2p_group_add_noa(struct wpabuf *ie, struct wpabuf *noa) in p2p_group_add_noa() argument
166 wpabuf_put_u8(ie, P2P_ATTR_NOTICE_OF_ABSENCE); in p2p_group_add_noa()
167 wpabuf_put_le16(ie, wpabuf_len(noa)); in p2p_group_add_noa()
168 wpabuf_put_buf(ie, noa); in p2p_group_add_noa()
174 struct wpabuf *ie; in p2p_group_encaps_probe_resp() local
183 ie = wpabuf_alloc(len); in p2p_group_encaps_probe_resp()
184 if (ie == NULL) in p2p_group_encaps_probe_resp()
194 wpabuf_put_u8(ie, WLAN_EID_VENDOR_SPECIFIC); in p2p_group_encaps_probe_resp()
195 wpabuf_put_u8(ie, 4 + frag_len); in p2p_group_encaps_probe_resp()
196 wpabuf_put_be32(ie, P2P_IE_VENDOR_TYPE); in p2p_group_encaps_probe_resp()
197 wpabuf_put_data(ie, pos, frag_len); in p2p_group_encaps_probe_resp()
201 return ie; in p2p_group_encaps_probe_resp()
207 struct wpabuf *ie; in p2p_group_build_beacon_ie() local
216 ie = wpabuf_alloc(257 + extra); in p2p_group_build_beacon_ie()
217 if (ie == NULL) in p2p_group_build_beacon_ie()
222 wpabuf_put_buf(ie, group->p2p->wfd_ie_beacon); in p2p_group_build_beacon_ie()
225 len = p2p_buf_add_ie_hdr(ie); in p2p_group_build_beacon_ie()
226 p2p_group_add_common_ies(group, ie); in p2p_group_build_beacon_ie()
227 p2p_buf_add_device_id(ie, group->p2p->cfg->dev_addr); in p2p_group_build_beacon_ie()
228 p2p_group_add_noa(ie, group->noa); in p2p_group_build_beacon_ie()
229 p2p_buf_update_ie_hdr(ie, len); in p2p_group_build_beacon_ie()
231 return ie; in p2p_group_build_beacon_ie()
245 struct wpabuf *ie; in wifi_display_encaps() local
251 ie = wpabuf_alloc(wpabuf_len(subelems) + 100); in wifi_display_encaps()
252 if (ie == NULL) in wifi_display_encaps()
262 wpabuf_put_u8(ie, WLAN_EID_VENDOR_SPECIFIC); in wifi_display_encaps()
263 wpabuf_put_u8(ie, 4 + frag_len); in wifi_display_encaps()
264 wpabuf_put_be32(ie, WFD_IE_VENDOR_TYPE); in wifi_display_encaps()
265 wpabuf_put_data(ie, pos, frag_len); in wifi_display_encaps()
269 return ie; in wifi_display_encaps()
402 struct wpabuf *p2p_subelems, *ie; in p2p_group_build_probe_resp_ie() local
428 ie = p2p_group_encaps_probe_resp(p2p_subelems); in p2p_group_build_probe_resp_ie()
434 ie = wpabuf_concat(wfd, ie); in p2p_group_build_probe_resp_ie()
438 return ie; in p2p_group_build_probe_resp_ie()
563 const u8 *ie, size_t len) in p2p_group_notif_assoc() argument
570 p2p_add_device(group->p2p, addr, 0, NULL, 0, ie, len, 0); in p2p_group_notif_assoc()
576 m->p2p_ie = ieee802_11_vendor_ie_concat(ie, len, P2P_IE_VENDOR_TYPE); in p2p_group_notif_assoc()
583 m->wfd_ie = ieee802_11_vendor_ie_concat(ie, len, WFD_IE_VENDOR_TYPE); in p2p_group_notif_assoc()