Lines Matching full:ie
106 wpa_hexdump_buf(MSG_DEBUG, "WPS: WPS IE from (Re)AssocReq", in wps_init()
109 wpa_printf(MSG_DEBUG, "WPS: Failed to parse WPS IE " in wps_init()
113 "in (Re)AssocReq WPS IE"); in wps_init()
115 wpa_printf(MSG_DEBUG, "WPS: Request Type (from WPS IE " in wps_init()
116 "in (Re)AssocReq WPS IE): %d", in wps_init()
232 * wps_is_selected_pbc_registrar - Check whether WPS IE indicates active PBC
233 * @msg: WPS IE contents from Beacon or Probe Response frame
293 * wps_is_selected_pin_registrar - Check whether WPS IE indicates active PIN
294 * @msg: WPS IE contents from Beacon or Probe Response frame
309 * wps_is_addr_authorized - Check whether WPS IE authorizes MAC address
310 * @msg: WPS IE contents from Beacon or Probe Response frame
352 * wps_ap_priority_compar - Prioritize WPS IE from two APs
353 * @wps_a: WPS IE contents from Beacon or Probe Response frame
354 * @wps_b: WPS IE contents from Beacon or Probe Response frame
382 * wps_get_uuid_e - Get UUID-E from WPS IE
383 * @msg: WPS IE contents from Beacon or Probe Response frame
413 * wps_build_assoc_req_ie - Build WPS IE for (Re)Association Request
415 * Returns: WPS IE or %NULL on failure
421 struct wpabuf *ie; in wps_build_assoc_req_ie() local
424 wpa_printf(MSG_DEBUG, "WPS: Building WPS IE for (Re)Association " in wps_build_assoc_req_ie()
426 ie = wpabuf_alloc(100); in wps_build_assoc_req_ie()
427 if (ie == NULL) in wps_build_assoc_req_ie()
430 wpabuf_put_u8(ie, WLAN_EID_VENDOR_SPECIFIC); in wps_build_assoc_req_ie()
431 len = wpabuf_put(ie, 1); in wps_build_assoc_req_ie()
432 wpabuf_put_be32(ie, WPS_DEV_OUI_WFA); in wps_build_assoc_req_ie()
434 if (wps_build_version(ie) || in wps_build_assoc_req_ie()
435 wps_build_req_type(ie, req_type) || in wps_build_assoc_req_ie()
436 wps_build_wfa_ext(ie, 0, NULL, 0, 0)) { in wps_build_assoc_req_ie()
437 wpabuf_free(ie); in wps_build_assoc_req_ie()
441 *len = wpabuf_len(ie) - 2; in wps_build_assoc_req_ie()
443 return ie; in wps_build_assoc_req_ie()
448 * wps_build_assoc_resp_ie - Build WPS IE for (Re)Association Response
449 * Returns: WPS IE or %NULL on failure
455 struct wpabuf *ie; in wps_build_assoc_resp_ie() local
458 wpa_printf(MSG_DEBUG, "WPS: Building WPS IE for (Re)Association " in wps_build_assoc_resp_ie()
460 ie = wpabuf_alloc(100); in wps_build_assoc_resp_ie()
461 if (ie == NULL) in wps_build_assoc_resp_ie()
464 wpabuf_put_u8(ie, WLAN_EID_VENDOR_SPECIFIC); in wps_build_assoc_resp_ie()
465 len = wpabuf_put(ie, 1); in wps_build_assoc_resp_ie()
466 wpabuf_put_be32(ie, WPS_DEV_OUI_WFA); in wps_build_assoc_resp_ie()
468 if (wps_build_version(ie) || in wps_build_assoc_resp_ie()
469 wps_build_resp_type(ie, WPS_RESP_AP) || in wps_build_assoc_resp_ie()
470 wps_build_wfa_ext(ie, 0, NULL, 0, 0)) { in wps_build_assoc_resp_ie()
471 wpabuf_free(ie); in wps_build_assoc_resp_ie()
475 *len = wpabuf_len(ie) - 2; in wps_build_assoc_resp_ie()
477 return ie; in wps_build_assoc_resp_ie()
482 * wps_build_probe_req_ie - Build WPS IE for Probe Request
491 * Returns: WPS IE or %NULL on failure
501 struct wpabuf *ie; in wps_build_probe_req_ie() local
503 wpa_printf(MSG_DEBUG, "WPS: Building WPS IE for Probe Request"); in wps_build_probe_req_ie()
505 ie = wpabuf_alloc(500); in wps_build_probe_req_ie()
506 if (ie == NULL) in wps_build_probe_req_ie()
509 if (wps_build_version(ie) || in wps_build_probe_req_ie()
510 wps_build_req_type(ie, req_type) || in wps_build_probe_req_ie()
511 wps_build_config_methods(ie, dev->config_methods) || in wps_build_probe_req_ie()
512 wps_build_uuid_e(ie, uuid) || in wps_build_probe_req_ie()
513 wps_build_primary_dev_type(dev, ie) || in wps_build_probe_req_ie()
514 wps_build_rf_bands(dev, ie, 0) || in wps_build_probe_req_ie()
515 wps_build_assoc_state(NULL, ie) || in wps_build_probe_req_ie()
516 wps_build_config_error(ie, WPS_CFG_NO_ERROR) || in wps_build_probe_req_ie()
517 wps_build_dev_password_id(ie, pw_id) || in wps_build_probe_req_ie()
518 wps_build_manufacturer(dev, ie) || in wps_build_probe_req_ie()
519 wps_build_model_name(dev, ie) || in wps_build_probe_req_ie()
520 wps_build_model_number(dev, ie) || in wps_build_probe_req_ie()
521 wps_build_dev_name(dev, ie) || in wps_build_probe_req_ie()
522 wps_build_wfa_ext(ie, req_type == WPS_REQ_ENROLLEE, NULL, 0, 0) || in wps_build_probe_req_ie()
523 wps_build_req_dev_type(dev, ie, num_req_dev_types, req_dev_types) in wps_build_probe_req_ie()
525 wps_build_secondary_dev_type(dev, ie) in wps_build_probe_req_ie()
527 wpabuf_free(ie); in wps_build_probe_req_ie()
531 return wps_ie_encapsulate(ie); in wps_build_probe_req_ie()