Home | History | Annotate | Download | only in wps

Lines Matching refs:ie

100 		wpa_hexdump_buf(MSG_DEBUG, "WPS: WPS IE from (Re)AssocReq",
103 wpa_printf(MSG_DEBUG, "WPS: Failed to parse WPS IE "
107 "in (Re)AssocReq WPS IE");
109 wpa_printf(MSG_DEBUG, "WPS: Request Type (from WPS IE "
110 "in (Re)AssocReq WPS IE): %d",
218 * wps_is_selected_pbc_registrar - Check whether WPS IE indicates active PBC
219 * @msg: WPS IE contents from Beacon or Probe Response frame
279 * wps_is_selected_pin_registrar - Check whether WPS IE indicates active PIN
280 * @msg: WPS IE contents from Beacon or Probe Response frame
295 * wps_is_addr_authorized - Check whether WPS IE authorizes MAC address
296 * @msg: WPS IE contents from Beacon or Probe Response frame
338 * wps_ap_priority_compar - Prioritize WPS IE from two APs
339 * @wps_a: WPS IE contents from Beacon or Probe Response frame
340 * @wps_b: WPS IE contents from Beacon or Probe Response frame
368 * wps_get_uuid_e - Get UUID-E from WPS IE
369 * @msg: WPS IE contents from Beacon or Probe Response frame
399 * wps_build_assoc_req_ie - Build WPS IE for (Re)Association Request
401 * Returns: WPS IE or %NULL on failure
407 struct wpabuf *ie;
410 wpa_printf(MSG_DEBUG, "WPS: Building WPS IE for (Re)Association "
412 ie = wpabuf_alloc(100);
413 if (ie == NULL)
416 wpabuf_put_u8(ie, WLAN_EID_VENDOR_SPECIFIC);
417 len = wpabuf_put(ie, 1);
418 wpabuf_put_be32(ie, WPS_DEV_OUI_WFA);
420 if (wps_build_version(ie) ||
421 wps_build_req_type(ie, req_type) ||
422 wps_build_wfa_ext(ie, 0, NULL, 0)) {
423 wpabuf_free(ie);
427 *len = wpabuf_len(ie) - 2;
429 return ie;
434 * wps_build_assoc_resp_ie - Build WPS IE for (Re)Association Response
435 * Returns: WPS IE or %NULL on failure
441 struct wpabuf *ie;
444 wpa_printf(MSG_DEBUG, "WPS: Building WPS IE for (Re)Association "
446 ie = wpabuf_alloc(100);
447 if (ie == NULL)
450 wpabuf_put_u8(ie, WLAN_EID_VENDOR_SPECIFIC);
451 len = wpabuf_put(ie, 1);
452 wpabuf_put_be32(ie, WPS_DEV_OUI_WFA);
454 if (wps_build_version(ie) ||
455 wps_build_resp_type(ie, WPS_RESP_AP) ||
456 wps_build_wfa_ext(ie, 0, NULL, 0)) {
457 wpabuf_free(ie);
461 *len = wpabuf_len(ie) - 2;
463 return ie;
468 * wps_build_probe_req_ie - Build WPS IE for Probe Request
477 * Returns: WPS IE or %NULL on failure
487 struct wpabuf *ie;
489 wpa_printf(MSG_DEBUG, "WPS: Building WPS IE for Probe Request");
491 ie = wpabuf_alloc(500);
492 if (ie == NULL)
495 if (wps_build_version(ie) ||
496 wps_build_req_type(ie, req_type) ||
497 wps_build_config_methods(ie, dev->config_methods) ||
498 wps_build_uuid_e(ie, uuid) ||
499 wps_build_primary_dev_type(dev, ie) ||
500 wps_build_rf_bands(dev, ie) ||
501 wps_build_assoc_state(NULL, ie) ||
502 wps_build_config_error(ie, WPS_CFG_NO_ERROR) ||
503 wps_build_dev_password_id(ie, pw_id) ||
505 wps_build_manufacturer(dev, ie) ||
506 wps_build_model_name(dev, ie) ||
507 wps_build_model_number(dev, ie) ||
508 wps_build_dev_name(dev, ie) ||
509 wps_build_wfa_ext(ie, req_type == WPS_REQ_ENROLLEE, NULL, 0) ||
511 wps_build_req_dev_type(dev, ie, num_req_dev_types, req_dev_types)
513 wps_build_secondary_dev_type(dev, ie)
515 wpabuf_free(ie);
520 if (dev->p2p && wps_build_dev_name(dev, ie)) {
521 wpabuf_free(ie);
526 return wps_ie_encapsulate(ie);