Home
last modified time | relevance | path

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

1234

/dragonfly/contrib/wpa_supplicant/src/ap/
H A Dsta_info.c62 for (sta = hapd->sta_list; sta; sta = sta->next) { in ap_for_each_sta()
87 for (sta = hapd->sta_list; sta; sta = sta->next) { in ap_get_sta_p2p()
128 sta->hnext = hapd->sta_hash[STA_HASH(sta->addr)]; in ap_sta_hash_add()
129 hapd->sta_hash[STA_HASH(sta->addr)] = sta; in ap_sta_hash_add()
363 bin_clear_free(sta->owe_pmk, sta->owe_pmk_len); in ap_free_sta()
396 sta = sta->next; in hostapd_free_stas()
677 if (sta) in ap_sta_add()
891 if (sta && (sta->flags & WLAN_STA_WPS)) { in ap_sta_wps_cancel()
1069 sta->vlan_id_bound = sta->vlan_id; in ap_sta_bind_vlan()
1309 if (sta) in ap_sta_disconnect()
[all …]
H A Dieee802_11.c515 for (sta = hapd->sta_list; sta; sta = sta->next) { in use_sae_anti_clogging()
661 MAC2STR(sta->addr), sta->sae->sync, in auth_sae_retransmit_timer()
1280 if (!sta->sae || !sta->sae->tmp) in auth_sae_init_committed()
3386 MAC2STR(sta->addr), sta->added_unassoc, sta->auth_alg, in add_associated_sta()
3427 if (hostapd_sta_add(hapd, sta->addr, sta->aid, sta->capability, in add_associated_sta()
3469 if (sta && sta->fils_hlp_resp) in send_assoc_resp()
3479 if (sta && sta->dpp_pfs) in send_assoc_resp()
3596 if (sta && sta->qos_map_enabled) in send_assoc_resp()
4001 sta ? sta->aid : -1, in handle_assoc()
4002 sta ? sta->flags : 0); in handle_assoc()
[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 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 Dieee802_1x.c717 if (sta && add_sqlite_radius_attr(hapd, sta, msg, 0) < 0) in ieee802_1x_encapsulate_radius()
782 if (sta->hs20_ie && wpabuf_len(sta->hs20_ie) > 0) { in ieee802_1x_encapsulate_radius()
986 sta->wps_ie, sta->p2p_ie, sta, in ieee802_1x_alloc_eapol_sm()
987 sta->identity, sta->radius_cui); in ieee802_1x_alloc_eapol_sm()
1045 if (sta && (sta->flags & WLAN_STA_AUTH)) { in ieee802_1x_receive()
1108 sta->eapol_sm = ieee802_1x_alloc_eapol_sm(hapd, sta); in ieee802_1x_receive()
1266 sta->eapol_sm = ieee802_1x_alloc_eapol_sm(hapd, sta); in ieee802_1x_new_station()
1664 MAC2STR(sta->addr), sta->remediation_method, in ieee802_1x_hs20_sub_rem()
1924 sta = sm->sta; in ieee802_1x_receive_auth()
2101 ap_sta_disconnect(hapd, sta, sta->addr, in ieee802_1x_abort_auth()
[all …]
H A Ddrv_callbacks.c166 if (sta) { in hostapd_notif_assoc()
503 if (sta) { in hostapd_notif_assoc()
596 wpa_auth_set_dpp_z(sta->wpa_sm, sta->dpp_pfs ? in hostapd_notif_assoc()
714 if (!sta) in hostapd_event_sta_opmode_changed()
1084 if (!sta) { in hostapd_notif_auth()
1347 if (sta) in hostapd_event_new_sta()
1353 if (sta) { in hostapd_event_new_sta()
1374 if (sta && sta->flags & WLAN_STA_ASSOC) { in hostapd_event_eapol_rx()
1577 if (sta) { in hostapd_event_wds_sta_interface_status()
1627 if (sta) { in hostapd_notif_update_dh_ie()
[all …]
H A Dwpa_auth_glue.c238 if (sta == NULL || sta->eapol_sm == NULL) in hostapd_wpa_auth_get_eapol()
266 if (sta && sta->auth_alg == WLAN_AUTH_SAE) { in hostapd_wpa_auth_get_psk()
271 if (sta && wpa_auth_uses_sae(sta->wpa_sm)) { in hostapd_wpa_auth_get_psk()
280 sta && sta->owe_pmk) { in hostapd_wpa_auth_get_psk()
304 if (sta && sta->psk && !psk) { in hostapd_wpa_auth_get_psk()
439 if (sta) in hostapd_wpa_auth_send_eapol()
454 for (sta = hapd->sta_list; sta; sta = sta->next) { in hostapd_wpa_auth_for_each_sta()
455 if (sta->wpa_sm && cb(sta->wpa_sm, cb_ctx)) in hostapd_wpa_auth_for_each_sta()
874 if (sta == NULL || sta->wpa_sm == NULL) in hostapd_wpa_auth_send_ft_action()
935 if (!sta || !sta->wpa_sm) in hostapd_wpa_auth_set_vlan()
[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 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()
93 struct sta_info *sta, in sta_set_airtime_weight() argument
98 if (weight != sta->airtime_weight && in sta_set_airtime_weight()
102 sta->airtime_weight = weight; in sta_set_airtime_weight()
109 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 Dctrl_iface_ap.c138 if ((sta->flags & WLAN_STA_VHT) && sta->vht_capabilities) { in hostapd_get_sta_tx_rx()
150 if ((sta->flags & WLAN_STA_HT) && sta->ht_capabilities) { in hostapd_get_sta_tx_rx()
212 if (!sta) in hostapd_ctrl_iface_sta_mib()
229 sta->aid, sta->capability, sta->listen_interval); in hostapd_ctrl_iface_sta_mib()
270 if (sta->sae && sta->sae->state == SAE_ACCEPTED) { in hostapd_ctrl_iface_sta_mib()
302 sta->min_tx_power, sta->max_tx_power); in hostapd_ctrl_iface_sta_mib()
338 if (sta->flags & WLAN_STA_WDS && sta->ifname_wds) { in hostapd_ctrl_iface_sta_mib()
534 if (sta) in hostapd_ctrl_iface_deauthenticate()
597 if (sta) in hostapd_ctrl_iface_disassociate()
620 if (!sta) in hostapd_ctrl_iface_signature()
[all …]
H A Dieee802_11_ht.c239 struct sta_info *sta; in hostapd_2040_coex_action() local
292 if (!sta || !(sta->flags & WLAN_STA_ASSOC)) { in hostapd_2040_coex_action()
396 sta->ht_capabilities = in copy_sta_ht_capab()
402 sta->flags |= WLAN_STA_HT; in copy_sta_ht_capab()
464 if (!sta->no_ht_gf_set) { in update_sta_ht()
465 sta->no_ht_gf_set = 1; in update_sta_ht()
474 if (!sta->ht_20mhz_set) { in update_sta_ht()
475 sta->ht_20mhz_set = 1; in update_sta_ht()
491 if (!sta->no_ht_set) { in update_sta_no_ht()
492 sta->no_ht_set = 1; in update_sta_no_ht()
[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 Dsta_info.h306 int (*cb)(struct hostapd_data *hapd, struct sta_info *sta,
321 struct sta_info *sta);
323 struct sta_info *sta, int warning_time);
331 struct sta_info *sta, void *ctx);
340 struct sta_info *sta);
345 struct sta_info *sta, int authorized);
346 static inline int ap_sta_is_authorized(struct sta_info *sta) in ap_sta_is_authorized() argument
348 return sta->flags & WLAN_STA_AUTHORIZED; in ap_sta_is_authorized()
354 struct sta_info *sta);
358 struct sta_info *sta);
[all …]
H A Ddhcp_snoop.c37 struct sta_info *sta; in handle_dhcp() local
92 for (sta = hapd->sta_list; sta; sta = sta->next) { in handle_dhcp()
93 if (!(sta->flags & WLAN_STA_AUTHORIZED)) in handle_dhcp()
105 sta = ap_get_sta(hapd, b->hw_addr); in handle_dhcp()
106 if (!sta) in handle_dhcp()
111 MAC2STR(sta->addr), in handle_dhcp()
115 if (sta->ipaddr == b->your_ip) in handle_dhcp()
118 if (sta->ipaddr != 0) { in handle_dhcp()
123 (u8 *) &sta->ipaddr); in handle_dhcp()
127 prefixlen, sta->addr); in handle_dhcp()
[all …]
H A Dieee802_11_vht.c339 sta->flags &= ~WLAN_STA_VHT; in copy_sta_vht_capab()
340 os_free(sta->vht_capabilities); in copy_sta_vht_capab()
341 sta->vht_capabilities = NULL; in copy_sta_vht_capab()
346 sta->vht_capabilities = in copy_sta_vht_capab()
352 sta->flags |= WLAN_STA_VHT; in copy_sta_vht_capab()
364 os_free(sta->vht_operation); in copy_sta_vht_oper()
365 sta->vht_operation = NULL; in copy_sta_vht_oper()
369 if (!sta->vht_operation) { in copy_sta_vht_oper()
370 sta->vht_operation = in copy_sta_vht_oper()
372 if (!sta->vht_operation) in copy_sta_vht_oper()
[all …]
H A Dieee802_11.h41 struct sta_info *sta, in ieee802_11_get_mib_sta() argument
80 int hostapd_get_aid(struct hostapd_data *hapd, struct sta_info *sta);
81 u16 copy_sta_ht_capab(struct hostapd_data *hapd, struct sta_info *sta,
86 void update_ht_state(struct hostapd_data *hapd, struct sta_info *sta);
105 struct sta_info *sta, u8 *eid);
121 struct sta_info *sta);
125 struct sta_info *sta) in sae_clear_retransmit_timer() argument
154 void ap_copy_sta_supp_op_classes(struct sta_info *sta,
160 struct sta_info *sta, int success,
178 struct sta_info *sta,
[all …]
H A Dieee802_1x.h23 void ieee802_1x_new_station(struct hostapd_data *hapd, struct sta_info *sta);
24 void ieee802_1x_free_station(struct hostapd_data *hapd, struct sta_info *sta);
26 void ieee802_1x_abort_auth(struct hostapd_data *hapd, struct sta_info *sta);
28 struct sta_info *sta, int authorized);
29 void ieee802_1x_dump_state(FILE *f, const char *prefix, struct sta_info *sta);
33 int ieee802_1x_tx_status(struct hostapd_data *hapd, struct sta_info *sta,
50 int ieee802_1x_get_mib_sta(struct hostapd_data *hapd, struct sta_info *sta,
56 int radius_sta_rate(struct hostapd_data *hapd, struct sta_info *sta);
60 struct sta_info *sta,
62 int add_sqlite_radius_attr(struct hostapd_data *hapd, struct sta_info *sta,
[all …]
H A Dwnm_ap.c62 struct sta_info *sta; in ieee802_11_send_wnmsleep_resp() local
66 sta = ap_get_sta(hapd, addr); in ieee802_11_send_wnmsleep_resp()
67 if (sta == NULL) { in ieee802_11_send_wnmsleep_resp()
246 struct sta_info *sta; in ieee802_11_rx_wnmsleep_req() local
297 sta && wpa_auth_uses_ocv(sta->wpa_sm)) { in ieee802_11_rx_wnmsleep_req()
432 sta->agreed_to_steer = 0; in ap_sta_reset_steer_flag_timer()
444 struct sta_info *sta; in ieee802_11_rx_bss_trans_mgmt_resp() local
477 if (!sta) { in ieee802_11_rx_bss_trans_mgmt_resp()
489 sta->agreed_to_steer = 1; in ieee802_11_rx_bss_trans_mgmt_resp()
492 hapd, sta); in ieee802_11_rx_bss_trans_mgmt_resp()
[all …]
H A Dtkip_countermeasures.c36 struct sta_info *sta; in ieee80211_tkip_countermeasures_start() local
48 while ((sta = hapd->sta_list)) { in ieee80211_tkip_countermeasures_start()
49 sta->acct_terminate_cause = in ieee80211_tkip_countermeasures_start()
51 if (sta->flags & WLAN_STA_AUTH) { in ieee80211_tkip_countermeasures_start()
53 hapd, sta, in ieee80211_tkip_countermeasures_start()
56 hostapd_drv_sta_deauth(hapd, sta->addr, in ieee80211_tkip_countermeasures_start()
58 ap_free_sta(hapd, sta); in ieee80211_tkip_countermeasures_start()
80 struct sta_info *sta = ap_get_sta(hapd, addr); in michael_mic_failure() local
81 if (sta != NULL) { in michael_mic_failure()
82 wpa_auth_sta_local_mic_failure_report(sta->wpa_sm); in michael_mic_failure()
H A Dieee802_11_shared.c55 struct sta_info *sta; in ieee802_11_send_sa_query_req() local
68 sta = ap_get_sta(hapd, addr); in ieee802_11_send_sa_query_req()
69 if (sta && wpa_auth_uses_ocv(sta->wpa_sm)) { in ieee802_11_send_sa_query_req()
128 struct sta_info *sta; in ieee802_11_send_sa_query_resp() local
139 sta = ap_get_sta(hapd, sa); in ieee802_11_send_sa_query_resp()
140 if (sta == NULL || !(sta->flags & WLAN_STA_ASSOC)) { in ieee802_11_send_sa_query_resp()
210 struct sta_info *sta; in ieee802_11_sa_query_action() local
224 sta = ap_get_sta(hapd, sa); in ieee802_11_sa_query_action()
227 if (sta && wpa_auth_uses_ocv(sta->wpa_sm)) { in ieee802_11_sa_query_action()
282 if (sta == NULL || sta->sa_query_trans_id == NULL) { in ieee802_11_sa_query_action()
[all …]
/dragonfly/contrib/wpa_supplicant/wpa_supplicant/
H A Dmesh_mpm.c175 for (sta = hapd->sta_list; sta; sta = sta->next) { in llid_in_use()
415 type, MAC2STR(sta->addr), sta->my_lid, sta->peer_lid); in mesh_mpm_send_plink_action()
879 sta->mtk, sta->mtk_len); in mesh_mpm_plink_estab()
884 sta->mgtk, sta->mgtk_len); in mesh_mpm_plink_estab()
886 sta->addr, sta->mgtk_key_id, 0, in mesh_mpm_plink_estab()
887 sta->mgtk_rsc, sizeof(sta->mgtk_rsc), in mesh_mpm_plink_estab()
888 sta->mgtk, sta->mgtk_len); in mesh_mpm_plink_estab()
894 sta->igtk, sta->igtk_len); in mesh_mpm_plink_estab()
898 sta->addr, sta->igtk_key_id, 0, in mesh_mpm_plink_estab()
899 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()
136 if (sta) in auth_start_ampe()
369 sta->sae = os_zalloc(sizeof(*sta->sae)); in mesh_rsn_auth_sae_sta()
390 sta->sae->pmkid, sta->sae->pmk); in mesh_rsn_auth_sae_sta()
482 if (sta->my_lid < sta->peer_lid) { in mesh_rsn_derive_mtk()
512 sta->mtk, sta->mtk_len); in mesh_rsn_derive_mtk()
764 os_memcpy(sta->mgtk, pos, sta->mgtk_len); in mesh_rsn_process_ampe()
766 sta->mgtk, sta->mgtk_len); in mesh_rsn_process_ampe()
790 sta->igtk_rsc, sizeof(sta->igtk_rsc)); in mesh_rsn_process_ampe()
[all …]
/dragonfly/contrib/wpa_supplicant/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 …]

1234