Lines Matching refs:pos
240 u8 *pos = (u8 *) frm; /* point to action field */
249 pos += 4 + key_len_total;
250 if (pos > frm + len) {
254 while (pos - frm < len) {
255 u8 ie_len = *(pos + 1);
256 if (pos + 2 + ie_len > frm + len) {
260 wpa_hexdump(MSG_DEBUG, "WNM: Element", pos, 2 + ie_len);
261 if (*pos == WLAN_EID_WNMSLEEP)
262 wnmsleep_ie = (struct wnm_sleep_element *) pos;
263 else if (*pos == WLAN_EID_TFS_RESP) {
265 tfsresp_ie_start = pos;
266 tfsresp_ie_end = pos;
268 wpa_printf(MSG_DEBUG, "EID %d not recognized", *pos);
269 pos += ie_len + 2;
323 u8 id, u8 elen, const u8 *pos)
335 os_memcpy(rep->tsf_info->tsf_offset, pos, 2);
336 os_memcpy(rep->tsf_info->beacon_interval, pos + 2, 2);
349 os_memcpy(rep->con_coun_str->country_string, pos, 2);
362 rep->bss_tran_can->preference = pos[0];
375 os_memcpy(rep->bss_term_dur->duration, pos, 12);
387 os_memcpy(rep->bearing->bearing, pos, 8);
399 rep->meas_pilot->measurement_pilot = pos[0];
400 rep->meas_pilot->num_vendor_specific = pos[1];
401 os_memcpy(rep->meas_pilot->vendor_specific, pos + 2, elen - 2);
414 os_memcpy(rep->rrm_cap->capabilities, pos, 4);
425 rep->mul_bssid->max_bssid_indicator = pos[0];
426 rep->mul_bssid->num_vendor_specific = pos[1];
427 os_memcpy(rep->mul_bssid->vendor_specific, pos + 2, elen - 2);
434 const u8 *pos, u8 len,
444 os_memcpy(rep->bssid, pos, ETH_ALEN);
445 os_memcpy(rep->bssid_information, pos + ETH_ALEN, 4);
446 rep->regulatory_class = *(pos + 10);
447 rep->channel_number = *(pos + 11);
448 rep->phy_type = *(pos + 12);
450 pos += 13;
456 id = *pos++;
457 elen = *pos++;
458 wnm_parse_neighbor_report_elem(rep, id, elen, pos);
460 pos += elen;
500 u8 buf[1000], *pos;
520 pos = mgmt->u.action.u.bss_tm_resp.variable;
522 os_memcpy(pos, target_bssid, ETH_ALEN);
523 pos += ETH_ALEN;
526 len = pos - (u8 *) &mgmt->u.action.category;
588 const u8 *pos, const u8 *end,
591 if (pos + 5 > end)
594 wpa_s->wnm_dialog_token = pos[0];
595 wpa_s->wnm_mode = pos[1];
596 wpa_s->wnm_dissoc_timer = WPA_GET_LE16(pos + 2);
597 wpa_s->wnm_validity_interval = pos[4];
606 pos += 5;
609 if (pos + 12 > end) {
613 os_memcpy(wpa_s->wnm_bss_termination_duration, pos, 12);
614 pos += 12; /* BSS Termination Duration */
621 if (pos + 1 > end || pos + 1 + pos[0] > end) {
626 os_memcpy(url, pos + 1, pos[0]);
627 url[pos[0]] = '\0';
628 pos += 1 + pos[0];
661 while (pos + 2 <= end &&
664 u8 tag = *pos++;
665 u8 len = *pos++;
669 if (pos + len > end) {
674 wpa_s, pos, len,
678 pos += len;
702 u8 buf[1000], *pos;
722 pos = mgmt->u.action.u.bss_tm_query.variable;
724 len = pos - (u8 *) &mgmt->u.action.category;
737 const u8 *pos, *end;
743 pos = action->data;
744 end = pos + action->len;
745 act = *pos++;
758 ieee802_11_rx_bss_trans_mgmt_req(wpa_s, pos, end,