Home
last modified time | relevance | path

Searched refs:sta (Results 1 – 25 of 280) sorted by relevance

12345678910>>...12

/freebsd-14.2/contrib/wpa/src/ap/
H A Dsta_info.c60 for (sta = hapd->sta_list; sta; sta = sta->next) { in ap_for_each_sta()
85 for (sta = hapd->sta_list; sta; sta = sta->next) { in ap_get_sta_p2p()
126 sta->hnext = hapd->sta_hash[STA_HASH(sta->addr)]; in ap_sta_hash_add()
127 hapd->sta_hash[STA_HASH(sta->addr)] = sta; in ap_sta_hash_add()
447 bin_clear_free(sta->owe_pmk, sta->owe_pmk_len); in ap_free_sta()
493 sta = sta->next; in hostapd_free_stas()
509 sta = sta->next; in hostapd_free_link_stas()
801 if (sta) in ap_sta_add()
1126 if (sta && (sta->flags & WLAN_STA_WPS)) { in ap_sta_wps_cancel()
1318 sta->vlan_id_bound = sta->vlan_id; in ap_sta_bind_vlan()
[all …]
H A Dap_mlme.c54 struct sta_info *sta) in mlme_authenticate_indication() argument
59 MAC2STR(sta->addr), mlme_auth_alg_str(sta->auth_alg)); in mlme_authenticate_indication()
60 if (sta->auth_alg != WLAN_AUTH_FT && in mlme_authenticate_indication()
64 !(sta->flags & WLAN_STA_MFP)) in mlme_authenticate_indication()
65 mlme_deletekeys_request(hapd, sta); in mlme_authenticate_indication()
111 MAC2STR(sta->addr)); in mlme_associate_indication()
134 struct sta_info *sta) in mlme_reassociate_indication() argument
139 MAC2STR(sta->addr)); in mlme_reassociate_indication()
187 MAC2STR(sta->addr)); in mlme_deletekeys_request()
189 if (sta->wpa_sm) in mlme_deletekeys_request()
[all …]
H A Daccounting.c31 struct sta_info *sta);
35 struct sta_info *sta, in accounting_msg() argument
59 if (sta) { in accounting_msg()
100 if (sta && add_sqlite_radius_attr(hapd, sta, msg, 1) < 0) in accounting_msg()
103 if (sta) { in accounting_msg()
135 if (sta->ipaddr && in accounting_msg()
217 hapd, sta); in accounting_interim_update()
254 hapd, sta); in accounting_sta_start()
463 struct sta_info *sta; in accounting_interim_error_cb() local
468 if (!sta) in accounting_interim_error_cb()
[all …]
H A Dieee802_11.c720 if (sta->sae->tmp && sta->sae->pk) in auth_sae_send_commit()
779 for (sta = hapd->sta_list; sta; sta = sta->next) { in use_anti_clogging()
787 if (sta->pasn && sta->pasn->ecdh) in use_anti_clogging()
1618 if (sta->sae && sta->sae->tmp && sta->sae->tmp->pw_id && in handle_auth_sae()
1656 if (!sta->sae || !sta->sae->tmp) in auth_sae_init_committed()
4762 MAC2STR(sta->addr), sta->added_unassoc, sta->auth_alg, in add_associated_sta()
4806 if (hostapd_sta_add(hapd, sta->addr, sta->aid, sta->capability, in add_associated_sta()
4852 if (sta && sta->fils_hlp_resp) in send_assoc_resp()
4862 if (sta && sta->dpp_pfs) in send_assoc_resp()
5487 sta ? sta->aid : -1, in handle_assoc()
[all …]
H A Dieee802_1x.c849 if (sta->hs20_ie && wpabuf_len(sta->hs20_ie) > 0) { in ieee802_1x_encapsulate_radius()
1063 sta->wps_ie, sta->p2p_ie, sta, in ieee802_1x_alloc_eapol_sm()
1064 sta->identity, sta->radius_cui); in ieee802_1x_alloc_eapol_sm()
1141 if (sta && (sta->flags & WLAN_STA_AUTH)) { in ieee802_1x_receive()
1211 sta->eapol_sm = ieee802_1x_alloc_eapol_sm(hapd, sta); in ieee802_1x_receive()
1367 sta->eapol_sm = ieee802_1x_alloc_eapol_sm(hapd, sta); in ieee802_1x_new_station()
1767 MAC2STR(sta->addr), sta->remediation_method, in ieee802_1x_hs20_sub_rem()
2043 sta = sm->sta; in ieee802_1x_receive_auth()
2211 ap_sta_disconnect(hapd, sta, sta->addr, in ieee802_1x_abort_auth()
2419 if (!sta || !sta->eapol_sm) in ieee802_1x_sta_entry_alive()
[all …]
H A Dpreauth_auth.c47 struct sta_info *sta; in rsn_preauth_receive() local
68 if (sta && (sta->flags & WLAN_STA_ASSOC)) { in rsn_preauth_receive()
75 if (sta == NULL) in rsn_preauth_receive()
77 sta->flags = WLAN_STA_PREAUTH; in rsn_preauth_receive()
80 if (sta->eapol_sm == NULL) { in rsn_preauth_receive()
81 ap_free_sta(hapd, sta); in rsn_preauth_receive()
82 sta = NULL; in rsn_preauth_receive()
89 if (sta == NULL) in rsn_preauth_receive()
91 sta->preauth_iface = piface; in rsn_preauth_receive()
191 ap_free_sta(hapd, sta); in rsn_preauth_finished_cb()
[all …]
H A Ddrv_callbacks.c120 if (!sta->sa_query_timed_out && sta->sa_query_count > 0) in check_sa_query_need()
334 if (sta) { in hostapd_notif_assoc()
619 sta->sae && !sta->sae->h2e && in hostapd_notif_assoc()
836 wpa_auth_set_dpp_z(sta->wpa_sm, sta->dpp_pfs ? in hostapd_notif_assoc()
1019 if (sta) in hostapd_notif_disassoc()
1059 if (!sta) in hostapd_event_sta_opmode_changed()
1333 for (sta = hapd->sta_list; sta; sta = sta->next) { in hostapd_event_ch_switch()
1964 if (sta) in hostapd_event_new_sta()
1996 if (sta && (sta->flags & WLAN_STA_ASSOC) && in hostapd_find_by_sta()
2011 if (sta && (sta->flags & WLAN_STA_ASSOC) && in hostapd_find_by_sta()
[all …]
H A Dwpa_auth_glue.c331 if (sta == NULL || sta->eapol_sm == NULL) in hostapd_wpa_auth_get_eapol()
359 if (sta && sta->auth_alg == WLAN_AUTH_SAE) { in hostapd_wpa_auth_get_psk()
366 if (sta && wpa_auth_uses_sae(sta->wpa_sm)) { in hostapd_wpa_auth_get_psk()
375 sta && sta->owe_pmk) { in hostapd_wpa_auth_get_psk()
399 if (sta && sta->psk && !psk) { in hostapd_wpa_auth_get_psk()
593 for (sta = hapd->sta_list; sta; sta = sta->next) { in hostapd_wpa_auth_for_each_sta()
594 if (sta->wpa_sm && cb(sta->wpa_sm, cb_ctx)) in hostapd_wpa_auth_for_each_sta()
996 if (!sta) in hostapd_wpa_auth_update_vlan()
1067 if (sta == NULL || sta->wpa_sm == NULL) in hostapd_wpa_auth_send_ft_action()
1166 if (!sta || !sta->wpa_sm) in hostapd_wpa_auth_set_vlan()
[all …]
H A Dairtime_policy.c57 struct sta_info *sta, in set_new_backlog_time() argument
60 sta->backlogged_until = *now; in set_new_backlog_time()
64 sta->backlogged_until.sec++; in set_new_backlog_time()
65 sta->backlogged_until.usec -= 1000000; in set_new_backlog_time()
72 struct sta_info *sta; in count_backlogged_sta() local
79 for (sta = hapd->sta_list; sta; sta = sta->next) { in count_backlogged_sta()
97 struct sta_info *sta, in sta_set_airtime_weight() argument
102 if (weight != sta->airtime_weight && in sta_set_airtime_weight()
106 sta->airtime_weight = weight; in sta_set_airtime_weight()
113 struct sta_info *sta; in set_sta_weights() local
[all …]
H A Dsta_info.h373 struct sta_info *sta);
383 struct sta_info *sta, void *ctx);
392 struct sta_info *sta);
394 struct sta_info *sta);
412 struct sta_info *sta);
416 struct sta_info *sta,
419 struct sta_info *sta);
425 struct sta_info *sta) in ap_sta_is_mld() argument
428 return hapd->conf->mld_ap && sta && sta->mld_info.mld_sta; in ap_sta_is_mld()
437 if (sta) in ap_sta_set_mld()
[all …]
H A Dmbo_ap.c23 info = sta->non_pref_chan; in mbo_ap_sta_free()
24 sta->non_pref_chan = NULL; in mbo_ap_sta_free()
54 if (!sta->non_pref_chan) { in mbo_ap_parse_non_pref_chan()
55 sta->non_pref_chan = info; in mbo_ap_parse_non_pref_chan()
57 tmp = sta->non_pref_chan; in mbo_ap_parse_non_pref_chan()
100 mbo_ap_sta_free(sta); in mbo_ap_check_sta_assoc()
123 if (!sta->cell_capa) in mbo_ap_get_info()
176 sta->cell_capa = buf[0]; in mbo_ap_wnm_notif_req_cell_capa()
192 mbo_ap_sta_free(sta); in mbo_ap_wnm_notif_req_elem()
213 struct sta_info *sta; in mbo_ap_wnm_notification_req() local
[all …]
H A Dctrl_iface_ap.c243 if (!sta) in hostapd_ctrl_iface_sta_mib()
260 sta->aid, sta->capability, sta->listen_interval); in hostapd_ctrl_iface_sta_mib()
308 if (sta->sae && sta->sae->state == SAE_ACCEPTED) { in hostapd_ctrl_iface_sta_mib()
315 if (sta->sae && sta->sae->tmp) { in hostapd_ctrl_iface_sta_mib()
374 sta->min_tx_power, sta->max_tx_power); in hostapd_ctrl_iface_sta_mib()
669 if (sta) in hostapd_ctrl_iface_deauthenticate()
731 if (sta) in hostapd_ctrl_iface_disassociate()
1592 for (sta = hapd->sta_list; sta; sta = sta->next) { in hostapd_disassoc_accept_mac()
1598 ap_sta_disconnect(hapd, sta, sta->addr, in hostapd_disassoc_accept_mac()
1611 for (sta = hapd->sta_list; sta; sta = sta->next) { in hostapd_disassoc_deny_mac()
[all …]
H A Dfils_hlp.c45 if (!sta->hlp_dhcp_discover) { in fils_dhcp_request()
143 wpabuf_free(sta->hlp_dhcp_discover); in fils_dhcp_request()
144 sta->hlp_dhcp_discover = NULL; in fils_dhcp_request()
153 struct sta_info *sta; in fils_dhcp_handler() local
233 if (!sta || !sta->fils_pending_assoc_req) { in fils_dhcp_handler()
318 if (sta->fils_drv_assoc_finish) in fils_dhcp_handler()
321 fils_hlp_finish_assoc(hapd, sta); in fils_dhcp_handler()
326 struct sta_info *sta, in fils_process_hlp_dhcp() argument
540 struct sta_info *sta, in fils_process_hlp_req() argument
592 MAC2STR(sta->addr)); in fils_process_hlp()
[all …]
H A Dndisc_snoop.c51 dl_list_add_tail(&sta->ip6addr, &ip6addr->list); in sta_ip6addr_add()
88 struct sta_info *sta; in ucast_to_stas() local
90 for (sta = hapd->sta_list; sta; sta = sta->next) { in ucast_to_stas()
91 if (!(sta->flags & WLAN_STA_AUTHORIZED)) in ucast_to_stas()
104 struct sta_info *sta; in handle_ndisc() local
127 sta = ap_get_sta(hapd, msg->opt_lladdr); in handle_ndisc()
128 if (!sta) in handle_ndisc()
131 if (sta_has_ip6addr(sta, &saddr)) in handle_ndisc()
138 MACSTR, addrtxt, MAC2STR(sta->addr)); in handle_ndisc()
142 128, sta->addr); in handle_ndisc()
[all …]
H A Dieee802_11_ht.c217 struct sta_info *sta; in hostapd_2040_coex_action() local
270 if (!sta || !(sta->flags & WLAN_STA_ASSOC)) { in hostapd_2040_coex_action()
374 sta->ht_capabilities = in copy_sta_ht_capab()
380 sta->flags |= WLAN_STA_HT; in copy_sta_ht_capab()
442 if (!sta->no_ht_gf_set) { in update_sta_ht()
443 sta->no_ht_gf_set = 1; in update_sta_ht()
452 if (!sta->ht_20mhz_set) { in update_sta_ht()
453 sta->ht_20mhz_set = 1; in update_sta_ht()
469 if (!sta->no_ht_set) { in update_sta_no_ht()
470 sta->no_ht_set = 1; in update_sta_no_ht()
[all …]
H A Dieee802_11_vht.c191 sta->flags &= ~WLAN_STA_VHT; in copy_sta_vht_capab()
192 os_free(sta->vht_capabilities); in copy_sta_vht_capab()
193 sta->vht_capabilities = NULL; in copy_sta_vht_capab()
198 sta->vht_capabilities = in copy_sta_vht_capab()
204 sta->flags |= WLAN_STA_VHT; in copy_sta_vht_capab()
216 os_free(sta->vht_operation); in copy_sta_vht_oper()
217 sta->vht_operation = NULL; in copy_sta_vht_oper()
221 if (!sta->vht_operation) { in copy_sta_vht_oper()
222 sta->vht_operation = in copy_sta_vht_oper()
224 if (!sta->vht_operation) in copy_sta_vht_oper()
[all …]
H A Ddhcp_snoop.c37 struct sta_info *sta; in handle_dhcp() local
93 for (sta = hapd->sta_list; sta; sta = sta->next) { in handle_dhcp()
94 if (!(sta->flags & WLAN_STA_AUTHORIZED)) in handle_dhcp()
107 sta = ap_get_sta(hapd, b->hw_addr); in handle_dhcp()
108 if (!sta) in handle_dhcp()
113 MAC2STR(sta->addr), in handle_dhcp()
117 if (sta->ipaddr == b->your_ip) in handle_dhcp()
120 if (sta->ipaddr != 0) { in handle_dhcp()
125 (u8 *) &sta->ipaddr); in handle_dhcp()
129 prefixlen, sta->addr); in handle_dhcp()
[all …]
/freebsd-14.2/contrib/wpa/wpa_supplicant/
H A Dmesh_mpm.c176 for (sta = hapd->sta_list; sta; sta = sta->next) { in llid_in_use()
440 type, MAC2STR(sta->addr), sta->my_lid, sta->peer_lid); in mesh_mpm_send_plink_action()
923 sta->mtk, sta->mtk_len, in mesh_mpm_plink_estab()
929 sta->mgtk, sta->mgtk_len); in mesh_mpm_plink_estab()
932 sta->addr, sta->mgtk_key_id, 0, in mesh_mpm_plink_estab()
933 sta->mgtk_rsc, sizeof(sta->mgtk_rsc), in mesh_mpm_plink_estab()
934 sta->mgtk, sta->mgtk_len, in mesh_mpm_plink_estab()
941 sta->igtk, sta->igtk_len); in mesh_mpm_plink_estab()
945 sta->addr, sta->igtk_key_id, 0, in mesh_mpm_plink_estab()
946 sta->igtk_rsc, sizeof(sta->igtk_rsc), in mesh_mpm_plink_estab()
[all …]
H A Dmesh_rsn.c40 MAC2STR(sta->addr), sta->sae_auth_retry); in mesh_auth_timer()
92 if (sta && sta->auth_alg == WLAN_AUTH_SAE) { in auth_get_psk()
154 for (sta = hapd->sta_list; sta; sta = sta->next) { in auth_for_each_sta()
155 if (sta->wpa_sm && cb(sta->wpa_sm, cb_ctx)) in auth_for_each_sta()
386 sta->sae = os_zalloc(sizeof(*sta->sae)); in mesh_rsn_auth_sae_sta()
407 sta->sae->pmkid, sta->sae->pmk, in mesh_rsn_auth_sae_sta()
500 if (sta->my_lid < sta->peer_lid) { in mesh_rsn_derive_mtk()
530 sta->mtk, sta->mtk_len); in mesh_rsn_derive_mtk()
778 os_memcpy(sta->mgtk, pos, sta->mgtk_len); in mesh_rsn_process_ampe()
780 sta->mgtk, sta->mgtk_len); in mesh_rsn_process_ampe()
[all …]
/freebsd-14.2/contrib/netbsd-tests/lib/libc/sys/
H A Dt_kill.c56 int sta; in ATF_TC_BODY() local
75 if (WIFSIGNALED(sta) == 0 || WTERMSIG(sta) != sig[i]) in ATF_TC_BODY()
88 int rv, sta; in ATF_TC_BODY() local
113 if (WIFEXITED(sta) == 0 || WEXITSTATUS(sta) != EXIT_SUCCESS) { in ATF_TC_BODY()
138 int sta; in ATF_TC_BODY() local
202 if (WIFEXITED(sta) == 0 || WEXITSTATUS(sta) == EPERM) in ATF_TC_BODY()
205 if (WIFEXITED(sta) == 0 || WEXITSTATUS(sta) != EXIT_SUCCESS) in ATF_TC_BODY()
219 int i, sta; in ATF_TC_BODY() local
252 if (WIFSIGNALED(sta) == 0 || WTERMSIG(sta) != SIGKILL) in ATF_TC_BODY()
266 int i, sta; in ATF_TC_BODY() local
[all …]
/freebsd-14.2/sys/contrib/dev/iwlwifi/mvm/
H A Dtdls.c21 struct ieee80211_sta *sta; in iwl_mvm_teardown_tdls_peers() local
30 if (!sta || IS_ERR(sta) || !sta->tdls) in iwl_mvm_teardown_tdls_peers()
53 if (!sta || IS_ERR(sta) || !sta->tdls) in iwl_mvm_tdls_sta_count()
97 if (IS_ERR_OR_NULL(sta) || !sta->tdls) in iwl_mvm_tdls_config()
229 if (IS_ERR_OR_NULL(sta) || WARN_ON(!sta->tdls)) in iwl_mvm_rx_tdls_notif()
369 if (!sta) { in iwl_mvm_tdls_config_channel_switch()
478 if (!sta || IS_ERR(sta) || WARN_ON(!sta->tdls)) in iwl_mvm_tdls_ch_switch_work()
485 sta->addr, in iwl_mvm_tdls_ch_switch_work()
523 sta->addr); in iwl_mvm_tdls_channel_switch()
530 sta->addr, sta->tdls_initiator, in iwl_mvm_tdls_channel_switch()
[all …]
H A Dmld-sta.c16 if (!sta) in iwl_mvm_sta_fw_id_mask()
22 if (!sta->valid_links) in iwl_mvm_sta_fw_id_mask()
60 struct iwl_mvm_int_sta *sta, in iwl_mvm_mld_add_int_sta_to_fw() argument
491 if (sta->wme) { in iwl_mvm_mld_cfg_sta()
493 cpu_to_le32(sta->max_sp ? sta->max_sp * 2 : 128); in iwl_mvm_mld_cfg_sta()
562 if (rcu_access_pointer(sta->link[link_id]) == &sta->deflink) { in iwl_mvm_mld_alloc_sta_link()
611 if (!sta->tdls) { in iwl_mvm_mld_set_ap_sta_id()
671 struct ieee80211_sta *sta) in iwl_mvm_mld_add_sta() argument
904 struct ieee80211_sta *sta; in iwl_mvm_mld_modify_all_sta_disable_tx() local
913 if (IS_ERR_OR_NULL(sta)) in iwl_mvm_mld_modify_all_sta_disable_tx()
[all …]
H A Dsta.h449 return (void *)sta->drv_priv; in iwl_mvm_sta_from_mac80211()
482 struct ieee80211_sta *sta);
496 struct ieee80211_sta *sta,
500 struct ieee80211_sta *sta);
506 struct ieee80211_sta *sta,
511 struct ieee80211_sta *sta,
562 struct ieee80211_sta *sta);
612 struct ieee80211_sta *sta);
621 struct ieee80211_sta *sta,
642 struct ieee80211_sta *sta);
[all …]
/freebsd-14.2/contrib/netbsd-tests/lib/libc/stdlib/
H A Dt_exit.c60 int sta; in ATF_TC_BODY() local
75 (void)wait(&sta); in ATF_TC_BODY()
77 if (WIFEXITED(sta) == 0 || WEXITSTATUS(sta) != EXIT_SUCCESS) in ATF_TC_BODY()
93 int sta; in ATF_TC_BODY() local
103 (void)wait(&sta); in ATF_TC_BODY()
105 if (WIFEXITED(sta) == 0 || WEXITSTATUS(sta) != EXIT_SUCCESS) in ATF_TC_BODY()
118 int i, sta; in ATF_TC_BODY() local
133 if (WIFEXITED(sta) == 0 || WEXITSTATUS(sta) != i) in ATF_TC_BODY()
146 int sta, fd = -1; in ATF_TC_BODY() local
166 (void)wait(&sta); in ATF_TC_BODY()
[all …]
/freebsd-14.2/contrib/wpa/src/wps/
H A Dwps_er.c63 dl_list_for_each(sta, &ap->sta, struct wps_er_sta, list) { in wps_er_sta_get()
68 return sta; in wps_er_sta_get()
77 if (sta->wps) in wps_er_sta_free()
87 os_free(sta); in wps_er_sta_free()
776 sta = os_zalloc(sizeof(*sta)); in wps_er_add_sta_data()
781 dl_list_add(&ap->sta, &sta->list); in wps_er_add_sta_data()
1051 sta->wps->use_cred = sta->ap->ap_settings; in wps_er_sta_start()
1054 sta->cred = os_malloc(sizeof(*sta->cred)); in wps_er_sta_start()
1056 os_memcpy(sta->cred, sta->ap->ap_settings, in wps_er_sta_start()
1060 sta->wps->use_cred = sta->cred; in wps_er_sta_start()
[all …]

12345678910>>...12