Home
last modified time | relevance | path

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

12345678910

/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/
Dsta_info.c50 struct sta_info *sta);
56 static int ap_sta_remove(struct hostapd_data *hapd, struct sta_info *sta);
60 int (*cb)(struct hostapd_data *hapd, struct sta_info *sta, in ap_for_each_sta() argument
64 struct sta_info *sta; in ap_for_each_sta() local
66 for (sta = hapd->sta_list; sta; sta = sta->next) { in ap_for_each_sta()
67 if (cb(hapd, sta, ctx)) in ap_for_each_sta()
75 struct sta_info * ap_get_sta(struct hostapd_data *hapd, const u8 *sta) in ap_get_sta() argument
79 s = hapd->sta_hash[STA_HASH(sta)]; in ap_get_sta()
80 while (s != NULL && os_memcmp(s->addr, sta, 6) != 0) in ap_get_sta()
89 struct sta_info *sta; in ap_get_sta_p2p() local
[all …]
Daccounting.c31 struct sta_info *sta);
35 struct sta_info *sta, in accounting_msg() argument
59 if (sta) { in accounting_msg()
72 val = ieee802_1x_get_identity(sta->eapol_sm, &len); in accounting_msg()
75 if (!val && sta->identity) { in accounting_msg()
76 val = (u8 *) sta->identity; in accounting_msg()
77 len = os_strlen(sta->identity); in accounting_msg()
84 MAC2STR(sta->addr)); in accounting_msg()
96 if (add_common_radius_attr(hapd, hapd->conf->radius_acct_req_attr, sta, in accounting_msg()
100 if (sta && add_sqlite_radius_attr(hapd, sta, msg, 1) < 0) in accounting_msg()
[all …]
Dieee802_11.c63 struct sta_info *sta, u16 *resp,
73 struct sta_info *sta,
79 struct sta_info *sta, u16 status,
310 static u16 auth_shared_key(struct hostapd_data *hapd, struct sta_info *sta, in auth_shared_key() argument
314 hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_IEEE80211, in auth_shared_key()
320 if (!sta->challenge) { in auth_shared_key()
324 sta->challenge = os_zalloc(WLAN_AUTH_CHALLENGE_LEN); in auth_shared_key()
325 if (sta->challenge == NULL) in auth_shared_key()
329 os_free(sta->challenge); in auth_shared_key()
330 sta->challenge = NULL; in auth_shared_key()
[all …]
Dap_mlme.c54 struct sta_info *sta) in mlme_authenticate_indication() argument
56 hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_MLME, in mlme_authenticate_indication()
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()
61 sta->auth_alg != WLAN_AUTH_FILS_SK && in mlme_authenticate_indication()
62 sta->auth_alg != WLAN_AUTH_FILS_SK_PFS && in mlme_authenticate_indication()
63 sta->auth_alg != WLAN_AUTH_FILS_PK && in mlme_authenticate_indication()
64 !(sta->flags & WLAN_STA_MFP)) in mlme_authenticate_indication()
65 mlme_deletekeys_request(hapd, sta); in mlme_authenticate_indication()
66 ap_sta_clear_disconnect_timeouts(hapd, sta); in mlme_authenticate_indication()
[all …]
Dieee802_1x.c47 struct sta_info *sta, int success,
51 static void ieee802_1x_send(struct hostapd_data *hapd, struct sta_info *sta, in ieee802_1x_send() argument
79 if (wpa_auth_pairwise_set(sta->wpa_sm)) in ieee802_1x_send()
90 MAC2STR(sta->addr), hex); in ieee802_1x_send()
95 if (sta->flags & WLAN_STA_PREAUTH) { in ieee802_1x_send()
96 rsn_preauth_send(hapd, sta, buf, len); in ieee802_1x_send()
99 hapd, sta->addr, buf, len, in ieee802_1x_send()
100 encrypt, hostapd_sta_flags_to_drv(sta->flags)); in ieee802_1x_send()
108 struct sta_info *sta, int authorized) in ieee802_1x_set_sta_authorized() argument
112 if (sta->flags & WLAN_STA_PREAUTH) in ieee802_1x_set_sta_authorized()
[all …]
Ddrv_callbacks.c51 struct sta_info *sta) in hostapd_notify_assoc_fils_finish() argument
59 __func__, MAC2STR_SEC(sta->addr)); in hostapd_notify_assoc_fils_finish()
60 eloop_cancel_timeout(fils_hlp_timeout, hapd, sta); in hostapd_notify_assoc_fils_finish()
61 if (!sta->fils_pending_assoc_req) in hostapd_notify_assoc_fils_finish()
64 ieee802_11_parse_elems(sta->fils_pending_assoc_req, in hostapd_notify_assoc_fils_finish()
65 sta->fils_pending_assoc_req_len, &elems, 0); in hostapd_notify_assoc_fils_finish()
72 p = hostapd_eid_assoc_fils_session(sta->wpa_sm, p, in hostapd_notify_assoc_fils_finish()
74 sta->fils_hlp_resp); in hostapd_notify_assoc_fils_finish()
76 reply_res = hostapd_sta_assoc(hapd, sta->addr, in hostapd_notify_assoc_fils_finish()
77 sta->fils_pending_assoc_is_reassoc, in hostapd_notify_assoc_fils_finish()
[all …]
Dpreauth_auth.c47 struct sta_info *sta; in rsn_preauth_receive() local
67 sta = ap_get_sta(hapd, ethhdr->h_source); in rsn_preauth_receive()
68 if (sta && (sta->flags & WLAN_STA_ASSOC)) { in rsn_preauth_receive()
70 "STA " MACSTR_SEC, MAC2STR_SEC(sta->addr)); in rsn_preauth_receive()
73 if (!sta && hdr->type == IEEE802_1X_TYPE_EAPOL_START) { in rsn_preauth_receive()
74 sta = ap_sta_add(hapd, ethhdr->h_source); in rsn_preauth_receive()
75 if (sta == NULL) in rsn_preauth_receive()
77 sta->flags = WLAN_STA_PREAUTH; in rsn_preauth_receive()
79 ieee802_1x_new_station(hapd, sta); in rsn_preauth_receive()
80 if (sta->eapol_sm == NULL) { in rsn_preauth_receive()
[all …]
Dwpa_auth_glue.c275 struct sta_info *sta = ap_get_sta(hapd, addr); in hostapd_wpa_auth_set_eapol() local
276 if (sta == NULL) in hostapd_wpa_auth_set_eapol()
280 ieee802_1x_notify_port_enabled(sta->eapol_sm, value); in hostapd_wpa_auth_set_eapol()
283 ieee802_1x_notify_port_valid(sta->eapol_sm, value); in hostapd_wpa_auth_set_eapol()
286 ieee802_1x_set_sta_authorized(hapd, sta, value); in hostapd_wpa_auth_set_eapol()
289 if (sta->eapol_sm) in hostapd_wpa_auth_set_eapol()
290 sta->eapol_sm->portControl = Auto; in hostapd_wpa_auth_set_eapol()
293 if (sta->eapol_sm) in hostapd_wpa_auth_set_eapol()
294 sta->eapol_sm->keyRun = value; in hostapd_wpa_auth_set_eapol()
297 if (sta->eapol_sm) in hostapd_wpa_auth_set_eapol()
[all …]
Dairtime_policy.c57 struct sta_info *sta, in set_new_backlog_time() argument
60 sta->backlogged_until = *now; in set_new_backlog_time()
61 sta->backlogged_until.usec += hapd->iconf->airtime_update_interval * in set_new_backlog_time()
63 while (sta->backlogged_until.usec >= 1000000) { 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()
80 if (hostapd_drv_read_sta_data(hapd, &data, sta->addr)) in count_backlogged_sta()
88 set_new_backlog_time(hapd, sta, &now); in count_backlogged_sta()
[all …]
Dmbo_ap.c19 void mbo_ap_sta_free(struct sta_info *sta) in mbo_ap_sta_free() argument
23 info = sta->non_pref_chan; in mbo_ap_sta_free()
24 sta->non_pref_chan = NULL; in mbo_ap_sta_free()
33 static void mbo_ap_parse_non_pref_chan(struct sta_info *sta, in mbo_ap_parse_non_pref_chan() argument
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()
78 MAC2STR_SEC(sta->addr), info->op_class, info->pref, in mbo_ap_parse_non_pref_chan()
83 void mbo_ap_check_sta_assoc(struct hostapd_data *hapd, struct sta_info *sta, in mbo_ap_check_sta_assoc() argument
98 sta->cell_capa = attr[2]; in mbo_ap_check_sta_assoc()
[all …]
Dfils_hlp.c36 static int fils_dhcp_request(struct hostapd_data *hapd, struct sta_info *sta, in fils_dhcp_request() argument
45 if (!sta->hlp_dhcp_discover) { in fils_dhcp_request()
53 pos = wpabuf_mhead(sta->hlp_dhcp_discover); in fils_dhcp_request()
54 end = pos + wpabuf_len(sta->hlp_dhcp_discover); in fils_dhcp_request()
91 sta->hlp_dhcp_discover->used = pos - (u8 *) dhcp; in fils_dhcp_request()
117 if (wpabuf_resize(&sta->hlp_dhcp_discover, in fils_dhcp_request()
121 wpabuf_put_data(sta->hlp_dhcp_discover, server_id, in fils_dhcp_request()
123 wpabuf_put_u8(sta->hlp_dhcp_discover, DHCP_OPT_REQUESTED_IP_ADDRESS); in fils_dhcp_request()
124 wpabuf_put_u8(sta->hlp_dhcp_discover, 4); in fils_dhcp_request()
125 wpabuf_put_data(sta->hlp_dhcp_discover, &dhcpoffer->your_ip, 4); in fils_dhcp_request()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/
Dsta_info.c44 struct sta_info *sta);
52 static int ap_sta_remove(struct hostapd_data *hapd, struct sta_info *sta);
56 int (*cb)(struct hostapd_data *hapd, struct sta_info *sta, in ap_for_each_sta() argument
60 struct sta_info *sta; in ap_for_each_sta() local
62 for (sta = hapd->sta_list; sta; sta = sta->next) { in ap_for_each_sta()
63 if (cb(hapd, sta, ctx)) in ap_for_each_sta()
71 struct sta_info * ap_get_sta(struct hostapd_data *hapd, const u8 *sta) in ap_get_sta() argument
75 s = hapd->sta_hash[STA_HASH(sta)]; in ap_get_sta()
76 while (s != NULL && os_memcmp(s->addr, sta, 6) != 0) in ap_get_sta()
85 struct sta_info *sta; in ap_get_sta_p2p() local
[all …]
Dieee802_11.c61 struct sta_info *sta, u16 *resp,
242 static u16 auth_shared_key(struct hostapd_data *hapd, struct sta_info *sta, in auth_shared_key() argument
246 hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_IEEE80211, in auth_shared_key()
252 if (!sta->challenge) { in auth_shared_key()
256 sta->challenge = os_zalloc(WLAN_AUTH_CHALLENGE_LEN); in auth_shared_key()
257 if (sta->challenge == NULL) in auth_shared_key()
261 os_free(sta->challenge); in auth_shared_key()
262 sta->challenge = NULL; in auth_shared_key()
267 sta->challenge, WLAN_AUTH_CHALLENGE_LEN); in auth_shared_key()
276 if (!iswep || !sta->challenge || !challenge || in auth_shared_key()
[all …]
Daccounting.c31 struct sta_info *sta);
35 struct sta_info *sta, in accounting_msg() argument
59 if (sta) { in accounting_msg()
72 val = ieee802_1x_get_identity(sta->eapol_sm, &len); in accounting_msg()
75 if (!val && sta->identity) { in accounting_msg()
76 val = (u8 *) sta->identity; in accounting_msg()
77 len = os_strlen(sta->identity); in accounting_msg()
84 MAC2STR(sta->addr)); in accounting_msg()
96 if (add_common_radius_attr(hapd, hapd->conf->radius_acct_req_attr, sta, in accounting_msg()
100 if (sta && add_sqlite_radius_attr(hapd, sta, msg, 1) < 0) in accounting_msg()
[all …]
Dap_mlme.c54 struct sta_info *sta) in mlme_authenticate_indication() argument
56 hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_MLME, in mlme_authenticate_indication()
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()
61 sta->auth_alg != WLAN_AUTH_FILS_SK && in mlme_authenticate_indication()
62 sta->auth_alg != WLAN_AUTH_FILS_SK_PFS && in mlme_authenticate_indication()
63 sta->auth_alg != WLAN_AUTH_FILS_PK && in mlme_authenticate_indication()
64 !(sta->flags & WLAN_STA_MFP)) in mlme_authenticate_indication()
65 mlme_deletekeys_request(hapd, sta); in mlme_authenticate_indication()
66 ap_sta_clear_disconnect_timeouts(hapd, sta); in mlme_authenticate_indication()
[all …]
Dieee802_1x.c47 struct sta_info *sta, int success,
51 static void ieee802_1x_send(struct hostapd_data *hapd, struct sta_info *sta, in ieee802_1x_send() argument
80 if (wpa_auth_pairwise_set(sta->wpa_sm)) in ieee802_1x_send()
91 MAC2STR(sta->addr), hex); in ieee802_1x_send()
96 if (sta->flags & WLAN_STA_PREAUTH) { in ieee802_1x_send()
97 rsn_preauth_send(hapd, sta, buf, len); in ieee802_1x_send()
100 hapd, sta->addr, buf, len, in ieee802_1x_send()
101 encrypt, hostapd_sta_flags_to_drv(sta->flags)); in ieee802_1x_send()
109 struct sta_info *sta, int authorized) in ieee802_1x_set_sta_authorized() argument
113 if (sta->flags & WLAN_STA_PREAUTH) in ieee802_1x_set_sta_authorized()
[all …]
Ddrv_callbacks.c47 struct sta_info *sta) in hostapd_notify_assoc_fils_finish() argument
55 __func__, MAC2STR(sta->addr)); in hostapd_notify_assoc_fils_finish()
56 eloop_cancel_timeout(fils_hlp_timeout, hapd, sta); in hostapd_notify_assoc_fils_finish()
57 if (!sta->fils_pending_assoc_req) in hostapd_notify_assoc_fils_finish()
60 ieee802_11_parse_elems(sta->fils_pending_assoc_req, in hostapd_notify_assoc_fils_finish()
61 sta->fils_pending_assoc_req_len, &elems, 0); in hostapd_notify_assoc_fils_finish()
68 p = hostapd_eid_assoc_fils_session(sta->wpa_sm, p, in hostapd_notify_assoc_fils_finish()
70 sta->fils_hlp_resp); in hostapd_notify_assoc_fils_finish()
72 reply_res = hostapd_sta_assoc(hapd, sta->addr, in hostapd_notify_assoc_fils_finish()
73 sta->fils_pending_assoc_is_reassoc, in hostapd_notify_assoc_fils_finish()
[all …]
Dwpa_auth_glue.c195 struct sta_info *sta = ap_get_sta(hapd, addr); in hostapd_wpa_auth_set_eapol() local
196 if (sta == NULL) in hostapd_wpa_auth_set_eapol()
200 ieee802_1x_notify_port_enabled(sta->eapol_sm, value); in hostapd_wpa_auth_set_eapol()
203 ieee802_1x_notify_port_valid(sta->eapol_sm, value); in hostapd_wpa_auth_set_eapol()
206 ieee802_1x_set_sta_authorized(hapd, sta, value); in hostapd_wpa_auth_set_eapol()
209 if (sta->eapol_sm) in hostapd_wpa_auth_set_eapol()
210 sta->eapol_sm->portControl = Auto; in hostapd_wpa_auth_set_eapol()
213 if (sta->eapol_sm) in hostapd_wpa_auth_set_eapol()
214 sta->eapol_sm->keyRun = value ? TRUE : FALSE; in hostapd_wpa_auth_set_eapol()
217 if (sta->eapol_sm) in hostapd_wpa_auth_set_eapol()
[all …]
Dpreauth_auth.c47 struct sta_info *sta; in rsn_preauth_receive() local
67 sta = ap_get_sta(hapd, ethhdr->h_source); in rsn_preauth_receive()
68 if (sta && (sta->flags & WLAN_STA_ASSOC)) { in rsn_preauth_receive()
70 "STA " MACSTR, MAC2STR(sta->addr)); in rsn_preauth_receive()
73 if (!sta && hdr->type == IEEE802_1X_TYPE_EAPOL_START) { in rsn_preauth_receive()
74 sta = ap_sta_add(hapd, ethhdr->h_source); in rsn_preauth_receive()
75 if (sta == NULL) in rsn_preauth_receive()
77 sta->flags = WLAN_STA_PREAUTH; in rsn_preauth_receive()
79 ieee802_1x_new_station(hapd, sta); in rsn_preauth_receive()
80 if (sta->eapol_sm == NULL) { in rsn_preauth_receive()
[all …]
Dairtime_policy.c57 struct sta_info *sta, in set_new_backlog_time() argument
60 sta->backlogged_until = *now; in set_new_backlog_time()
61 sta->backlogged_until.usec += hapd->iconf->airtime_update_interval * in set_new_backlog_time()
63 while (sta->backlogged_until.usec >= 1000000) { 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()
80 if (hostapd_drv_read_sta_data(hapd, &data, sta->addr)) in count_backlogged_sta()
84 set_new_backlog_time(hapd, sta, &now); in count_backlogged_sta()
[all …]
Dmbo_ap.c19 void mbo_ap_sta_free(struct sta_info *sta) in mbo_ap_sta_free() argument
23 info = sta->non_pref_chan; in mbo_ap_sta_free()
24 sta->non_pref_chan = NULL; in mbo_ap_sta_free()
33 static void mbo_ap_parse_non_pref_chan(struct sta_info *sta, in mbo_ap_parse_non_pref_chan() argument
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()
78 MAC2STR(sta->addr), info->op_class, info->pref, in mbo_ap_parse_non_pref_chan()
83 void mbo_ap_check_sta_assoc(struct hostapd_data *hapd, struct sta_info *sta, in mbo_ap_check_sta_assoc() argument
98 sta->cell_capa = attr[2]; in mbo_ap_check_sta_assoc()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/
Dmesh_mpm.c122 struct sta_info *sta, in copy_supp_rates() argument
127 MAC2STR(sta->addr)); in copy_supp_rates()
132 sizeof(sta->supported_rates)) { in copy_supp_rates()
135 " %d+%d", MAC2STR(sta->addr), elems->supp_rates_len, in copy_supp_rates()
140 sta->supported_rates_len = merge_byte_arrays( in copy_supp_rates()
141 sta->supported_rates, sizeof(sta->supported_rates), in copy_supp_rates()
172 struct sta_info *sta; in llid_in_use() local
175 for (sta = hapd->sta_list; sta; sta = sta->next) { in llid_in_use()
176 if (sta->my_lid == llid) in llid_in_use()
186 struct sta_info *sta) in mesh_mpm_init_link() argument
[all …]
Dmesh_rsn.c34 struct sta_info *sta = user_data; in mesh_auth_timer() local
37 if (sta->sae->state != SAE_ACCEPTED) { in mesh_auth_timer()
40 MAC2STR_SEC(sta->addr), sta->sae_auth_retry); in mesh_auth_timer()
42 MAC2STR(sta->addr)); in mesh_auth_timer()
43 if (sta->sae_auth_retry < MESH_AUTH_RETRY) { in mesh_auth_timer()
44 mesh_rsn_auth_sae_sta(wpa_s, sta); in mesh_auth_timer()
48 if (sta->sae_auth_retry > MESH_AUTH_RETRY) { in mesh_auth_timer()
49 ap_free_sta(hapd, sta); in mesh_auth_timer()
54 wpa_mesh_set_plink_state(wpa_s, sta, PLINK_BLOCKED); in mesh_auth_timer()
55 sta->sae->state = SAE_NOTHING; in mesh_auth_timer()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/
Dmesh_mpm.c122 struct sta_info *sta, in copy_supp_rates() argument
127 MAC2STR(sta->addr)); in copy_supp_rates()
132 sizeof(sta->supported_rates)) { in copy_supp_rates()
135 " %d+%d", MAC2STR(sta->addr), elems->supp_rates_len, in copy_supp_rates()
140 sta->supported_rates_len = merge_byte_arrays( in copy_supp_rates()
141 sta->supported_rates, sizeof(sta->supported_rates), in copy_supp_rates()
172 struct sta_info *sta; in llid_in_use() local
175 for (sta = hapd->sta_list; sta; sta = sta->next) { in llid_in_use()
176 if (sta->my_lid == llid) in llid_in_use()
186 struct sta_info *sta) in mesh_mpm_init_link() argument
[all …]
Dmesh_rsn.c34 struct sta_info *sta = user_data; in mesh_auth_timer() local
37 if (sta->sae->state != SAE_ACCEPTED) { in mesh_auth_timer()
40 MAC2STR(sta->addr), sta->sae_auth_retry); in mesh_auth_timer()
42 MAC2STR(sta->addr)); in mesh_auth_timer()
43 if (sta->sae_auth_retry < MESH_AUTH_RETRY) { in mesh_auth_timer()
44 mesh_rsn_auth_sae_sta(wpa_s, sta); in mesh_auth_timer()
48 if (sta->sae_auth_retry > MESH_AUTH_RETRY) { in mesh_auth_timer()
49 ap_free_sta(hapd, sta); in mesh_auth_timer()
54 wpa_mesh_set_plink_state(wpa_s, sta, PLINK_BLOCKED); in mesh_auth_timer()
55 sta->sae->state = SAE_NOTHING; in mesh_auth_timer()
[all …]

12345678910