/freebsd/contrib/wpa/wpa_supplicant/ |
H A 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 …]
|
H A 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 (ether_addr_equal(e->bssid, bssid)) 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(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(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 …]
|
H A 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 (ether_addr_equal(array + i * ETH_ALEN, bssid)) in bssid_in_array() 69 const u8 *bssid) in bgscan_learn_add_neighbor() argument 73 if (ether_addr_equal(bss->bssid, bssid)) 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 (ether_addr_equal(bss->bssid, bssid)) in bgscan_learn_get_bss() 130 if (hwaddr_aton(buf + 4, bss->bssid) < 0) { in bgscan_learn_load() [all …]
|
H A 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() 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 …]
|
H A 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);
|
H A D | events.c | 141 struct wpa_supplicant *wpa_s, const u8 *bssid, const u8 *ssid, in __wpa_supplicant_get_new_bss() argument 145 return wpa_bss_get(wpa_s, bssid, ssid, ssid_len); in __wpa_supplicant_get_new_bss() 147 return wpa_bss_get_bssid(wpa_s, bssid); in __wpa_supplicant_get_new_bss() 152 struct wpa_supplicant *wpa_s, const u8 *bssid, const u8 *ssid, in _wpa_supplicant_get_new_bss() argument 155 struct wpa_bss *bss = __wpa_supplicant_get_new_bss(wpa_s, bssid, ssid, in _wpa_supplicant_get_new_bss() 161 wpa_supplicant_update_scan_results(wpa_s, bssid); in _wpa_supplicant_get_new_bss() 163 return __wpa_supplicant_get_new_bss(wpa_s, bssid, ssid, ssid_len); in _wpa_supplicant_get_new_bss() 168 struct wpa_supplicant *wpa_s, const u8 *bssid) in wpa_supplicant_get_new_bss() argument 178 bss = _wpa_supplicant_get_new_bss(wpa_s, bssid, drv_ssid, res, in wpa_supplicant_get_new_bss() 183 bss = _wpa_supplicant_get_new_bss(wpa_s, bssid, ssid->ssid, in wpa_supplicant_get_new_bss() [all …]
|
H A 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);
|
H A 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 265 if (bssid && !wpa_supplicant_filter_bssid_match(wpa_s, bssid)) in wpa_bss_get() 268 if ((!bssid || ether_addr_equal(bss->bssid, bssid)) && in wpa_bss_get() 299 os_memcpy(dst->bssid, src->bssid, ETH_ALEN); in wpa_bss_copy_res() 363 if (ether_addr_equal(bss->bssid, wpa_s->pending_join_iface_addr)) in is_p2p_pending_bss() 414 if (!is_zero_ether_addr(bss->bssid) && in wpa_bss_in_use() 415 (ether_addr_equal(bss->bssid, wpa_s->bssid) || in wpa_bss_in_use() 416 ether_addr_equal(bss->bssid, wpa_s->pending_bssid))) in wpa_bss_in_use() [all …]
|
H A D | wps_supplicant.c | 102 const u8 *bssid = wpa_s->bssid; in wpas_wps_eapol_cb() local 103 if (is_zero_ether_addr(bssid)) in wpas_wps_eapol_cb() 104 bssid = wpa_s->pending_bssid; in wpas_wps_eapol_cb() 108 "suitable AP", MAC2STR(bssid)); in wpas_wps_eapol_cb() 109 wpa_bssid_ignore_add(wpa_s, bssid); in wpas_wps_eapol_cb() 219 bss = wpa_bss_get(wpa_s, wpa_s->bssid, in wpas_wps_security_workaround() 298 if (!ether_addr_equal(ssid->bssid, new_ssid->bssid)) in wpas_wps_remove_dup_network() 746 wpas_p2p_wps_success(wpa_s, wpa_s->bssid, 0); in wpa_supplicant_wps_event_success() 1023 const u8 *bssid) in wpas_wps_add_network() argument 1048 if (bssid) { in wpas_wps_add_network() [all …]
|
H A D | sme.c | 92 const u8 *bssid, in sme_auth_build_sae_commit() argument 107 const u8 *addr = mld_addr ? mld_addr : bssid; in sme_auth_build_sae_commit() 171 ether_addr_equal(addr, wpa_s->sme.sae.tmp->bssid)) { in sme_auth_build_sae_commit() 183 bss = wpa_bss_get_bssid_latest(wpa_s, bssid); in sme_auth_build_sae_commit() 187 wpa_supplicant_update_scan_results(wpa_s, bssid); in sme_auth_build_sae_commit() 188 bss = wpa_bss_get_bssid_latest(wpa_s, bssid); in sme_auth_build_sae_commit() 255 os_memcpy(wpa_s->sme.sae.tmp->bssid, addr, ETH_ALEN); in sme_auth_build_sae_commit() 416 wpa_s->links[i].bssid, in wpas_ml_connect_pref() 458 MAC2STR(wpa_s->links[wpa_s->mlo_assoc_link_id].bssid), in wpas_ml_connect_pref() 459 MAC2STR(wpa_s->links[i].bssid)); in wpas_ml_connect_pref() [all …]
|
H A D | notify.c | 97 if (wpa_s->fst && !is_zero_ether_addr(wpa_s->bssid)) { in wpas_notify_state_changed() 99 fst_notify_peer_connected(wpa_s->fst, wpa_s->bssid); in wpas_notify_state_changed() 102 fst_notify_peer_disconnected(wpa_s->fst, wpa_s->bssid); in wpas_notify_state_changed() 118 MAC2STR(wpa_s->bssid), in wpas_notify_state_changed() 438 u8 bssid[], unsigned int id) in wpas_notify_bss_added() argument 443 wpas_dbus_register_bss(wpa_s, bssid, id); in wpas_notify_bss_added() 445 id, MAC2STR(bssid)); in wpas_notify_bss_added() 450 u8 bssid[], unsigned int id) in wpas_notify_bss_removed() argument 455 wpas_dbus_unregister_bss(wpa_s, bssid, id); in wpas_notify_bss_removed() 457 id, MAC2STR(bssid)); in wpas_notify_bss_removed() [all …]
|
H A D | hs20_supplicant.c | 50 u8 bssid[ETH_ALEN]; member 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 (ether_addr_equal(icon->bssid, bssid) && 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() 387 int hs20_del_icon(struct wpa_supplicant *wpa_s, const u8 *bssid, in hs20_del_icon() argument 393 if (!bssid) in hs20_del_icon() [all …]
|
H A D | wps_supplicant.h | 32 int wpas_wps_start_pbc(struct wpa_supplicant *wpa_s, const u8 *bssid, 34 int wpas_wps_start_pin(struct wpa_supplicant *wpa_s, const u8 *bssid, 38 int wpas_wps_start_reg(struct wpa_supplicant *wpa_s, const u8 *bssid, 70 const u8 *bssid, 90 void wpas_wps_notify_assoc(struct wpa_supplicant *wpa_s, const u8 *bssid); 161 const u8 *bssid) in wpas_wps_notify_assoc() argument
|
H A D | nan_usd.c | 37 const u8 *src, const u8 *bssid, in wpas_nan_de_tx_status() argument 46 MAC2STR(dst), MAC2STR(src), MAC2STR(bssid), freq, in wpas_nan_de_tx_status() 58 u8 bssid[ETH_ALEN]; member 88 const u8 *src, const u8 *bssid, in wpas_nan_de_tx_send() argument 93 MAC2STR(dst), MAC2STR(src), MAC2STR(bssid), freq, in wpas_nan_de_tx_send() 96 return offchannel_send_action(wpa_s, freq, dst, src, bssid, in wpas_nan_de_tx_send() 119 twork->dst, twork->src, twork->bssid, in wpas_nan_usd_start_tx_cb() 126 const u8 *dst, const u8 *src, const u8 *bssid, in wpas_nan_de_tx() argument 135 bssid, buf); in wpas_nan_de_tx() 145 os_memcpy(twork->bssid, bssid, ETH_ALEN); in wpas_nan_de_tx()
|
/freebsd/tools/tools/net80211/wlanwds/ |
H A D | wlanwds.c | 77 uint8_t bssid[IEEE80211_ADDR_LEN]; /* bssid of associated sta */ member 90 const uint8_t bssid[IEEE80211_ADDR_LEN]); 92 static void wds_leave(const uint8_t bssid[IEEE80211_ADDR_LEN]); 252 getbssid(int s, const char *ifname, uint8_t bssid[IEEE80211_ADDR_LEN]) in getbssid() 259 ireq.i_data = bssid; in getbssid() 338 uint8_t bssid[IEEE80211_ADDR_LEN]; in scanforvaps() local 349 getbssid(s, ifname, p->bssid); in scanforvaps() 354 ether_sprintf(bssid), ifname); in scanforvaps() 444 wds_discovery(const char *ifname, const uint8_t bssid[IEEE80211_ADDR_LEN]) in wds_discovery() 453 if (IEEE80211_ADDR_EQ(p->bssid, bssid)) { in wds_discovery() [all …]
|
/freebsd/contrib/wpa/src/rsn_supp/ |
H A D | preauth.c | 28 u8 bssid[ETH_ALEN]; member 334 p = pmksa_cache_get(sm->pmksa, candidate->bssid, sm->own_addr, in rsn_preauth_candidate_process() 336 if (!ether_addr_equal(sm->bssid, candidate->bssid) && in rsn_preauth_candidate_process() 341 MAC2STR(candidate->bssid)); in rsn_preauth_candidate_process() 343 rsn_preauth_init(sm, candidate->bssid, in rsn_preauth_candidate_process() 350 MAC2STR(candidate->bssid)); in rsn_preauth_candidate_process() 354 wpa_sm_add_pmkid(sm, NULL, candidate->bssid, p->pmkid, in rsn_preauth_candidate_process() 378 void pmksa_candidate_add(struct wpa_sm *sm, const u8 *bssid, in pmksa_candidate_add() argument 385 bssid, 0); in pmksa_candidate_add() 398 if (ether_addr_equal(pos->bssid, bssid)) { in pmksa_candidate_add() [all …]
|
H A 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
|
/freebsd/contrib/wpa/src/ap/ |
H A D | neighbor_db.c | 20 hostapd_neighbor_get(struct hostapd_data *hapd, const u8 *bssid, in hostapd_neighbor_get() argument 27 if (ether_addr_equal(bssid, nr->bssid) && 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() 124 int hostapd_neighbor_set(struct hostapd_data *hapd, const u8 *bssid, in hostapd_neighbor_set() argument 132 entry = hostapd_neighbor_get(hapd, bssid, ssid); in hostapd_neighbor_set() 140 os_memcpy(entry->bssid, bssid, ETH_ALEN); in hostapd_neighbor_set() 166 hostapd_neighbor_remove(hapd, bssid, ssid); in hostapd_neighbor_set() 179 int hostapd_neighbor_remove(struct hostapd_data *hapd, const u8 *bssid, in hostapd_neighbor_remove() argument 184 nr = hostapd_neighbor_get(hapd, bssid, ssid); in hostapd_neighbor_remove() [all …]
|
/freebsd/tools/tools/net80211/mlme_assoc/ |
H A D | mlme_assoc.c | 85 try_mlme_assoc(int sd, const char *ifnam, uint8_t *ssid, uint8_t ssid_len, uint8_t *bssid) in try_mlme_assoc() argument 96 if (bssid != NULL) in try_mlme_assoc() 97 memcpy(mlme.im_macaddr, bssid, IEEE80211_ADDR_LEN); in try_mlme_assoc() 160 uint8_t *ssid, *bssid; in main() local 166 bssid = NULL; in main() 171 bssid = (uint8_t *)ether_aton_r(argv[3], &ea); in main() 172 if (bssid == NULL) in main() 187 error = try_mlme_assoc(sd, ifnam, ssid, strlen((const char *)ssid), bssid); in main()
|
/freebsd/sys/contrib/dev/rtw88/ |
H A D | util.h | 31 u8 *bssid; in get_hdr_bssid() local 34 bssid = hdr->addr1; in get_hdr_bssid() 36 bssid = hdr->addr2; in get_hdr_bssid() 38 bssid = hdr->addr3; in get_hdr_bssid() 40 return bssid; in get_hdr_bssid()
|
H A D | bf.c | 41 const u8 *bssid = bss_conf->bssid; in rtw_bf_assoc() local 50 sta = ieee80211_find_sta(vif, bssid); in rtw_bf_assoc() 56 bssid); in rtw_bf_assoc() 59 bssid, ":"); in rtw_bf_assoc() 76 ether_addr_copy(bfee->mac_addr, bssid); in rtw_bf_assoc() 78 bfee->p_aid = (bssid[5] << 1) | (bssid[4] >> 7); in rtw_bf_assoc() 94 ether_addr_copy(bfee->mac_addr, bssid); in rtw_bf_assoc() 98 bfee->p_aid = (bssid[5] << 1) | (bssid[4] >> 7); in rtw_bf_assoc()
|
/freebsd/contrib/wpa/wpa_supplicant/examples/p2p/ |
H A 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]))
|
/freebsd/contrib/wpa/src/drivers/ |
H A D | driver_nl80211_scan.c | 384 if (params->bssid) { in wpa_driver_nl80211_scan() 386 MACSTR, MAC2STR(params->bssid)); in wpa_driver_nl80211_scan() 387 if (nla_put(msg, NL80211_ATTR_BSSID, ETH_ALEN, params->bssid)) in wpa_driver_nl80211_scan() 395 nla_put(msg, NL80211_ATTR_MAC, ETH_ALEN, params->bssid)) in wpa_driver_nl80211_scan() 726 struct nl_msg *msg, const u8 *bssid) in nl80211_parse_bss_info() argument 760 if (bssid && bss[NL80211_BSS_BSSID] && in nl80211_parse_bss_info() 761 !ether_addr_equal(bssid, nla_data(bss[NL80211_BSS_BSSID]))) in nl80211_parse_bss_info() 786 os_memcpy(r->bssid, nla_data(bss[NL80211_BSS_BSSID]), in nl80211_parse_bss_info() 867 const u8 *bssid; member 877 r = nl80211_parse_bss_info(_arg->drv, msg, _arg->bssid); in bss_info_handler() [all …]
|
/freebsd/contrib/wpa/wpa_supplicant/examples/ |
H A 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…
|
/freebsd/contrib/wpa/src/fst/ |
H A D | fst_group.c | 45 mbie->chan, MAC2STR(mbie->bssid), mbie->beacon_int, in fst_dump_mb_ies() 59 static void fst_fill_mb_ie(struct wpabuf *buf, const u8 *bssid, in fst_fill_mb_ie() argument 81 if (bssid) in fst_fill_mb_ie() 82 os_memcpy(mbie->bssid, bssid, ETH_ALEN); in fst_fill_mb_ie() 97 const u8 *bssid; in fst_fill_iface_mb_ies() local 99 bssid = fst_iface_get_bssid(f); in fst_fill_iface_mb_ies() 100 if (bssid) { in fst_fill_iface_mb_ies() 106 fst_fill_mb_ie(buf, bssid, fst_iface_get_addr(f), in fst_fill_iface_mb_ies() 189 peer_addr = mbie->bssid; in fst_mbie_get_peer_addr()
|