Home | History | Annotate | Download | only in wps

Lines Matching refs:ie

75 		wpa_hexdump_buf(MSG_DEBUG, "WPS: WPS IE from (Re)AssocReq",
78 wpa_printf(MSG_DEBUG, "WPS: Failed to parse WPS IE "
82 "in (Re)AssocReq WPS IE");
84 wpa_printf(MSG_DEBUG, "WPS: Request Type (from WPS IE "
85 "in (Re)AssocReq WPS IE): %d",
163 * wps_is_selected_pbc_registrar - Check whether WPS IE indicates active PBC
164 * @msg: WPS IE contents from Beacon or Probe Response frame
189 * wps_is_selected_pin_registrar - Check whether WPS IE indicates active PIN
190 * @msg: WPS IE contents from Beacon or Probe Response frame
220 * wps_get_uuid_e - Get UUID-E from WPS IE
221 * @msg: WPS IE contents from Beacon or Probe Response frame
238 * wps_build_assoc_req_ie - Build WPS IE for (Re)Association Request
240 * Returns: WPS IE or %NULL on failure
246 struct wpabuf *ie;
249 wpa_printf(MSG_DEBUG, "WPS: Building WPS IE for (Re)Association "
251 ie = wpabuf_alloc(100);
252 if (ie == NULL)
255 wpabuf_put_u8(ie, WLAN_EID_VENDOR_SPECIFIC);
256 len = wpabuf_put(ie, 1);
257 wpabuf_put_be32(ie, WPS_DEV_OUI_WFA);
259 if (wps_build_version(ie) ||
260 wps_build_req_type(ie, req_type)) {
261 wpabuf_free(ie);
265 *len = wpabuf_len(ie) - 2;
267 return ie;
272 * wps_build_probe_req_ie - Build WPS IE for Probe Request
277 * Returns: WPS IE or %NULL on failure
285 struct wpabuf *ie;
289 wpa_printf(MSG_DEBUG, "WPS: Building WPS IE for Probe Request");
291 ie = wpabuf_alloc(200);
292 if (ie == NULL)
295 wpabuf_put_u8(ie, WLAN_EID_VENDOR_SPECIFIC);
296 len = wpabuf_put(ie, 1);
297 wpabuf_put_be32(ie, WPS_DEV_OUI_WFA);
305 if (wps_build_version(ie) ||
306 wps_build_req_type(ie, req_type) ||
307 wps_build_config_methods(ie, methods) ||
308 wps_build_uuid_e(ie, uuid) ||
309 wps_build_primary_dev_type(dev, ie) ||
310 wps_build_rf_bands(dev, ie) ||
311 wps_build_assoc_state(NULL, ie) ||
312 wps_build_config_error(ie, WPS_CFG_NO_ERROR) ||
313 wps_build_dev_password_id(ie, pbc ? DEV_PW_PUSHBUTTON :
315 wpabuf_free(ie);
319 *len = wpabuf_len(ie) - 2;
321 return ie;