Home | History | Annotate | Download | only in wps

Lines Matching refs:wps

24  * wps_init - Initialize WPS Registration protocol data
25 * @cfg: WPS configuration
28 * This function is used to initialize WPS data for a registration protocol
38 data->wps = cfg->wps;
41 os_memcpy(data->uuid_r, cfg->wps->uuid, WPS_UUID_LEN);
43 os_memcpy(data->mac_addr_e, cfg->wps->dev.mac_addr, ETH_ALEN);
44 os_memcpy(data->uuid_e, cfg->wps->uuid, WPS_UUID_LEN);
75 wpa_hexdump_buf(MSG_DEBUG, "WPS: WPS IE from (Re)AssocReq",
78 wpa_printf(MSG_DEBUG, "WPS: Failed to parse WPS IE "
81 wpa_printf(MSG_DEBUG, "WPS: No Request Type attribute "
82 "in (Re)AssocReq WPS IE");
84 wpa_printf(MSG_DEBUG, "WPS: Request Type (from WPS IE "
85 "in (Re)AssocReq WPS IE): %d",
96 * wps_deinit - Deinitialize WPS Registration protocol data
97 * @data: WPS Registration protocol data from wps_init()
102 wpa_printf(MSG_DEBUG, "WPS: Full PIN information revealed and "
105 wps_registrar_invalidate_pin(data->wps->registrar,
108 wps_registrar_unlock_pin(data->wps->registrar, data->uuid_e);
122 * wps_process_msg - Process a WPS message
123 * @wps: WPS Registration protocol data from wps_init()
128 * This function is used to process WPS messages with OP Codes WSC_ACK,
133 enum wps_process_res wps_process_msg(struct wps_data *wps,
137 if (wps->registrar)
138 return wps_registrar_process_msg(wps, op_code, msg);
140 return wps_enrollee_process_msg(wps, op_code, msg);
145 * wps_get_msg - Build a WPS message
146 * @wps: WPS Registration protocol data from wps_init()
148 * Returns: The generated WPS message or %NULL on failure
153 struct wpabuf * wps_get_msg(struct wps_data *wps, enum wsc_op_code *op_code)
155 if (wps->registrar)
156 return wps_registrar_get_msg(wps, op_code);
158 return wps_enrollee_get_msg(wps, op_code);
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
249 wpa_printf(MSG_DEBUG, "WPS: Building WPS IE for (Re)Association "
272 * wps_build_probe_req_ie - Build WPS IE for Probe Request
277 * Returns: WPS IE or %NULL on failure
289 wpa_printf(MSG_DEBUG, "WPS: Building WPS IE for Probe Request");