Home | History | Annotate | Download | only in wps

Lines Matching refs:attr

25 static int wps_set_vendor_ext_wfa_subelem(struct wps_parse_attr *attr,
37 attr->version2 = pos;
40 attr->authorized_macs = pos;
41 attr->authorized_macs_len = len;
49 attr->network_key_shareable = pos;
57 attr->request_to_enroll = pos;
65 attr->settings_delay_time = pos;
77 static int wps_parse_vendor_ext_wfa(struct wps_parse_attr *attr, const u8 *pos,
88 if (wps_set_vendor_ext_wfa_subelem(attr, id, elen, pos) < 0)
97 static int wps_parse_vendor_ext(struct wps_parse_attr *attr, const u8 *pos,
110 return wps_parse_vendor_ext_wfa(attr, pos + 3, len - 3);
124 if (attr->num_vendor_ext >= MAX_WPS_PARSE_VENDOR_EXT) {
130 attr->vendor_ext[attr->num_vendor_ext] = pos;
131 attr->vendor_ext_len[attr->num_vendor_ext] = len;
132 attr->num_vendor_ext++;
138 static int wps_set_attr(struct wps_parse_attr *attr, u16 type,
148 attr->version = pos;
156 attr->msg_type = pos;
164 attr->enrollee_nonce = pos;
172 attr->registrar_nonce = pos;
180 attr->uuid_e = pos;
188 attr->uuid_r = pos;
196 attr->auth_type_flags = pos;
204 attr->encr_type_flags = pos;
212 attr->conn_type_flags = pos;
220 attr->config_methods = pos;
228 attr->sel_reg_config_methods = pos;
236 attr->primary_dev_type = pos;
244 attr->rf_bands = pos;
252 attr->assoc_state = pos;
260 attr->config_error = pos;
268 attr->dev_password_id = pos;
276 attr->oob_dev_password = pos;
284 attr->os_version = pos;
292 attr->wps_state = pos;
300 attr->authenticator = pos;
308 attr->r_hash1 = pos;
316 attr->r_hash2 = pos;
324 attr->e_hash1 = pos;
332 attr->e_hash2 = pos;
340 attr->r_snonce1 = pos;
348 attr->r_snonce2 = pos;
356 attr->e_snonce1 = pos;
364 attr->e_snonce2 = pos;
372 attr->key_wrap_auth = pos;
380 attr->auth_type = pos;
388 attr->encr_type = pos;
396 attr->network_idx = pos;
404 attr->network_key_idx = pos;
412 attr->mac_addr = pos;
420 attr->key_prov_auto = pos;
428 attr->dot1x_enabled = pos;
436 attr->selected_registrar = pos;
444 attr->request_type = pos;
452 attr->response_type = pos;
455 attr->manufacturer = pos;
456 attr->manufacturer_len = len;
459 attr->model_name = pos;
460 attr->model_name_len = len;
463 attr->model_number = pos;
464 attr->model_number_len = len;
467 attr->serial_number = pos;
468 attr->serial_number_len = len;
471 attr->dev_name = pos;
472 attr->dev_name_len = len;
475 attr->public_key = pos;
476 attr->public_key_len = len;
479 attr->encr_settings = pos;
480 attr->encr_settings_len = len;
483 if (attr->num_cred >= MAX_CRED_COUNT) {
489 attr->cred[attr->num_cred] = pos;
490 attr->cred_len[attr->num_cred] = len;
491 attr->num_cred++;
494 attr->ssid = pos;
495 attr->ssid_len = len;
498 attr->network_key = pos;
499 attr->network_key_len = len;
502 attr->eap_type = pos;
503 attr->eap_type_len = len;
506 attr->eap_identity = pos;
507 attr->eap_identity_len = len;
515 attr->ap_setup_locked = pos;
523 if (attr->num_req_dev_type >= MAX_REQ_DEV_TYPE_COUNT) {
529 attr->req_dev_type[attr->num_req_dev_type] = pos;
530 attr->num_req_dev_type++;
539 attr->sec_dev_type_list = pos;
540 attr->sec_dev_type_list_len = len;
543 if (wps_parse_vendor_ext(attr, pos, len) < 0)
556 int wps_parse_msg(const struct wpabuf *msg, struct wps_parse_attr *attr)
562 os_memset(attr, 0, sizeof(*attr));
578 wpa_printf(MSG_EXCESSIVE, "WPS: attr type=0x%x len=%u",
622 if (wps_set_attr(attr, type, pos, len) < 0)