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