Lines Matching defs:pos

21 					  u8 id, u8 len, const u8 *pos)
32 attr->version2 = pos;
35 attr->authorized_macs = pos;
44 attr->network_key_shareable = pos;
52 attr->request_to_enroll = pos;
60 attr->settings_delay_time = pos;
68 attr->registrar_configuration_methods = pos;
77 attr->multi_ap_ext = *pos;
91 static int wps_parse_vendor_ext_wfa(struct wps_parse_attr *attr, const u8 *pos,
94 const u8 *end = pos + len;
97 while (end - pos >= 2) {
98 id = *pos++;
99 elen = *pos++;
100 if (elen > end - pos)
102 if (wps_set_vendor_ext_wfa_subelem(attr, id, elen, pos) < 0)
104 pos += elen;
111 static int wps_parse_vendor_ext(struct wps_parse_attr *attr, const u8 *pos,
121 vendor_id = WPA_GET_BE24(pos);
124 return wps_parse_vendor_ext_wfa(attr, pos + 3, len - 3);
144 attr->vendor_ext[attr->num_vendor_ext] = pos;
153 const u8 *pos, u16 len)
162 attr->version = pos;
170 attr->msg_type = pos;
178 attr->enrollee_nonce = pos;
186 attr->registrar_nonce = pos;
194 attr->uuid_e = pos;
202 attr->uuid_r = pos;
210 attr->auth_type_flags = pos;
218 attr->encr_type_flags = pos;
226 attr->conn_type_flags = pos;
234 attr->config_methods = pos;
242 attr->sel_reg_config_methods = pos;
250 attr->primary_dev_type = pos;
258 attr->rf_bands = pos;
266 attr->assoc_state = pos;
274 attr->config_error = pos;
282 attr->dev_password_id = pos;
290 WPA_GET_BE16(pos + WPS_OOB_PUBKEY_HASH_LEN) !=
296 attr->oob_dev_password = pos;
305 attr->os_version = pos;
313 attr->wps_state = pos;
321 attr->authenticator = pos;
329 attr->r_hash1 = pos;
337 attr->r_hash2 = pos;
345 attr->e_hash1 = pos;
353 attr->e_hash2 = pos;
361 attr->r_snonce1 = pos;
369 attr->r_snonce2 = pos;
377 attr->e_snonce1 = pos;
385 attr->e_snonce2 = pos;
393 attr->key_wrap_auth = pos;
401 attr->auth_type = pos;
409 attr->encr_type = pos;
417 attr->network_idx = pos;
425 attr->network_key_idx = pos;
433 attr->mac_addr = pos;
441 attr->selected_registrar = pos;
449 attr->request_type = pos;
457 attr->response_type = pos;
460 attr->manufacturer = pos;
467 attr->model_name = pos;
474 attr->model_number = pos;
481 attr->serial_number = pos;
494 attr->dev_name = pos;
510 attr->public_key = pos;
514 attr->encr_settings = pos;
524 attr->cred[attr->num_cred] = pos;
534 attr->ssid = pos;
538 attr->network_key = pos;
547 attr->ap_setup_locked = pos;
561 attr->req_dev_type[attr->num_req_dev_type] = pos;
571 attr->sec_dev_type_list = pos;
575 if (wps_parse_vendor_ext(attr, pos, len) < 0)
584 attr->ap_channel = pos;
598 const u8 *pos, *end;
605 pos = wpabuf_head(msg);
606 end = pos + wpabuf_len(msg);
608 while (pos < end) {
609 if (end - pos < 4) {
612 (unsigned long) (end - pos));
616 type = WPA_GET_BE16(pos);
617 pos += 2;
618 len = WPA_GET_BE16(pos);
619 pos += 2;
622 if (len > end - pos) {
638 pos -= 3;
652 for (i = 0; i < end - pos; i++) {
653 if (pos[i])
656 if (i == end - pos) {
664 if (wps_set_attr(attr, type, pos, len) < 0)
670 pos += len;