Home
last modified time | relevance | path

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

1234567

/freebsd-13.1/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()
183 bin_clear_free(sta->pasn, sizeof(*sta->pasn)); in ap_free_sta_pasn()
390 bin_clear_free(sta->owe_pmk, sta->owe_pmk_len); in ap_free_sta()
431 sta = sta->next; in hostapd_free_stas()
714 if (sta) in ap_sta_add()
930 if (sta && (sta->flags & WLAN_STA_WPS)) { in ap_sta_wps_cancel()
1116 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.c643 if (sta->sae->tmp && sta->sae->pk) in auth_sae_send_commit()
703 for (sta = hapd->sta_list; sta; sta = sta->next) { in use_anti_clogging()
711 if (sta->pasn && sta->pasn->ecdh) in use_anti_clogging()
1613 if (!sta->sae || !sta->sae->tmp) in auth_sae_init_committed()
4950 MAC2STR(sta->addr), sta->added_unassoc, sta->auth_alg, in add_associated_sta()
4989 if (hostapd_sta_add(hapd, sta->addr, sta->aid, sta->capability, in add_associated_sta()
5033 if (sta && sta->fils_hlp_resp) in send_assoc_resp()
5043 if (sta && sta->dpp_pfs) in send_assoc_resp()
5162 if (sta && sta->qos_map_enabled) in send_assoc_resp()
5581 sta ? sta->aid : -1, in handle_assoc()
[all …]
H A Dieee802_1x.c781 if (sta->hs20_ie && wpabuf_len(sta->hs20_ie) > 0) { in ieee802_1x_encapsulate_radius()
995 sta->wps_ie, sta->p2p_ie, sta, in ieee802_1x_alloc_eapol_sm()
996 sta->identity, sta->radius_cui); in ieee802_1x_alloc_eapol_sm()
1054 if (sta && (sta->flags & WLAN_STA_AUTH)) { in ieee802_1x_receive()
1118 sta->eapol_sm = ieee802_1x_alloc_eapol_sm(hapd, sta); in ieee802_1x_receive()
1274 sta->eapol_sm = ieee802_1x_alloc_eapol_sm(hapd, sta); in ieee802_1x_new_station()
1674 MAC2STR(sta->addr), sta->remediation_method, in ieee802_1x_hs20_sub_rem()
1937 sta = sm->sta; in ieee802_1x_receive_auth()
2114 ap_sta_disconnect(hapd, sta, sta->addr, in ieee802_1x_abort_auth()
2320 if (!sta || !sta->eapol_sm) in ieee802_1x_sta_entry_alive()
[all …]
H A Ddrv_callbacks.c115 if (!sta->sa_query_timed_out && sta->sa_query_count > 0) in check_sa_query_need()
206 if (sta) { in hostapd_notif_assoc()
461 sta->sae && !sta->sae->h2e && in hostapd_notif_assoc()
582 if (sta) { in hostapd_notif_assoc()
677 wpa_auth_set_dpp_z(sta->wpa_sm, sta->dpp_pfs ? in hostapd_notif_assoc()
802 if (!sta) in hostapd_event_sta_opmode_changed()
1018 for (sta = hapd->sta_list; sta; sta = sta->next) { in hostapd_event_ch_switch()
1515 if (sta) in hostapd_event_new_sta()
1521 if (sta) { in hostapd_event_new_sta()
1542 if (sta && sta->flags & WLAN_STA_ASSOC) { in hostapd_event_eapol_rx()
[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 Dwpa_auth_glue.c317 if (sta == NULL || sta->eapol_sm == NULL) in hostapd_wpa_auth_get_eapol()
345 if (sta && sta->auth_alg == WLAN_AUTH_SAE) { in hostapd_wpa_auth_get_psk()
350 if (sta && wpa_auth_uses_sae(sta->wpa_sm)) { in hostapd_wpa_auth_get_psk()
359 sta && sta->owe_pmk) { in hostapd_wpa_auth_get_psk()
383 if (sta && sta->psk && !psk) { in hostapd_wpa_auth_get_psk()
532 if (sta) in hostapd_wpa_auth_send_eapol()
547 for (sta = hapd->sta_list; sta; sta = sta->next) { in hostapd_wpa_auth_for_each_sta()
548 if (sta->wpa_sm && cb(sta->wpa_sm, cb_ctx)) in hostapd_wpa_auth_for_each_sta()
1020 if (sta == NULL || sta->wpa_sm == NULL) in hostapd_wpa_auth_send_ft_action()
1119 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 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 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()
87 struct sta_info *sta; in ucast_to_stas() local
89 for (sta = hapd->sta_list; sta; sta = sta->next) { in ucast_to_stas()
90 if (!(sta->flags & WLAN_STA_AUTHORIZED)) in ucast_to_stas()
103 struct sta_info *sta; in handle_ndisc() local
126 sta = ap_get_sta(hapd, msg->opt_lladdr); in handle_ndisc()
127 if (!sta) in handle_ndisc()
130 if (sta_has_ip6addr(sta, &saddr)) in handle_ndisc()
137 MACSTR, addrtxt, MAC2STR(sta->addr)); in handle_ndisc()
141 128, sta->addr); in handle_ndisc()
[all …]
H A Dieee802_11_vht.c177 sta->flags &= ~WLAN_STA_VHT; in copy_sta_vht_capab()
178 os_free(sta->vht_capabilities); in copy_sta_vht_capab()
179 sta->vht_capabilities = NULL; in copy_sta_vht_capab()
184 sta->vht_capabilities = in copy_sta_vht_capab()
190 sta->flags |= WLAN_STA_VHT; in copy_sta_vht_capab()
202 os_free(sta->vht_operation); in copy_sta_vht_oper()
203 sta->vht_operation = NULL; in copy_sta_vht_oper()
207 if (!sta->vht_operation) { in copy_sta_vht_oper()
208 sta->vht_operation = in copy_sta_vht_oper()
210 if (!sta->vht_operation) in copy_sta_vht_oper()
[all …]
H A Dctrl_iface_ap.c176 if ((sta->flags & WLAN_STA_HT) && sta->ht_capabilities) { in hostapd_get_sta_info()
221 if (!sta) in hostapd_ctrl_iface_sta_mib()
238 sta->aid, sta->capability, sta->listen_interval); in hostapd_ctrl_iface_sta_mib()
278 if (sta->sae && sta->sae->state == SAE_ACCEPTED) { in hostapd_ctrl_iface_sta_mib()
285 if (sta->sae && sta->sae->tmp) { in hostapd_ctrl_iface_sta_mib()
340 sta->min_tx_power, sta->max_tx_power); in hostapd_ctrl_iface_sta_mib()
374 if (sta->flags & WLAN_STA_WDS && sta->ifname_wds) { in hostapd_ctrl_iface_sta_mib()
566 if (sta) in hostapd_ctrl_iface_deauthenticate()
628 if (sta) in hostapd_ctrl_iface_disassociate()
651 if (!sta) in hostapd_ctrl_iface_signature()
[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 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 …]
H A Dsta_info.h353 int (*cb)(struct hostapd_data *hapd, struct sta_info *sta,
368 struct sta_info *sta);
370 struct sta_info *sta, int warning_time);
378 struct sta_info *sta, void *ctx);
387 struct sta_info *sta);
392 struct sta_info *sta, int authorized);
393 static inline int ap_sta_is_authorized(struct sta_info *sta) in ap_sta_is_authorized() argument
395 return sta->flags & WLAN_STA_AUTHORIZED; in ap_sta_is_authorized()
401 struct sta_info *sta);
405 struct sta_info *sta);
[all …]
/freebsd-13.1/contrib/wpa/wpa_supplicant/
H A Dmesh_mpm.c175 for (sta = hapd->sta_list; sta; sta = sta->next) { in llid_in_use()
418 type, MAC2STR(sta->addr), sta->my_lid, sta->peer_lid); in mesh_mpm_send_plink_action()
884 sta->mtk, sta->mtk_len, in mesh_mpm_plink_estab()
890 sta->mgtk, sta->mgtk_len); in mesh_mpm_plink_estab()
892 sta->addr, sta->mgtk_key_id, 0, in mesh_mpm_plink_estab()
893 sta->mgtk_rsc, sizeof(sta->mgtk_rsc), in mesh_mpm_plink_estab()
894 sta->mgtk, sta->mgtk_len, in mesh_mpm_plink_estab()
901 sta->igtk, sta->igtk_len); in mesh_mpm_plink_estab()
905 sta->addr, sta->igtk_key_id, 0, in mesh_mpm_plink_estab()
906 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()
137 if (sta) in auth_start_ampe()
368 sta->sae = os_zalloc(sizeof(*sta->sae)); in mesh_rsn_auth_sae_sta()
389 sta->sae->pmkid, sta->sae->pmk); in mesh_rsn_auth_sae_sta()
481 if (sta->my_lid < sta->peer_lid) { in mesh_rsn_derive_mtk()
511 sta->mtk, sta->mtk_len); in mesh_rsn_derive_mtk()
759 os_memcpy(sta->mgtk, pos, sta->mgtk_len); in mesh_rsn_process_ampe()
761 sta->mgtk, sta->mgtk_len); in mesh_rsn_process_ampe()
784 sta->igtk_rsc, sizeof(sta->igtk_rsc)); in mesh_rsn_process_ampe()
[all …]
/freebsd-13.1/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-13.1/sys/contrib/dev/iwlwifi/mvm/
H A Drs-fw.c14 switch (sta->bandwidth) { in rs_fw_bw_from_sta_bw()
62 struct ieee80211_sta *sta, in rs_fw_get_config_flags() argument
139 u8 max_nss = sta->rx_nss; in rs_fw_vht_set_enabled_rates()
205 u8 nss = sta->rx_nss; in rs_fw_he_set_enabled_rates()
253 tmp = sta->supp_rates[sband->band]; in rs_fw_set_supp_rates()
287 struct ieee80211_sta *sta; in iwl_mvm_tlc_update_notif() local
296 if (IS_ERR_OR_NULL(sta)) { in iwl_mvm_tlc_update_notif()
343 if (sta->max_amsdu_len < size) { in iwl_mvm_tlc_update_notif()
359 sta->max_tid_amsdu_len[i] = in iwl_mvm_tlc_update_notif()
366 sta->max_tid_amsdu_len[i] = 1; in iwl_mvm_tlc_update_notif()
[all …]
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 Dsta.h427 return (void *)sta->drv_priv; in iwl_mvm_sta_from_mac80211()
457 struct ieee80211_sta *sta);
461 struct ieee80211_sta *sta) in iwl_mvm_update_sta() argument
470 struct ieee80211_sta *sta);
476 struct ieee80211_sta *sta,
481 struct ieee80211_sta *sta,
502 struct ieee80211_sta *sta, u16 tid);
520 struct iwl_mvm_int_sta *sta,
530 struct ieee80211_sta *sta);
532 struct ieee80211_sta *sta,
[all …]
/freebsd-13.1/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-13.1/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 …]

1234567