Lines Matching refs:bytes
250 int bytes; in wpa_driver_wext_event_wireless_custom() local
255 bytes = strspn(spos, "0123456789abcdefABCDEF"); in wpa_driver_wext_event_wireless_custom()
256 if (!bytes || (bytes & 1)) in wpa_driver_wext_event_wireless_custom()
258 bytes /= 2; in wpa_driver_wext_event_wireless_custom()
260 req_ies = os_malloc(bytes); in wpa_driver_wext_event_wireless_custom()
262 hexstr2bin(spos, req_ies, bytes) < 0) in wpa_driver_wext_event_wireless_custom()
265 data.assoc_info.req_ies_len = bytes; in wpa_driver_wext_event_wireless_custom()
267 spos += bytes * 2; in wpa_driver_wext_event_wireless_custom()
275 bytes = strspn(spos, "0123456789abcdefABCDEF"); in wpa_driver_wext_event_wireless_custom()
276 if (!bytes || (bytes & 1)) in wpa_driver_wext_event_wireless_custom()
278 bytes /= 2; in wpa_driver_wext_event_wireless_custom()
280 resp_ies = os_malloc(bytes); in wpa_driver_wext_event_wireless_custom()
282 hexstr2bin(spos, resp_ies, bytes) < 0) in wpa_driver_wext_event_wireless_custom()
285 data.assoc_info.resp_ies_len = bytes; in wpa_driver_wext_event_wireless_custom()
1375 int bytes; in wext_get_scan_custom() local
1377 bytes = custom + clen - spos; in wext_get_scan_custom()
1378 if (bytes & 1 || bytes == 0) in wext_get_scan_custom()
1380 bytes /= 2; in wext_get_scan_custom()
1381 tmp = os_realloc(res->ie, res->ie_len + bytes); in wext_get_scan_custom()
1385 if (hexstr2bin(spos, tmp + res->ie_len, bytes) < 0) in wext_get_scan_custom()
1387 res->ie_len += bytes; in wext_get_scan_custom()
1390 int bytes; in wext_get_scan_custom() local
1392 bytes = custom + clen - spos; in wext_get_scan_custom()
1393 if (bytes & 1 || bytes == 0) in wext_get_scan_custom()
1395 bytes /= 2; in wext_get_scan_custom()
1396 tmp = os_realloc(res->ie, res->ie_len + bytes); in wext_get_scan_custom()
1400 if (hexstr2bin(spos, tmp + res->ie_len, bytes) < 0) in wext_get_scan_custom()
1402 res->ie_len += bytes; in wext_get_scan_custom()
1405 int bytes; in wext_get_scan_custom() local
1408 bytes = custom + clen - spos; in wext_get_scan_custom()
1409 if (bytes != 16) { in wext_get_scan_custom()
1410 wpa_printf(MSG_INFO, "Invalid TSF length (%d)", bytes); in wext_get_scan_custom()
1413 bytes /= 2; in wext_get_scan_custom()
1414 if (hexstr2bin(spos, bin, bytes) < 0) { in wext_get_scan_custom()