Lines Matching refs:len
42 size_t len;
48 len = 0;
51 len += wpabuf_len(global->wfd_subelem[i]);
54 ie = wpabuf_alloc(len);
70 size_t len, plen;
132 len = 0;
134 len += wpabuf_len(global->wfd_subelem[
137 len += wpabuf_len(global->wfd_subelem[
140 len += wpabuf_len(global->wfd_subelem[
143 len += wpabuf_len(global->wfd_subelem[
146 len += wpabuf_len(global->wfd_subelem[WFD_SUBELEM_EXT_CAPAB]);
147 buf = wpabuf_alloc(len);
229 size_t len;
237 len = os_strlen(pos);
238 if (len & 1)
240 len /= 2;
245 e = wpabuf_alloc(len);
248 if (hexstr2bin(pos, wpabuf_put(e, len), len) < 0) {
261 if (len == 0) {
266 e = wpabuf_alloc(1 + len);
270 if (hexstr2bin(pos, wpabuf_put(e, len), len) < 0) {
290 unsigned int len, subelem;
306 len = WPA_GET_BE16(pos + 1) + 3;
308 wpa_printf(MSG_DEBUG, "WFD Sub-Element ID %d - len %d",
309 *pos, len - 3);
311 if (len > (unsigned int) (end - pos))
316 e = wpabuf_alloc_copy(pos, len);
325 pos += len;