/external/wpa_supplicant_8/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 | wnm_sta.c | 27 return wpa_drv_wnm_oper(wpa_s, oper, wpa_s->bssid, buf, buf_len); in ieee80211_11_get_tfs_ie() 87 os_memcpy(mgmt->da, wpa_s->bssid, ETH_ALEN); in ieee802_11_send_wnmsleep_req() 89 os_memcpy(mgmt->bssid, wpa_s->bssid, ETH_ALEN); in ieee802_11_send_wnmsleep_req() 105 res = wpa_drv_send_action(wpa_s, wpa_s->assoc_freq, 0, wpa_s->bssid, in ieee802_11_send_wnmsleep_req() 106 wpa_s->own_addr, wpa_s->bssid, in ieee802_11_send_wnmsleep_req() 166 wpa_s->bssid, NULL, NULL); in ieee802_11_rx_wnmsleep_resp() 181 wpa_s, wpa_s->bssid, in ieee802_11_rx_wnmsleep_resp() 190 wpa_s->bssid, NULL, NULL); in ieee802_11_rx_wnmsleep_resp() 224 wpa_s->bssid, NULL, NULL); in ieee802_11_rx_wnmsleep_resp() 227 wpa_s->bssid, NULL, NULL); in ieee802_11_rx_wnmsleep_resp()
|
D | events.c | 153 bssid_changed = !is_zero_ether_addr(wpa_s->bssid); in wpa_supplicant_mark_disassoc() 154 os_memset(wpa_s->bssid, 0, ETH_ALEN); in wpa_supplicant_mark_disassoc() 219 MAC2STR(data->pmkid_candidate.bssid), in wpa_supplicant_event_pmkid_candidate() 223 pmksa_candidate_add(wpa_s->wpa, data->pmkid_candidate.bssid, in wpa_supplicant_event_pmkid_candidate() 648 i, MAC2STR(bss->bssid), wpa_ssid_txt(bss->ssid, bss->ssid_len), in wpa_scan_res_match() 652 e = wpa_blacklist_get(wpa_s, bss->bssid); in wpa_scan_res_match() 719 os_memcmp(bss->bssid, ssid->bssid, ETH_ALEN) == 0) in wpa_scan_res_match() 730 os_memcmp(bss->bssid, ssid->bssid, ETH_ALEN) != 0) { in wpa_scan_res_match() 805 MAC2STR(bss->bssid), in wpa_supplicant_select_bss() 893 (os_memcmp(selected->bssid, wpa_s->bssid, ETH_ALEN) != 0 && in wpa_supplicant_connect() [all …]
|
D | blacklist.h | 14 u8 bssid[ETH_ALEN]; member 19 const u8 *bssid); 20 int wpa_blacklist_add(struct wpa_supplicant *wpa_s, const u8 *bssid); 21 int wpa_blacklist_del(struct wpa_supplicant *wpa_s, const u8 *bssid);
|
D | wps_supplicant.h | 33 int wpas_wps_start_pbc(struct wpa_supplicant *wpa_s, const u8 *bssid, 35 int wpas_wps_start_pin(struct wpa_supplicant *wpa_s, const u8 *bssid, 40 int wpas_wps_start_reg(struct wpa_supplicant *wpa_s, const u8 *bssid, 69 int wpas_wps_start_nfc(struct wpa_supplicant *wpa_s, const u8 *bssid); 74 void wpas_wps_notify_assoc(struct wpa_supplicant *wpa_s, const u8 *bssid); 133 const u8 *bssid) in wpas_wps_notify_assoc() argument
|
D | wps_supplicant.c | 60 const u8 *bssid = wpa_s->bssid; in wpas_wps_eapol_cb() local 61 if (is_zero_ether_addr(bssid)) in wpas_wps_eapol_cb() 62 bssid = wpa_s->pending_bssid; in wpas_wps_eapol_cb() 66 "suitable AP", MAC2STR(bssid)); in wpas_wps_eapol_cb() 67 wpa_blacklist_add(wpa_s, bssid); in wpas_wps_eapol_cb() 496 wpas_p2p_wps_success(wpa_s, wpa_s->bssid, 0); in wpa_supplicant_wps_event_success() 734 int registrar, const u8 *bssid) in wpas_wps_add_network() argument 754 if (bssid) { in wpas_wps_add_network() 760 os_memcpy(ssid->bssid, bssid, ETH_ALEN); in wpas_wps_add_network() 770 if (os_memcmp(bssid, bss->bssid, ETH_ALEN) != 0) in wpas_wps_add_network() [all …]
|
D | bss.c | 116 " SSID '%s' due to %s", bss->id, MAC2STR(bss->bssid), in wpa_bss_remove() 118 wpas_notify_bss_removed(wpa_s, bss->bssid, bss->id); in wpa_bss_remove() 124 struct wpa_bss * wpa_bss_get(struct wpa_supplicant *wpa_s, const u8 *bssid, in wpa_bss_get() argument 128 if (!wpa_supplicant_filter_bssid_match(wpa_s, bssid)) in wpa_bss_get() 131 if (os_memcmp(bss->bssid, bssid, ETH_ALEN) == 0 && in wpa_bss_get() 145 os_memcpy(dst->bssid, src->bssid, ETH_ALEN); in wpa_bss_copy_res() 184 os_memcmp(bss->bssid, wpa_s->bssid, ETH_ALEN) == 0 || in wpa_bss_in_use() 185 os_memcmp(bss->bssid, wpa_s->pending_bssid, ETH_ALEN) == 0; in wpa_bss_in_use() 253 bss->id, MAC2STR(bss->bssid), wpa_ssid_txt(ssid, ssid_len)); in wpa_bss_add() 254 wpas_notify_bss_added(wpa_s, bss->bssid, bss->id); in wpa_bss_add() [all …]
|
D | notify.c | 96 MAC2STR(wpa_s->bssid), in wpas_notify_state_changed() 266 u8 bssid[], unsigned int id) in wpas_notify_bss_added() argument 268 wpas_dbus_register_bss(wpa_s, bssid, id); in wpas_notify_bss_added() 270 id, MAC2STR(bssid)); in wpas_notify_bss_added() 275 u8 bssid[], unsigned int id) in wpas_notify_bss_removed() argument 277 wpas_dbus_unregister_bss(wpa_s, bssid, id); in wpas_notify_bss_removed() 279 id, MAC2STR(bssid)); in wpas_notify_bss_removed() 461 int status, const u8 *bssid) in wpas_notify_p2p_invitation_result() argument 463 wpas_dbus_signal_p2p_invitation_result(wpa_s, status, bssid); in wpas_notify_p2p_invitation_result() 618 const u8 *addr, const u8 *dst, const u8 *bssid, in wpas_notify_preq() argument [all …]
|
/external/wpa_supplicant_6/wpa_supplicant/ |
D | blacklist.c | 28 const u8 *bssid) in wpa_blacklist_get() argument 34 if (os_memcmp(e->bssid, bssid, ETH_ALEN) == 0) in wpa_blacklist_get() 59 int wpa_blacklist_add(struct wpa_supplicant *wpa_s, const u8 *bssid) in wpa_blacklist_add() argument 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 98 if (os_memcmp(e->bssid, bssid, ETH_ALEN) == 0) { in wpa_blacklist_del() 105 "blacklist", MAC2STR(bssid)); in wpa_blacklist_del() [all …]
|
D | mlme.c | 59 u8 bssid[ETH_ALEN]; member 92 ieee80211_bss_get(struct wpa_supplicant *wpa_s, const u8 *bssid); 212 os_memcpy(wpa_s->mlme.prev_bssid, wpa_s->bssid, ETH_ALEN); in ieee80211_set_associated() 254 os_memcpy(mgmt->da, wpa_s->bssid, ETH_ALEN); in ieee80211_send_auth() 256 os_memcpy(mgmt->bssid, wpa_s->bssid, ETH_ALEN); in ieee80211_send_auth() 287 " timed out", MAC2STR(wpa_s->bssid)); in ieee80211_authenticate() 293 MAC2STR(wpa_s->bssid)); in ieee80211_authenticate() 304 bss = ieee80211_bss_get(wpa_s, wpa_s->bssid); in ieee80211_authenticate() 359 bss = ieee80211_bss_get(wpa_s, wpa_s->bssid); in ieee80211_send_assoc() 371 os_memcpy(mgmt->da, wpa_s->bssid, ETH_ALEN); in ieee80211_send_assoc() [all …]
|
D | events.c | 101 os_memset(wpa_s->bssid, 0, ETH_ALEN); in wpa_supplicant_mark_disassoc() 145 MAC2STR(data->pmkid_candidate.bssid), in wpa_supplicant_event_pmkid_candidate() 149 pmksa_candidate_add(wpa_s->wpa, data->pmkid_candidate.bssid, in wpa_supplicant_event_pmkid_candidate() 409 (int) i, MAC2STR(bss->bssid), in wpa_supplicant_select_bss_wpa() 413 e = wpa_blacklist_get(wpa_s, bss->bssid); in wpa_supplicant_select_bss_wpa() 452 os_memcmp(bss->bssid, ssid->bssid, ETH_ALEN) != 0) in wpa_supplicant_select_bss_wpa() 464 MAC2STR(bss->bssid), in wpa_supplicant_select_bss_wpa() 504 (int) i, MAC2STR(bss->bssid), in wpa_supplicant_select_bss_non_wpa() 508 e = wpa_blacklist_get(wpa_s, bss->bssid); in wpa_supplicant_select_bss_non_wpa() 549 os_memcmp(bss->bssid, ssid->bssid, ETH_ALEN) != 0) in wpa_supplicant_select_bss_non_wpa() [all …]
|
D | blacklist.h | 20 u8 bssid[ETH_ALEN]; member 25 const u8 *bssid); 26 int wpa_blacklist_add(struct wpa_supplicant *wpa_s, const u8 *bssid); 27 int wpa_blacklist_del(struct wpa_supplicant *wpa_s, const u8 *bssid);
|
D | wpas_glue.c | 126 u8 *msg, *dst, bssid[ETH_ALEN]; in wpa_supplicant_eapol_send() local 153 if (is_zero_ether_addr(wpa_s->bssid)) { in wpa_supplicant_eapol_send() 156 if (wpa_drv_get_bssid(wpa_s, bssid) == 0 && in wpa_supplicant_eapol_send() 157 !is_zero_ether_addr(bssid)) { in wpa_supplicant_eapol_send() 158 dst = bssid; in wpa_supplicant_eapol_send() 172 dst = wpa_s->bssid; in wpa_supplicant_eapol_send() 209 unicast ? wpa_s->bssid : in wpa_eapol_set_wep_key() 312 if (os_memcmp(r->bssid, wpa_s->bssid, ETH_ALEN) != 0) in wpa_get_beacon_ie() 423 static int wpa_supplicant_get_bssid(void *ctx, u8 *bssid) in wpa_supplicant_get_bssid() argument 427 os_memcpy(bssid, wpa_s->bssid, ETH_ALEN); in wpa_supplicant_get_bssid() [all …]
|
D | wps_supplicant.c | 44 const u8 *bssid = wpa_s->bssid; in wpas_wps_eapol_cb() local 45 if (is_zero_ether_addr(bssid)) in wpas_wps_eapol_cb() 46 bssid = wpa_s->pending_bssid; in wpas_wps_eapol_cb() 50 "suitable AP", MAC2STR(bssid)); in wpas_wps_eapol_cb() 51 wpa_blacklist_add(wpa_s, bssid); in wpas_wps_eapol_cb() 116 if (os_memcmp(bss->bssid, cred->mac_addr, ETH_ALEN) != 0) in wpas_wps_security_workaround() 473 int registrar, const u8 *bssid) in wpas_wps_add_network() argument 490 if (bssid) { in wpas_wps_add_network() 494 os_memcpy(ssid->bssid, bssid, ETH_ALEN); in wpas_wps_add_network() 507 if (os_memcmp(bssid, res->bssid, ETH_ALEN) != 0) in wpas_wps_add_network() [all …]
|
/external/wpa_supplicant_8/wpa_supplicant/dbus/ |
D | dbus_old_handlers_wps.c | 32 u8 bssid[ETH_ALEN]; in wpas_dbus_iface_wps_pbc() local 41 else if (!hwaddr_aton(arg_bssid, bssid)) in wpas_dbus_iface_wps_pbc() 42 ret = wpas_wps_start_pbc(wpa_s, bssid, 0); in wpas_dbus_iface_wps_pbc() 74 u8 bssid[ETH_ALEN], *_bssid = NULL; in wpas_dbus_iface_wps_pin() local 83 else if (!hwaddr_aton(arg_bssid, bssid)) in wpas_dbus_iface_wps_pin() 84 _bssid = bssid; in wpas_dbus_iface_wps_pin() 134 u8 bssid[ETH_ALEN]; in wpas_dbus_iface_wps_reg() local 143 else if (!hwaddr_aton(arg_bssid, bssid)) in wpas_dbus_iface_wps_reg() 144 ret = wpas_wps_start_reg(wpa_s, bssid, pin, NULL); in wpas_dbus_iface_wps_reg()
|
/external/wpa_supplicant_8/src/rsn_supp/ |
D | preauth.c | 28 u8 bssid[ETH_ALEN]; member 308 p = pmksa_cache_get(sm->pmksa, candidate->bssid, NULL, NULL); in rsn_preauth_candidate_process() 309 if (os_memcmp(sm->bssid, candidate->bssid, ETH_ALEN) != 0 && in rsn_preauth_candidate_process() 314 MAC2STR(candidate->bssid)); in rsn_preauth_candidate_process() 316 rsn_preauth_init(sm, candidate->bssid, in rsn_preauth_candidate_process() 323 MAC2STR(candidate->bssid)); in rsn_preauth_candidate_process() 327 wpa_sm_add_pmkid(sm, candidate->bssid, p->pmkid); in rsn_preauth_candidate_process() 349 void pmksa_candidate_add(struct wpa_sm *sm, const u8 *bssid, in pmksa_candidate_add() argument 356 bssid); in pmksa_candidate_add() 369 if (os_memcmp(pos->bssid, bssid, ETH_ALEN) == 0) { in pmksa_candidate_add() [all …]
|
D | preauth.h | 21 void rsn_preauth_scan_result(struct wpa_sm *sm, const u8 *bssid, 23 void pmksa_candidate_add(struct wpa_sm *sm, const u8 *bssid, 55 static inline void rsn_preauth_scan_result(struct wpa_sm *sm, const u8 *bssid, in rsn_preauth_scan_result() argument 61 const u8 *bssid, in pmksa_candidate_add() argument
|
/external/wpa_supplicant_6/wpa_supplicant/src/rsn_supp/ |
D | preauth.c | 36 u8 bssid[ETH_ALEN]; member 318 p = pmksa_cache_get(sm->pmksa, candidate->bssid, NULL); in rsn_preauth_candidate_process() 319 if (os_memcmp(sm->bssid, candidate->bssid, ETH_ALEN) != 0 && in rsn_preauth_candidate_process() 324 MAC2STR(candidate->bssid)); in rsn_preauth_candidate_process() 326 rsn_preauth_init(sm, candidate->bssid, in rsn_preauth_candidate_process() 333 MAC2STR(candidate->bssid)); in rsn_preauth_candidate_process() 337 wpa_sm_add_pmkid(sm, candidate->bssid, p->pmkid); in rsn_preauth_candidate_process() 359 void pmksa_candidate_add(struct wpa_sm *sm, const u8 *bssid, in pmksa_candidate_add() argument 366 bssid); in pmksa_candidate_add() 379 if (os_memcmp(cand->bssid, bssid, ETH_ALEN) == 0) { in pmksa_candidate_add() [all …]
|
/external/wpa_supplicant_6/wpa_supplicant/examples/ |
D | wpas-test.py | 63 bssid = "" 65 bssid = bssid + ":%02x" % item 66 bssid = bssid[1:] 83 …print " %s :: ssid='%s' wpa=%s wpa2=%s quality=%d%% rate=%d freq=%d" % (bssid, ssid, wpa, …
|
/external/wpa_supplicant_8/wpa_supplicant/examples/ |
D | wpas-test.py | 63 bssid = "" 65 bssid = bssid + ":%02x" % item 66 bssid = bssid[1:] 83 …print " %s :: ssid='%s' wpa=%s wpa2=%s quality=%d%% rate=%d freq=%d" % (bssid, ssid, wpa, …
|
D | wpas-dbus-new.py | 47 bssid = "" 49 bssid = bssid + ":%02x" % item 50 bssid = bssid[1:] 76 …print " %s :: ssid='%s' wpa=%s wpa2=%s signal=%d rate=%d freq=%d" % (bssid, ssid, wpa, wpa…
|
/external/wpa_supplicant_8/src/ap/ |
D | drv_callbacks.c | 388 const u8 *bssid, const u8 *ie, size_t ie_len, in hostapd_probe_req_rx() argument 400 sa, da, bssid, ie, ie_len, in hostapd_probe_req_rx() 414 const u8 *bssid, in hostapd_notify_auth_ft_finish() argument 464 wpa_ft_process_auth(sta->wpa_sm, rx_auth->bssid, in hostapd_notif_auth() 521 const u8 *bssid) in get_hapd_bssid() argument 525 if (bssid == NULL) in get_hapd_bssid() 527 if (bssid[0] == 0xff && bssid[1] == 0xff && bssid[2] == 0xff && in get_hapd_bssid() 528 bssid[3] == 0xff && bssid[4] == 0xff && bssid[5] == 0xff) in get_hapd_bssid() 532 if (os_memcmp(bssid, iface->bss[i]->own_addr, ETH_ALEN) == 0) in get_hapd_bssid() 541 const u8 *bssid, const u8 *addr, in hostapd_rx_from_unknown_sta() argument [all …]
|
/external/wpa_supplicant_8/wpa_supplicant/examples/p2p/ |
D | p2p_invite.py | 32 bssid = invite_result['BSSID'] 33 print "BSSID = ", hex(bssid[0]) , ":" , \ 34 hex(bssid[1]) , ":" , hex(bssid[2]) , ":", \ 35 hex(bssid[3]) , ":" , hex(bssid[4]) , ":" , \ 36 hex(bssid[5])
|
/external/wpa_supplicant_6/wpa_supplicant/src/drivers/ |
D | driver_iphone.m | 75 static int wpa_driver_iphone_get_bssid(void *priv, u8 *bssid) 92 bssid[0] = a1; 93 bssid[1] = a2; 94 bssid[2] = a3; 95 bssid[3] = a4; 96 bssid[4] = a5; 97 bssid[5] = a6; 174 res->bssid[0] = a1; 175 res->bssid[1] = a2; 176 res->bssid[2] = a3; [all …]
|