/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/ |
D | blacklist.c | 22 const u8 *bssid) in wpa_blacklist_get() argument 26 if (wpa_s == NULL || bssid == NULL) in wpa_blacklist_get() 31 if (os_memcmp(e->bssid, bssid, ETH_ALEN) == 0) in wpa_blacklist_get() 56 int wpa_blacklist_add(struct wpa_supplicant *wpa_s, const u8 *bssid) in wpa_blacklist_add() argument 60 if (wpa_s == NULL || bssid == NULL) in wpa_blacklist_add() 63 e = wpa_blacklist_get(wpa_s, bssid); in wpa_blacklist_add() 68 MAC2STR(bssid), e->count); in wpa_blacklist_add() 75 os_memcpy(e->bssid, bssid, ETH_ALEN); in wpa_blacklist_add() 80 MAC2STR(bssid)); in wpa_blacklist_add() 92 int wpa_blacklist_del(struct wpa_supplicant *wpa_s, const u8 *bssid) in wpa_blacklist_del() argument [all …]
|
D | bgscan_learn.c | 24 u8 bssid[ETH_ALEN]; member 52 static int bssid_in_array(u8 *array, size_t array_len, const u8 *bssid) in bssid_in_array() argument 60 if (os_memcmp(array + i * ETH_ALEN, bssid, ETH_ALEN) == 0) in bssid_in_array() 69 const u8 *bssid) in bgscan_learn_add_neighbor() argument 73 if (os_memcmp(bss->bssid, bssid, ETH_ALEN) == 0) in bgscan_learn_add_neighbor() 75 if (bssid_in_array(bss->neigh, bss->num_neigh, bssid)) in bgscan_learn_add_neighbor() 82 os_memcpy(n + bss->num_neigh * ETH_ALEN, bssid, ETH_ALEN); in bgscan_learn_add_neighbor() 89 struct bgscan_learn_data *data, const u8 *bssid) in bgscan_learn_get_bss() argument 94 if (os_memcmp(bss->bssid, bssid, ETH_ALEN) == 0) in bgscan_learn_get_bss() 130 if (hwaddr_aton(buf + 4, bss->bssid) < 0) { in bgscan_learn_load() [all …]
|
D | notify.c | 95 if (wpa_s->fst && !is_zero_ether_addr(wpa_s->bssid)) { in wpas_notify_state_changed() 97 fst_notify_peer_connected(wpa_s->fst, wpa_s->bssid); in wpas_notify_state_changed() 100 fst_notify_peer_disconnected(wpa_s->fst, wpa_s->bssid); in wpas_notify_state_changed() 116 MAC2STR(wpa_s->bssid), in wpas_notify_state_changed() 212 const u8 *bssid; in wpas_notify_bssid_changed() local 214 if (is_zero_ether_addr(wpa_s->bssid) && in wpas_notify_bssid_changed() 216 bssid = wpa_s->pending_bssid; in wpas_notify_bssid_changed() 218 } else if (!is_zero_ether_addr(wpa_s->bssid) && in wpas_notify_bssid_changed() 220 bssid = wpa_s->bssid; in wpas_notify_bssid_changed() 222 } else if (is_zero_ether_addr(wpa_s->bssid) && in wpas_notify_bssid_changed() [all …]
|
D | wnm_sta.c | 38 return wpa_drv_wnm_oper(wpa_s, oper, wpa_s->bssid, buf, buf_len); in ieee80211_11_get_tfs_ie() 72 MAC2STR(wpa_s->bssid)); in ieee802_11_send_wnmsleep_req() 154 os_memcpy(mgmt->da, wpa_s->bssid, ETH_ALEN); in ieee802_11_send_wnmsleep_req() 156 os_memcpy(mgmt->bssid, wpa_s->bssid, ETH_ALEN); in ieee802_11_send_wnmsleep_req() 181 res = wpa_drv_send_action(wpa_s, wpa_s->assoc_freq, 0, wpa_s->bssid, in ieee802_11_send_wnmsleep_req() 182 wpa_s->own_addr, wpa_s->bssid, in ieee802_11_send_wnmsleep_req() 204 wpa_s->bssid, NULL, NULL); in wnm_sleep_mode_enter_success() 215 if (ieee80211_11_set_tfs_ie(wpa_s, wpa_s->bssid, in wnm_sleep_mode_enter_success() 230 wpa_drv_wnm_oper(wpa_s, WNM_SLEEP_EXIT_CONFIRM, wpa_s->bssid, in wnm_sleep_mode_exit_success() 396 wpa_s->bssid, NULL, NULL); in ieee802_11_rx_wnmsleep_resp() [all …]
|
D | events.c | 136 struct wpa_supplicant *wpa_s, const u8 *bssid) in wpa_supplicant_get_new_bss() argument 142 bss = wpa_bss_get(wpa_s, bssid, ssid->ssid, ssid->ssid_len); in wpa_supplicant_get_new_bss() 144 bss = wpa_bss_get_bssid(wpa_s, bssid); in wpa_supplicant_get_new_bss() 152 struct wpa_bss *bss = wpa_supplicant_get_new_bss(wpa_s, wpa_s->bssid); in wpa_supplicant_update_current_bss() 158 bss = wpa_supplicant_get_new_bss(wpa_s, wpa_s->bssid); in wpa_supplicant_update_current_bss() 211 if (disallowed_bssid(wpa_s, wpa_s->bssid) || in wpa_supplicant_select_config() 305 bssid_changed = !is_zero_ether_addr(wpa_s->bssid); in wpa_supplicant_mark_disassoc() 306 os_memset(wpa_s->bssid, 0, ETH_ALEN); in wpa_supplicant_mark_disassoc() 376 MAC2STR(data->pmkid_candidate.bssid), in wpa_supplicant_event_pmkid_candidate() 380 pmksa_candidate_add(wpa_s->wpa, data->pmkid_candidate.bssid, in wpa_supplicant_event_pmkid_candidate() [all …]
|
D | hs20_supplicant.c | 49 u8 bssid[ETH_ALEN]; member 70 u8 *bssid = wpa_s->bssid; in hs20_configure_frame_filters() local 78 " is not a Hotspot 2.0 network", MAC2STR(bssid)); in hs20_configure_frame_filters() 304 os_memcpy(icon_entry->bssid, dst, ETH_ALEN); in hs20_anqp_send_req() 322 const u8 *bssid, in hs20_find_icon() argument 328 if (os_memcmp(icon->bssid, bssid, ETH_ALEN) == 0 && in hs20_find_icon() 337 int hs20_get_icon(struct wpa_supplicant *wpa_s, const u8 *bssid, in hs20_get_icon() argument 348 MAC2STR(bssid), file_name, (unsigned int) offset, in hs20_get_icon() 351 icon = hs20_find_icon(wpa_s, bssid, file_name); in hs20_get_icon() 378 MAC2STR(icon->bssid), icon->dialog_token, in hs20_free_icon_entry() [all …]
|
D | bss.c | 244 " SSID '%s' due to %s", bss->id, MAC2STR(bss->bssid), in wpa_bss_remove() 246 wpas_notify_bss_removed(wpa_s, bss->bssid, bss->id); in wpa_bss_remove() 260 struct wpa_bss * wpa_bss_get(struct wpa_supplicant *wpa_s, const u8 *bssid, in wpa_bss_get() argument 264 if (!wpa_supplicant_filter_bssid_match(wpa_s, bssid)) in wpa_bss_get() 267 if (os_memcmp(bss->bssid, bssid, ETH_ALEN) == 0 && in wpa_bss_get() 298 os_memcpy(dst->bssid, src->bssid, ETH_ALEN); in wpa_bss_copy_res() 381 return !is_zero_ether_addr(bss->bssid) && in wpa_bss_in_use() 382 (os_memcmp(bss->bssid, wpa_s->bssid, ETH_ALEN) == 0 || in wpa_bss_in_use() 383 os_memcmp(bss->bssid, wpa_s->pending_bssid, ETH_ALEN) == 0); in wpa_bss_in_use() 467 bss->id, MAC2STR(bss->bssid), wpa_ssid_txt(ssid, ssid_len), in wpa_bss_add() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/ |
D | bssid_ignore.c | 22 const u8 *bssid) in wpa_bssid_ignore_get() argument 26 if (wpa_s == NULL || bssid == NULL) in wpa_bssid_ignore_get() 40 if (os_memcmp(e->bssid, bssid, ETH_ALEN) == 0) in wpa_bssid_ignore_get() 65 int wpa_bssid_ignore_add(struct wpa_supplicant *wpa_s, const u8 *bssid) in wpa_bssid_ignore_add() argument 70 if (wpa_s == NULL || bssid == NULL) in wpa_bssid_ignore_add() 73 e = wpa_bssid_ignore_get(wpa_s, bssid); in wpa_bssid_ignore_add() 90 MAC2STR_SEC(bssid), e->count, e->timeout_secs); in wpa_bssid_ignore_add() 97 os_memcpy(e->bssid, bssid, ETH_ALEN); in wpa_bssid_ignore_add() 105 MAC2STR_SEC(bssid), e->timeout_secs); in wpa_bssid_ignore_add() 117 int wpa_bssid_ignore_del(struct wpa_supplicant *wpa_s, const u8 *bssid) in wpa_bssid_ignore_del() argument [all …]
|
D | bgscan_learn.c | 24 u8 bssid[ETH_ALEN]; member 52 static int bssid_in_array(u8 *array, size_t array_len, const u8 *bssid) in bssid_in_array() argument 60 if (os_memcmp(array + i * ETH_ALEN, bssid, ETH_ALEN) == 0) in bssid_in_array() 69 const u8 *bssid) in bgscan_learn_add_neighbor() argument 73 if (os_memcmp(bss->bssid, bssid, ETH_ALEN) == 0) in bgscan_learn_add_neighbor() 75 if (bssid_in_array(bss->neigh, bss->num_neigh, bssid)) in bgscan_learn_add_neighbor() 82 os_memcpy(n + bss->num_neigh * ETH_ALEN, bssid, ETH_ALEN); in bgscan_learn_add_neighbor() 89 struct bgscan_learn_data *data, const u8 *bssid) in bgscan_learn_get_bss() argument 94 if (os_memcmp(bss->bssid, bssid, ETH_ALEN) == 0) in bgscan_learn_get_bss() 130 if (hwaddr_aton(buf + 4, bss->bssid) < 0) { in bgscan_learn_load() [all …]
|
D | wnm_sta.c | 38 return wpa_drv_wnm_oper(wpa_s, oper, wpa_s->bssid, buf, buf_len); in ieee80211_11_get_tfs_ie() 72 MAC2STR_SEC(wpa_s->bssid)); in ieee802_11_send_wnmsleep_req() 163 os_memcpy(mgmt->da, wpa_s->bssid, ETH_ALEN); in ieee802_11_send_wnmsleep_req() 165 os_memcpy(mgmt->bssid, wpa_s->bssid, ETH_ALEN); in ieee802_11_send_wnmsleep_req() 190 res = wpa_drv_send_action(wpa_s, wpa_s->assoc_freq, 0, wpa_s->bssid, in ieee802_11_send_wnmsleep_req() 191 wpa_s->own_addr, wpa_s->bssid, in ieee802_11_send_wnmsleep_req() 213 wpa_s->bssid, NULL, NULL); in wnm_sleep_mode_enter_success() 224 if (ieee80211_11_set_tfs_ie(wpa_s, wpa_s->bssid, in wnm_sleep_mode_enter_success() 239 wpa_drv_wnm_oper(wpa_s, WNM_SLEEP_EXIT_CONFIRM, wpa_s->bssid, in wnm_sleep_mode_exit_success() 413 wpa_s->bssid, NULL, NULL); in ieee802_11_rx_wnmsleep_resp() [all …]
|
D | pasn_supplicant.c | 31 u8 bssid[ETH_ALEN]; member 67 static void wpas_pasn_auth_status(struct wpa_supplicant *wpa_s, const u8 *bssid, in wpas_pasn_auth_status() argument 83 MAC2STR(bssid), in wpas_pasn_auth_status() 88 MAC2STR_SEC(bssid), in wpas_pasn_auth_status() 99 MAC2STR(bssid), wpa_key_mgmt_txt(akmp, WPA_PROTO_RSN), in wpas_pasn_auth_status() 119 wpa_s->own_addr, pasn->bssid, in wpas_pasn_wd_sae_commit() 417 bss = wpa_bss_get_bssid(wpa_s, pasn->bssid); in wpas_pasn_wd_fils_auth() 582 pasn->bssid, pasn->akmp); in wpas_pasn_wd_fils_rx() 692 wpa_pasn_build_auth_header(buf, pasn->bssid, in wpas_pasn_build_auth_1() 693 wpa_s->own_addr, pasn->bssid, in wpas_pasn_build_auth_1() [all …]
|
D | notify.c | 123 if (wpa_s->fst && !is_zero_ether_addr(wpa_s->bssid)) { in wpas_notify_state_changed() 125 fst_notify_peer_connected(wpa_s->fst, wpa_s->bssid); in wpas_notify_state_changed() 128 fst_notify_peer_disconnected(wpa_s->fst, wpa_s->bssid); in wpas_notify_state_changed() 145 MAC2STR(wpa_s->bssid), in wpas_notify_state_changed() 154 os_memcpy(wpaStateChangedParma.bssid, wpa_s->bssid, ETH_ALEN); in wpas_notify_state_changed() 155 wpa_printf(MSG_INFO, "wpaStateChangedParma.bssid" MACSTR, MAC2STR(wpa_s->bssid)); in wpas_notify_state_changed() 259 const u8 *bssid; in wpas_notify_bssid_changed() local 261 if (is_zero_ether_addr(wpa_s->bssid) && in wpas_notify_bssid_changed() 263 bssid = wpa_s->pending_bssid; in wpas_notify_bssid_changed() 265 } else if (!is_zero_ether_addr(wpa_s->bssid) && in wpas_notify_bssid_changed() [all …]
|
D | bss.c | 232 " SSID '%s' due to %s", bss->id, MAC2STR(bss->bssid), in wpa_bss_remove() 235 " SSID '%s' due to %s", bss->id, MAC2STR_SEC(bss->bssid), in wpa_bss_remove() 237 wpas_notify_bss_removed(wpa_s, bss->bssid, bss->id); in wpa_bss_remove() 251 struct wpa_bss * wpa_bss_get(struct wpa_supplicant *wpa_s, const u8 *bssid, in wpa_bss_get() argument 255 if (!wpa_supplicant_filter_bssid_match(wpa_s, bssid)) in wpa_bss_get() 258 if (os_memcmp(bss->bssid, bssid, ETH_ALEN) == 0 && in wpa_bss_get() 289 os_memcpy(dst->bssid, src->bssid, ETH_ALEN); in wpa_bss_copy_res() 351 if (os_memcmp(bss->bssid, wpa_s->pending_join_iface_addr, in is_p2p_pending_bss() 393 return !is_zero_ether_addr(bss->bssid) && in wpa_bss_in_use() 394 (os_memcmp(bss->bssid, wpa_s->bssid, ETH_ALEN) == 0 || in wpa_bss_in_use() [all …]
|
D | events.c | 145 struct wpa_supplicant *wpa_s, const u8 *bssid) in wpa_supplicant_get_new_bss() argument 151 bss = wpa_bss_get(wpa_s, bssid, ssid->ssid, ssid->ssid_len); in wpa_supplicant_get_new_bss() 153 bss = wpa_bss_get_bssid(wpa_s, bssid); in wpa_supplicant_get_new_bss() 161 struct wpa_bss *bss = wpa_supplicant_get_new_bss(wpa_s, wpa_s->bssid); in wpa_supplicant_update_current_bss() 167 bss = wpa_supplicant_get_new_bss(wpa_s, wpa_s->bssid); in wpa_supplicant_update_current_bss() 232 if (disallowed_bssid(wpa_s, wpa_s->bssid) || in wpa_supplicant_select_config() 326 bssid_changed = !is_zero_ether_addr(wpa_s->bssid); in wpa_supplicant_mark_disassoc() 327 os_memset(wpa_s->bssid, 0, ETH_ALEN); in wpa_supplicant_mark_disassoc() 407 MAC2STR(data->pmkid_candidate.bssid), in wpa_supplicant_event_pmkid_candidate() 412 MAC2STR_SEC(data->pmkid_candidate.bssid), in wpa_supplicant_event_pmkid_candidate() [all …]
|
D | wps_supplicant.c | 90 const u8 *bssid = wpa_s->bssid; in wpas_wps_eapol_cb() local 91 if (is_zero_ether_addr(bssid)) in wpas_wps_eapol_cb() 92 bssid = wpa_s->pending_bssid; in wpas_wps_eapol_cb() 96 "suitable AP", MAC2STR_SEC(bssid)); in wpas_wps_eapol_cb() 97 wpa_bssid_ignore_add(wpa_s, bssid); in wpas_wps_eapol_cb() 208 bss = wpa_bss_get(wpa_s, wpa_s->bssid, in wpas_wps_security_workaround() 287 if (os_memcmp(ssid->bssid, new_ssid->bssid, ETH_ALEN) != in wpas_wps_remove_dup_network() 738 wpas_p2p_wps_success(wpa_s, wpa_s->bssid, 0); in wpa_supplicant_wps_event_success() 1013 const u8 *bssid) in wpas_wps_add_network() argument 1038 if (bssid) { in wpas_wps_add_network() [all …]
|
D | bssid_ignore.h | 14 u8 bssid[ETH_ALEN]; member 26 const u8 *bssid); 27 int wpa_bssid_ignore_add(struct wpa_supplicant *wpa_s, const u8 *bssid); 28 int wpa_bssid_ignore_del(struct wpa_supplicant *wpa_s, const u8 *bssid); 29 int wpa_bssid_ignore_is_listed(struct wpa_supplicant *wpa_s, const u8 *bssid);
|
D | sme.c | 89 const u8 *bssid, int external, in sme_auth_build_sae_commit() argument 130 os_memcmp(bssid, wpa_s->sme.sae.tmp->bssid, ETH_ALEN) == 0) { in sme_auth_build_sae_commit() 142 bss = wpa_bss_get_bssid_latest(wpa_s, bssid); in sme_auth_build_sae_commit() 147 bss = wpa_bss_get_bssid_latest(wpa_s, bssid); in sme_auth_build_sae_commit() 191 wpa_s->own_addr, bssid, in sme_auth_build_sae_commit() 195 sae_prepare_commit(wpa_s->own_addr, bssid, in sme_auth_build_sae_commit() 202 os_memcpy(wpa_s->sme.sae.tmp->bssid, bssid, ETH_ALEN); in sme_auth_build_sae_commit() 208 os_memcpy(wpa_s->sme.sae.tmp->peer_addr, bssid, ETH_ALEN); in sme_auth_build_sae_commit() 365 params.bssid = bss->bssid; in sme_send_authentication() 450 if (pmksa_cache_set_current(wpa_s->wpa, NULL, bss->bssid, in sme_send_authentication() [all …]
|
D | hs20_supplicant.c | 49 u8 bssid[ETH_ALEN]; member 70 u8 *bssid = wpa_s->bssid; in hs20_configure_frame_filters() local 78 " is not a Hotspot 2.0 network", MAC2STR_SEC(bssid)); in hs20_configure_frame_filters() 305 os_memcpy(icon_entry->bssid, dst, ETH_ALEN); in hs20_anqp_send_req() 323 const u8 *bssid, in hs20_find_icon() argument 329 if (os_memcmp(icon->bssid, bssid, ETH_ALEN) == 0 && in hs20_find_icon() 338 int hs20_get_icon(struct wpa_supplicant *wpa_s, const u8 *bssid, in hs20_get_icon() argument 349 MAC2STR_SEC(bssid), file_name, (unsigned int) offset, in hs20_get_icon() 352 icon = hs20_find_icon(wpa_s, bssid, file_name); in hs20_get_icon() 379 MAC2STR_SEC(icon->bssid), icon->dialog_token, in hs20_free_icon_entry() [all …]
|
/third_party/libwebsockets/lib/drivers/netdev/ |
D | wifi.c | 61 const uint8_t *bssid) in lws_netdev_wifi_scan_find() argument 68 !memcmp(bssid, w->bssid, 6)) in lws_netdev_wifi_scan_find() 107 __func__, (const char *)&w[1], w->bssid[0], in lws_netdev_wifi_scan_select() 108 w->bssid[1], w->bssid[2], w->bssid[3], w->bssid[4], in lws_netdev_wifi_scan_select() 109 w->bssid[5], w->ch, rssi_averaged(w)); in lws_netdev_wifi_scan_select() 159 memcpy(wnd->current_attempt_bssid, pw->bssid, LWS_ETH_ALEN); in lws_netdev_wifi_scan_select() 161 pw->bssid); in lws_netdev_wifi_scan_select() 190 uint8_t buf[256], bssid[LWS_ETH_ALEN]; in lws_netdev_wifi_redo_last() local 217 lws_hex_to_byte_array(pb, bssid, sizeof(bssid)); in lws_netdev_wifi_redo_last() 228 cred = lws_netdev_credentials_find(netdevs, ssid_copy, bssid); in lws_netdev_wifi_redo_last() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/rsn_supp/ |
D | preauth.c | 28 u8 bssid[ETH_ALEN]; member 339 p = pmksa_cache_get(sm->pmksa, candidate->bssid, NULL, NULL, 0); in rsn_preauth_candidate_process() 340 if (os_memcmp(sm->bssid, candidate->bssid, ETH_ALEN) != 0 && in rsn_preauth_candidate_process() 345 MAC2STR(candidate->bssid)); in rsn_preauth_candidate_process() 349 MAC2STR_SEC(candidate->bssid)); in rsn_preauth_candidate_process() 351 rsn_preauth_init(sm, candidate->bssid, in rsn_preauth_candidate_process() 358 MAC2STR(candidate->bssid)); in rsn_preauth_candidate_process() 361 MAC2STR_SEC(candidate->bssid)); in rsn_preauth_candidate_process() 365 wpa_sm_add_pmkid(sm, NULL, candidate->bssid, p->pmkid, in rsn_preauth_candidate_process() 389 void pmksa_candidate_add(struct wpa_sm *sm, const u8 *bssid, in pmksa_candidate_add() argument [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/rsn_supp/ |
D | preauth.c | 28 u8 bssid[ETH_ALEN]; member 326 p = pmksa_cache_get(sm->pmksa, candidate->bssid, NULL, NULL, 0); in rsn_preauth_candidate_process() 327 if (os_memcmp(sm->bssid, candidate->bssid, ETH_ALEN) != 0 && in rsn_preauth_candidate_process() 332 MAC2STR(candidate->bssid)); in rsn_preauth_candidate_process() 334 rsn_preauth_init(sm, candidate->bssid, in rsn_preauth_candidate_process() 341 MAC2STR(candidate->bssid)); in rsn_preauth_candidate_process() 345 wpa_sm_add_pmkid(sm, NULL, candidate->bssid, p->pmkid, in rsn_preauth_candidate_process() 368 void pmksa_candidate_add(struct wpa_sm *sm, const u8 *bssid, in pmksa_candidate_add() argument 375 bssid, 0); in pmksa_candidate_add() 388 if (os_memcmp(pos->bssid, bssid, ETH_ALEN) == 0) { in pmksa_candidate_add() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/ |
D | neighbor_db.c | 19 hostapd_neighbor_get(struct hostapd_data *hapd, const u8 *bssid, in hostapd_neighbor_get() argument 26 if (os_memcmp(bssid, nr->bssid, ETH_ALEN) == 0 && in hostapd_neighbor_get() 45 os_memset(nr->bssid, 0, sizeof(nr->bssid)); in hostapd_neighbor_clear_entry() 66 int hostapd_neighbor_set(struct hostapd_data *hapd, const u8 *bssid, in hostapd_neighbor_set() argument 73 entry = hostapd_neighbor_get(hapd, bssid, ssid); in hostapd_neighbor_set() 81 os_memcpy(entry->bssid, bssid, ETH_ALEN); in hostapd_neighbor_set() 105 hostapd_neighbor_remove(hapd, bssid, ssid); in hostapd_neighbor_set() 110 int hostapd_neighbor_remove(struct hostapd_data *hapd, const u8 *bssid, in hostapd_neighbor_remove() argument 115 nr = hostapd_neighbor_get(hapd, bssid, ssid); in hostapd_neighbor_remove()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/ |
D | neighbor_db.c | 20 hostapd_neighbor_get(struct hostapd_data *hapd, const u8 *bssid, in hostapd_neighbor_get() argument 27 if (os_memcmp(bssid, nr->bssid, ETH_ALEN) == 0 && in hostapd_neighbor_get() 78 MAC2STR(nr->bssid), ssid, in hostapd_neighbor_show() 100 os_memset(nr->bssid, 0, sizeof(nr->bssid)); in hostapd_neighbor_clear_entry() 121 int hostapd_neighbor_set(struct hostapd_data *hapd, const u8 *bssid, in hostapd_neighbor_set() argument 129 entry = hostapd_neighbor_get(hapd, bssid, ssid); in hostapd_neighbor_set() 137 os_memcpy(entry->bssid, bssid, ETH_ALEN); in hostapd_neighbor_set() 163 hostapd_neighbor_remove(hapd, bssid, ssid); in hostapd_neighbor_set() 168 int hostapd_neighbor_remove(struct hostapd_data *hapd, const u8 *bssid, in hostapd_neighbor_remove() argument 173 nr = hostapd_neighbor_get(hapd, bssid, ssid); in hostapd_neighbor_remove()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/drivers/ |
D | wpa_hal_event.c | 183 rc = memcpy_s(res->bssid, ETH_ADDR_LEN, scanResult->bssid, ETH_ADDR_LEN); in WifiWpaEventScanResultProcess() 201 WpaMemFree(scanResult->bssid); in WifiWpaEventScanResultProcess() 213 WpaMemFree(scanResult->bssid); in WifiWpaEventScanResultProcess() 234 rc = memcpy_s(drv->bssid, ETH_ADDR_LEN, result->bssid, ETH_ALEN); in WifiWpaEventConnectResultProcess() 242 event.assoc_info.addr = result->bssid; in WifiWpaEventConnectResultProcess() 249 WpaMemFree(result->bssid); in WifiWpaEventConnectResultProcess() 487 uint8_t *bssid = NULL; in WifiWpaScanResultProcess() local 495 bssid = (uint8_t *)os_zalloc(ETH_ADDR_LEN); in WifiWpaScanResultProcess() 496 if (bssid == NULL) { in WifiWpaScanResultProcess() 500 ret = memcpy_s(bssid, ETH_ADDR_LEN, scanResult->bssid, ETH_ADDR_LEN); in WifiWpaScanResultProcess() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/drivers/ |
D | wpa_hal_event.c | 182 rc = memcpy_s(res->bssid, ETH_ADDR_LEN, scanResult->bssid, ETH_ADDR_LEN); in WifiWpaEventScanResultProcess() 200 WpaMemFree(scanResult->bssid); in WifiWpaEventScanResultProcess() 212 WpaMemFree(scanResult->bssid); in WifiWpaEventScanResultProcess() 233 rc = memcpy_s(drv->bssid, ETH_ADDR_LEN, result->bssid, ETH_ALEN); in WifiWpaEventConnectResultProcess() 241 event.assoc_info.addr = result->bssid; in WifiWpaEventConnectResultProcess() 248 WpaMemFree(result->bssid); in WifiWpaEventConnectResultProcess() 486 uint8_t *bssid = NULL; in WifiWpaScanResultProcess() local 494 bssid = (uint8_t *)os_zalloc(ETH_ADDR_LEN); in WifiWpaScanResultProcess() 495 if (bssid == NULL) { in WifiWpaScanResultProcess() 499 ret = memcpy_s(bssid, ETH_ADDR_LEN, scanResult->bssid, ETH_ADDR_LEN); in WifiWpaScanResultProcess() [all …]
|