Home
last modified time | relevance | path

Searched refs:nr (Results 1 – 10 of 10) sorted by relevance

/hostap-latest/src/ap/
Dneighbor_db.c23 struct hostapd_neighbor_entry *nr; in hostapd_neighbor_get() local
25 dl_list_for_each(nr, &hapd->nr_db, struct hostapd_neighbor_entry, in hostapd_neighbor_get()
27 if (ether_addr_equal(bssid, nr->bssid) && in hostapd_neighbor_get()
29 (ssid->ssid_len == nr->ssid.ssid_len && in hostapd_neighbor_get()
30 os_memcmp(ssid->ssid, nr->ssid.ssid, in hostapd_neighbor_get()
32 return nr; in hostapd_neighbor_get()
40 struct hostapd_neighbor_entry *nr; in hostapd_neighbor_show() local
46 dl_list_for_each(nr, &hapd->nr_db, struct hostapd_neighbor_entry, in hostapd_neighbor_show()
55 wpa_snprintf_hex(ssid, sizeof(ssid), nr->ssid.ssid, in hostapd_neighbor_show()
56 nr->ssid.ssid_len); in hostapd_neighbor_show()
[all …]
Drrm.c156 static int hostapd_check_lci_age(struct hostapd_neighbor_entry *nr, u16 max_age) in hostapd_check_lci_age() argument
161 if (nr->stationary || max_age == 0xffff) in hostapd_check_lci_age()
170 os_time_sub(&curr, &nr->lci_date, &diff); in hostapd_check_lci_age()
184 struct hostapd_neighbor_entry *nr, in hostapd_neighbor_report_len() argument
187 size_t len = 2 + wpabuf_len(nr->nr); in hostapd_neighbor_report_len()
189 if (send_lci && nr->lci) in hostapd_neighbor_report_len()
190 len += 2 + wpabuf_len(nr->lci); in hostapd_neighbor_report_len()
192 if (send_civic && nr->civic) in hostapd_neighbor_report_len()
193 len += 2 + wpabuf_len(nr->civic); in hostapd_neighbor_report_len()
204 struct hostapd_neighbor_entry *nr; in hostapd_send_nei_report_resp() local
[all …]
Dneighbor_db.h19 const struct wpabuf *nr, const struct wpabuf *lci,
Dieee802_11.c7305 struct hostapd_neighbor_entry *nr; in hostapd_eid_nr_db_len() local
7308 dl_list_for_each(nr, &hapd->nr_db, struct hostapd_neighbor_entry, in hostapd_eid_nr_db_len()
7310 if (!nr->nr || wpabuf_len(nr->nr) < 12) in hostapd_eid_nr_db_len()
7313 if (nr->short_ssid == hapd->conf->ssid.short_ssid) in hostapd_eid_nr_db_len()
7608 struct hostapd_neighbor_entry *nr; in hostapd_eid_nr_db() local
7612 dl_list_for_each(nr, &hapd->nr_db, struct hostapd_neighbor_entry, in hostapd_eid_nr_db()
7614 if (!nr->nr || wpabuf_len(nr->nr) < 12) in hostapd_eid_nr_db()
7617 if (nr->short_ssid == hapd->conf->ssid.short_ssid) in hostapd_eid_nr_db()
7633 *eid++ = wpabuf_head_u8(nr->nr)[10]; in hostapd_eid_nr_db()
7635 *eid++ = wpabuf_head_u8(nr->nr)[11]; in hostapd_eid_nr_db()
[all …]
Dhostapd.h153 struct wpabuf *nr; member
/hostap-latest/tests/hwsim/
Dtest_rrm.py32 nr = "00112233445500000000510107" variable
86 if "FAIL" not in hapd.request("SET_NEIGHBOR 00:11:22:33:44:gg ssid=\"test1\" nr=" + nr):
90 if "FAIL" not in hapd.request("SET_NEIGHBOR 00:11:22:33:44:55 ssid=test1 nr=" + nr):
94 if "FAIL" not in hapd.request("SET_NEIGHBOR 00:11:22:33:44:55 ssid=\"test1 nr=" + nr):
98 if "FAIL" not in hapd.request("SET_NEIGHBOR 00:11:22:33:44:55 nr=" + nr):
106 if "FAIL" not in hapd.request("SET_NEIGHBOR 00:11:22:33:44:55 ssid=\"test1\" nr=" + nr[:-1]):
110 …if "FAIL" not in hapd.request("SET_NEIGHBOR 00:11:22:33:44:55 ssid=\"test1\" nr=" + nr + " lci=1"):
114 …if "FAIL" not in hapd.request("SET_NEIGHBOR 00:11:22:33:44:55 ssid=\"test1\" nr=" + nr + " civic=1…
122 …if "OK" not in hapd.request("SET_NEIGHBOR 00:11:22:33:44:55 ssid=\"test1\" nr=" + nr + " lci=" + l…
134 …if "OK" not in hapd.request("SET_NEIGHBOR 00:11:22:33:44:56 ssid=\"test1\" nr=" + nr + " lci=" + l…
[all …]
/hostap-latest/src/drivers/
Ddriver_ndis.c791 struct wpa_scan_res *nr; in wpa_driver_ndis_add_scan_ssid() local
800 nr = os_realloc(r, sizeof(*r) + r->ie_len + 2 + ssid->SsidLength); in wpa_driver_ndis_add_scan_ssid()
801 if (nr == NULL) in wpa_driver_ndis_add_scan_ssid()
804 pos = ((u8 *) (nr + 1)) + nr->ie_len; in wpa_driver_ndis_add_scan_ssid()
808 nr->ie_len += 2 + ssid->SsidLength; in wpa_driver_ndis_add_scan_ssid()
810 return nr; in wpa_driver_ndis_add_scan_ssid()
/hostap-latest/src/eap_server/
Dikev2.c424 const u8 *nr, size_t nr_len) in ikev2_process_nr() argument
426 if (nr == NULL) { in ikev2_process_nr()
438 os_memcpy(data->r_nonce, nr, nr_len); in ikev2_process_nr()
/hostap-latest/hostapd/
Dctrl_iface.c3361 struct wpabuf *nr, *lci = NULL, *civic = NULL; in hostapd_ctrl_iface_set_neighbor() local
3400 nr = wpabuf_parse_bin(tmp + 3); in hostapd_ctrl_iface_set_neighbor()
3401 if (!nr) { in hostapd_ctrl_iface_set_neighbor()
3456 ret = hostapd_neighbor_set(hapd, bssid, &ssid, nr, lci, civic, in hostapd_ctrl_iface_set_neighbor()
3460 wpabuf_free(nr); in hostapd_ctrl_iface_set_neighbor()
/hostap-latest/wpa_supplicant/
Dctrl_iface.c10620 const u8 *nr; in wpas_ctrl_neighbor_rep_cb() local
10643 nr = pos; in wpas_ctrl_neighbor_rep_cb()
10682 MAC2STR(nr), WPA_GET_LE32(nr + ETH_ALEN), in wpas_ctrl_neighbor_rep_cb()
10683 nr[ETH_ALEN + 4], nr[ETH_ALEN + 5], in wpas_ctrl_neighbor_rep_cb()
10684 nr[ETH_ALEN + 6], in wpas_ctrl_neighbor_rep_cb()