Lines Matching refs:wps
44 data->wps = cfg->wps;
47 os_memcpy(data->uuid_r, cfg->wps->uuid, WPS_UUID_LEN);
49 os_memcpy(data->mac_addr_e, cfg->wps->dev.mac_addr, ETH_ALEN);
50 os_memcpy(data->uuid_e, cfg->wps->uuid, WPS_UUID_LEN);
69 if (cfg->wps->ap && !cfg->registrar && cfg->wps->ap_nfc_dev_pw_id) {
75 data->dev_pw_id = cfg->wps->ap_nfc_dev_pw_id;
77 os_memdup(wpabuf_head(cfg->wps->ap_nfc_dev_pw),
78 wpabuf_len(cfg->wps->ap_nfc_dev_pw));
83 data->dev_password_len = wpabuf_len(cfg->wps->ap_nfc_dev_pw);
162 wps_registrar_remove_nfc_pw_token(data->wps->registrar,
170 wps_registrar_invalidate_pin(data->wps->registrar,
173 wps_registrar_unlock_pin(data->wps->registrar, data->uuid_e);
191 * @wps: WPS Registration protocol data from wps_init()
201 enum wps_process_res wps_process_msg(struct wps_data *wps,
205 if (wps->registrar)
206 return wps_registrar_process_msg(wps, op_code, msg);
208 return wps_enrollee_process_msg(wps, op_code, msg);
214 * @wps: WPS Registration protocol data from wps_init()
221 struct wpabuf * wps_get_msg(struct wps_data *wps, enum wsc_op_code *op_code)
223 if (wps->registrar)
224 return wps_registrar_get_msg(wps, op_code);
226 return wps_enrollee_get_msg(wps, op_code);