Lines Matching refs:rep
341 static void wnm_parse_neighbor_report_elem(struct neighbor_report *rep, in wnm_parse_neighbor_report_elem() argument
350 rep->tsf_offset = WPA_GET_LE16(pos); in wnm_parse_neighbor_report_elem()
351 rep->beacon_int = WPA_GET_LE16(pos + 2); in wnm_parse_neighbor_report_elem()
352 rep->tsf_present = 1; in wnm_parse_neighbor_report_elem()
360 os_memcpy(rep->country, pos, 2); in wnm_parse_neighbor_report_elem()
361 rep->country_present = 1; in wnm_parse_neighbor_report_elem()
369 rep->preference = pos[0]; in wnm_parse_neighbor_report_elem()
370 rep->preference_present = 1; in wnm_parse_neighbor_report_elem()
373 rep->bss_term_tsf = WPA_GET_LE64(pos); in wnm_parse_neighbor_report_elem()
374 rep->bss_term_dur = WPA_GET_LE16(pos + 8); in wnm_parse_neighbor_report_elem()
375 rep->bss_term_present = 1; in wnm_parse_neighbor_report_elem()
383 rep->bearing = WPA_GET_LE16(pos); in wnm_parse_neighbor_report_elem()
384 rep->distance = WPA_GET_LE32(pos + 2); in wnm_parse_neighbor_report_elem()
385 rep->rel_height = WPA_GET_LE16(pos + 2 + 4); in wnm_parse_neighbor_report_elem()
386 rep->bearing_present = 1; in wnm_parse_neighbor_report_elem()
394 os_free(rep->meas_pilot); in wnm_parse_neighbor_report_elem()
395 rep->meas_pilot = os_zalloc(sizeof(struct measurement_pilot)); in wnm_parse_neighbor_report_elem()
396 if (rep->meas_pilot == NULL) in wnm_parse_neighbor_report_elem()
398 rep->meas_pilot->measurement_pilot = pos[0]; in wnm_parse_neighbor_report_elem()
399 rep->meas_pilot->subelem_len = elen - 1; in wnm_parse_neighbor_report_elem()
400 os_memcpy(rep->meas_pilot->subelems, pos + 1, elen - 1); in wnm_parse_neighbor_report_elem()
408 os_memcpy(rep->rm_capab, pos, 5); in wnm_parse_neighbor_report_elem()
409 rep->rm_capab_present = 1; in wnm_parse_neighbor_report_elem()
416 os_free(rep->mul_bssid); in wnm_parse_neighbor_report_elem()
417 rep->mul_bssid = os_zalloc(sizeof(struct multiple_bssid)); in wnm_parse_neighbor_report_elem()
418 if (rep->mul_bssid == NULL) in wnm_parse_neighbor_report_elem()
420 rep->mul_bssid->max_bssid_indicator = pos[0]; in wnm_parse_neighbor_report_elem()
421 rep->mul_bssid->subelem_len = elen - 1; in wnm_parse_neighbor_report_elem()
422 os_memcpy(rep->mul_bssid->subelems, pos + 1, elen - 1); in wnm_parse_neighbor_report_elem()
461 struct neighbor_report *rep) in wnm_parse_neighbor_report() argument
470 os_memcpy(rep->bssid, pos, ETH_ALEN); in wnm_parse_neighbor_report()
471 rep->bssid_info = WPA_GET_LE32(pos + ETH_ALEN); in wnm_parse_neighbor_report()
472 rep->regulatory_class = *(pos + 10); in wnm_parse_neighbor_report()
473 rep->channel_number = *(pos + 11); in wnm_parse_neighbor_report()
474 rep->phy_type = *(pos + 12); in wnm_parse_neighbor_report()
491 wnm_parse_neighbor_report_elem(rep, id, elen, pos); in wnm_parse_neighbor_report()
496 rep->freq = wnm_nei_get_chan(wpa_s, rep->regulatory_class, in wnm_parse_neighbor_report()
497 rep->channel_number); in wnm_parse_neighbor_report()
1125 struct neighbor_report *rep; in ieee802_11_rx_bss_trans_mgmt_req() local
1126 rep = &wpa_s->wnm_neighbor_report_elements[ in ieee802_11_rx_bss_trans_mgmt_req()
1128 wnm_parse_neighbor_report(wpa_s, pos, len, rep); in ieee802_11_rx_bss_trans_mgmt_req()