Home
last modified time | relevance | path

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

123456

/external/wpa_supplicant_8/src/ap/
Dsta_info.c43 struct sta_info *sta);
51 static int ap_sta_remove(struct hostapd_data *hapd, struct sta_info *sta);
55 int (*cb)(struct hostapd_data *hapd, struct sta_info *sta, in ap_for_each_sta() argument
59 struct sta_info *sta; in ap_for_each_sta() local
61 for (sta = hapd->sta_list; sta; sta = sta->next) { in ap_for_each_sta()
62 if (cb(hapd, sta, ctx)) in ap_for_each_sta()
70 struct sta_info * ap_get_sta(struct hostapd_data *hapd, const u8 *sta) in ap_get_sta() argument
74 s = hapd->sta_hash[STA_HASH(sta)]; in ap_get_sta()
75 while (s != NULL && os_memcmp(s->addr, sta, 6) != 0) in ap_get_sta()
84 struct sta_info *sta; in ap_get_sta_p2p() local
[all …]
Dieee802_11.c58 struct sta_info *sta, u16 *resp,
220 static u16 auth_shared_key(struct hostapd_data *hapd, struct sta_info *sta, in auth_shared_key() argument
224 hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_IEEE80211, in auth_shared_key()
230 if (!sta->challenge) { in auth_shared_key()
234 sta->challenge = os_zalloc(WLAN_AUTH_CHALLENGE_LEN); in auth_shared_key()
235 if (sta->challenge == NULL) in auth_shared_key()
239 os_free(sta->challenge); in auth_shared_key()
240 sta->challenge = NULL; in auth_shared_key()
245 sta->challenge, WLAN_AUTH_CHALLENGE_LEN); in auth_shared_key()
254 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) { in accounting_msg()
[all …]
Dieee802_1x.c43 struct sta_info *sta, int success,
47 static void ieee802_1x_send(struct hostapd_data *hapd, struct sta_info *sta, in ieee802_1x_send() argument
72 if (wpa_auth_pairwise_set(sta->wpa_sm)) in ieee802_1x_send()
83 MAC2STR(sta->addr), hex); in ieee802_1x_send()
88 if (sta->flags & WLAN_STA_PREAUTH) { in ieee802_1x_send()
89 rsn_preauth_send(hapd, sta, buf, len); in ieee802_1x_send()
92 hapd, sta->addr, buf, len, in ieee802_1x_send()
93 encrypt, hostapd_sta_flags_to_drv(sta->flags)); in ieee802_1x_send()
101 struct sta_info *sta, int authorized) in ieee802_1x_set_sta_authorized() argument
105 if (sta->flags & WLAN_STA_PREAUTH) in ieee802_1x_set_sta_authorized()
[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 …]
Ddrv_callbacks.c45 struct sta_info *sta) in hostapd_notify_assoc_fils_finish() argument
53 __func__, MAC2STR(sta->addr)); in hostapd_notify_assoc_fils_finish()
54 eloop_cancel_timeout(fils_hlp_timeout, hapd, sta); in hostapd_notify_assoc_fils_finish()
55 if (!sta->fils_pending_assoc_req) in hostapd_notify_assoc_fils_finish()
58 ieee802_11_parse_elems(sta->fils_pending_assoc_req, in hostapd_notify_assoc_fils_finish()
59 sta->fils_pending_assoc_req_len, &elems, 0); in hostapd_notify_assoc_fils_finish()
66 p = hostapd_eid_assoc_fils_session(sta->wpa_sm, p, in hostapd_notify_assoc_fils_finish()
68 sta->fils_hlp_resp); in hostapd_notify_assoc_fils_finish()
70 reply_res = hostapd_sta_assoc(hapd, sta->addr, in hostapd_notify_assoc_fils_finish()
71 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, 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 …]
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 …]
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 …]
Dwpa_auth_glue.c185 struct sta_info *sta = ap_get_sta(hapd, addr); in hostapd_wpa_auth_set_eapol() local
186 if (sta == NULL) in hostapd_wpa_auth_set_eapol()
190 ieee802_1x_notify_port_enabled(sta->eapol_sm, value); in hostapd_wpa_auth_set_eapol()
193 ieee802_1x_notify_port_valid(sta->eapol_sm, value); in hostapd_wpa_auth_set_eapol()
196 ieee802_1x_set_sta_authorized(hapd, sta, value); in hostapd_wpa_auth_set_eapol()
199 if (sta->eapol_sm) in hostapd_wpa_auth_set_eapol()
200 sta->eapol_sm->portControl = Auto; in hostapd_wpa_auth_set_eapol()
203 if (sta->eapol_sm) in hostapd_wpa_auth_set_eapol()
204 sta->eapol_sm->keyRun = value ? TRUE : FALSE; in hostapd_wpa_auth_set_eapol()
207 if (sta->eapol_sm) in hostapd_wpa_auth_set_eapol()
[all …]
Dieee802_11_ht.c335 u16 copy_sta_ht_capab(struct hostapd_data *hapd, struct sta_info *sta, in copy_sta_ht_capab() argument
343 if (!ht_capab || !(sta->flags & WLAN_STA_WMM) || in copy_sta_ht_capab()
345 sta->flags &= ~WLAN_STA_HT; in copy_sta_ht_capab()
346 os_free(sta->ht_capabilities); in copy_sta_ht_capab()
347 sta->ht_capabilities = NULL; in copy_sta_ht_capab()
351 if (sta->ht_capabilities == NULL) { in copy_sta_ht_capab()
352 sta->ht_capabilities = in copy_sta_ht_capab()
354 if (sta->ht_capabilities == NULL) in copy_sta_ht_capab()
358 sta->flags |= WLAN_STA_HT; in copy_sta_ht_capab()
359 os_memcpy(sta->ht_capabilities, ht_capab, in copy_sta_ht_capab()
[all …]
Dctrl_iface_ap.c30 struct sta_info *sta, in hostapd_get_sta_tx_rx() argument
37 if (hostapd_drv_read_sta_data(hapd, &data, sta->addr) < 0) in hostapd_get_sta_tx_rx()
118 static int hostapd_get_sta_conn_time(struct sta_info *sta, in hostapd_get_sta_conn_time() argument
124 if (!sta->connected_time.sec) in hostapd_get_sta_conn_time()
127 os_reltime_age(&sta->connected_time, &age); in hostapd_get_sta_conn_time()
157 struct sta_info *sta, in hostapd_ctrl_iface_sta_mib() argument
162 if (!sta) in hostapd_ctrl_iface_sta_mib()
167 MAC2STR(sta->addr)); in hostapd_ctrl_iface_sta_mib()
172 ret = ap_sta_flags_txt(sta->flags, buf + len, buflen - len); in hostapd_ctrl_iface_sta_mib()
179 sta->aid, sta->capability, sta->listen_interval); in hostapd_ctrl_iface_sta_mib()
[all …]
Dndisc_snoop.c41 static int sta_ip6addr_add(struct sta_info *sta, struct in6_addr *addr) in sta_ip6addr_add() argument
51 dl_list_add_tail(&sta->ip6addr, &ip6addr->list); in sta_ip6addr_add()
57 void sta_ip6addr_del(struct hostapd_data *hapd, struct sta_info *sta) in sta_ip6addr_del() argument
61 dl_list_for_each_safe(ip6addr, prev, &sta->ip6addr, struct ip6addr, in sta_ip6addr_del()
69 static int sta_has_ip6addr(struct sta_info *sta, struct in6_addr *addr) in sta_has_ip6addr() argument
73 dl_list_for_each(ip6addr, &sta->ip6addr, struct ip6addr, list) { in sta_has_ip6addr()
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()
92 x_snoop_mcast_to_ucast_convert_send(hapd, sta, (u8 *) buf, len); in ucast_to_stas()
[all …]
Dsta_info.h238 void (*fils_pending_cb)(struct hostapd_data *hapd, struct sta_info *sta,
280 int (*cb)(struct hostapd_data *hapd, struct sta_info *sta,
283 struct sta_info * ap_get_sta(struct hostapd_data *hapd, const u8 *sta);
285 void ap_sta_hash_add(struct hostapd_data *hapd, struct sta_info *sta);
286 void ap_free_sta(struct hostapd_data *hapd, struct sta_info *sta);
287 void ap_sta_ip6addr_del(struct hostapd_data *hapd, struct sta_info *sta);
290 void ap_sta_replenish_timeout(struct hostapd_data *hapd, struct sta_info *sta,
292 void ap_sta_session_timeout(struct hostapd_data *hapd, struct sta_info *sta,
295 struct sta_info *sta);
297 struct sta_info *sta, int warning_time);
[all …]
Ddhcp_snoop.c37 struct sta_info *sta; in handle_dhcp() local
96 sta = ap_get_sta(hapd, b->hw_addr); in handle_dhcp()
97 if (!sta) in handle_dhcp()
102 MAC2STR(sta->addr), in handle_dhcp()
106 if (sta->ipaddr == b->your_ip) in handle_dhcp()
109 if (sta->ipaddr != 0) { in handle_dhcp()
112 ipaddr_str(be_to_host32(sta->ipaddr))); in handle_dhcp()
114 (u8 *) &sta->ipaddr); in handle_dhcp()
118 prefixlen, sta->addr); in handle_dhcp()
125 sta->ipaddr = b->your_ip; in handle_dhcp()
[all …]
Dieee802_11.h28 int ieee802_11_get_mib_sta(struct hostapd_data *hapd, struct sta_info *sta,
38 struct sta_info *sta, in ieee802_11_get_mib_sta() argument
70 int hostapd_get_aid(struct hostapd_data *hapd, struct sta_info *sta);
71 u16 copy_sta_ht_capab(struct hostapd_data *hapd, struct sta_info *sta,
73 u16 copy_sta_vendor_vht(struct hostapd_data *hapd, struct sta_info *sta,
76 void update_ht_state(struct hostapd_data *hapd, struct sta_info *sta);
77 void ht40_intolerant_add(struct hostapd_iface *iface, struct sta_info *sta);
78 void ht40_intolerant_remove(struct hostapd_iface *iface, struct sta_info *sta);
79 u16 copy_sta_vht_capab(struct hostapd_data *hapd, struct sta_info *sta,
81 u16 set_sta_vht_opmode(struct hostapd_data *hapd, struct sta_info *sta,
[all …]
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,
35 int ieee802_1x_eapol_tx_status(struct hostapd_data *hapd, struct sta_info *sta,
48 int ieee802_1x_get_mib_sta(struct hostapd_data *hapd, struct sta_info *sta,
54 int radius_sta_rate(struct hostapd_data *hapd, struct sta_info *sta);
58 struct sta_info *sta,
[all …]
Dieee802_11_vht.c332 u16 copy_sta_vht_capab(struct hostapd_data *hapd, struct sta_info *sta, in copy_sta_vht_capab() argument
339 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()
345 if (sta->vht_capabilities == NULL) { in copy_sta_vht_capab()
346 sta->vht_capabilities = in copy_sta_vht_capab()
348 if (sta->vht_capabilities == NULL) in copy_sta_vht_capab()
352 sta->flags |= WLAN_STA_VHT; in copy_sta_vht_capab()
353 os_memcpy(sta->vht_capabilities, vht_capab, in copy_sta_vht_capab()
360 u16 copy_sta_vendor_vht(struct hostapd_data *hapd, struct sta_info *sta, in copy_sta_vendor_vht() argument
[all …]
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()
75 struct sta_info *sta = ap_get_sta(hapd, addr); in michael_mic_failure() local
76 if (sta != NULL) { in michael_mic_failure()
77 wpa_auth_sta_local_mic_failure_report(sta->wpa_sm); in michael_mic_failure()
/external/wpa_supplicant_8/wpa_supplicant/
Dmesh_mpm.c121 struct sta_info *sta, in copy_supp_rates() argument
126 MAC2STR(sta->addr)); in copy_supp_rates()
131 sizeof(sta->supported_rates)) { in copy_supp_rates()
134 " %d+%d", MAC2STR(sta->addr), elems->supp_rates_len, in copy_supp_rates()
139 sta->supported_rates_len = merge_byte_arrays( in copy_supp_rates()
140 sta->supported_rates, sizeof(sta->supported_rates), in copy_supp_rates()
171 struct sta_info *sta; in llid_in_use() local
174 for (sta = hapd->sta_list; sta; sta = sta->next) { in llid_in_use()
175 if (sta->my_lid == llid) in llid_in_use()
185 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 …]
/external/aac/libFDK/include/
Dqmf_pcm.h143 FIXP_QSS *RESTRICT sta = FilterStates; in qmfSynPrototypeFirSlot() local
171 FIXP_DBL Are = fMultAddDiv2(FX_QSS2FX_DBL(sta[0]), p_fltm[0], real); in qmfSynPrototypeFirSlot()
198 sta[0] = FX_DBL2FX_QSS(fMultAddDiv2(FX_QSS2FX_DBL(sta[1]), p_flt[4], imag)); in qmfSynPrototypeFirSlot()
199 sta[1] = in qmfSynPrototypeFirSlot()
200 FX_DBL2FX_QSS(fMultAddDiv2(FX_QSS2FX_DBL(sta[2]), p_fltm[1], real)); in qmfSynPrototypeFirSlot()
201 sta[2] = FX_DBL2FX_QSS(fMultAddDiv2(FX_QSS2FX_DBL(sta[3]), p_flt[3], imag)); in qmfSynPrototypeFirSlot()
202 sta[3] = in qmfSynPrototypeFirSlot()
203 FX_DBL2FX_QSS(fMultAddDiv2(FX_QSS2FX_DBL(sta[4]), p_fltm[2], real)); in qmfSynPrototypeFirSlot()
204 sta[4] = FX_DBL2FX_QSS(fMultAddDiv2(FX_QSS2FX_DBL(sta[5]), p_flt[2], imag)); in qmfSynPrototypeFirSlot()
205 sta[5] = in qmfSynPrototypeFirSlot()
[all …]
/external/wpa_supplicant_8/src/wps/
Dwps_er.c34 static void wps_er_sta_event(struct wps_context *wps, struct wps_er_sta *sta, in wps_er_sta_event() argument
44 ev->uuid = sta->uuid; in wps_er_sta_event()
45 ev->mac_addr = sta->addr; in wps_er_sta_event()
46 ev->m1_received = sta->m1_received; in wps_er_sta_event()
47 ev->config_methods = sta->config_methods; in wps_er_sta_event()
48 ev->dev_passwd_id = sta->dev_passwd_id; in wps_er_sta_event()
49 ev->pri_dev_type = sta->pri_dev_type; in wps_er_sta_event()
50 ev->dev_name = sta->dev_name; in wps_er_sta_event()
51 ev->manufacturer = sta->manufacturer; in wps_er_sta_event()
52 ev->model_name = sta->model_name; in wps_er_sta_event()
[all …]
/external/v8/src/runtime/
Druntime-futex.cc23 CONVERT_ARG_HANDLE_CHECKED(JSTypedArray, sta, 0); in RUNTIME_FUNCTION()
27 CHECK(sta->GetBuffer()->is_shared()); in RUNTIME_FUNCTION()
28 CHECK_LT(index, NumberToSize(sta->length())); in RUNTIME_FUNCTION()
29 CHECK_EQ(sta->type(), kExternalInt32Array); in RUNTIME_FUNCTION()
37 Handle<JSArrayBuffer> array_buffer = sta->GetBuffer(); in RUNTIME_FUNCTION()
38 size_t addr = (index << 2) + NumberToSize(sta->byte_offset()); in RUNTIME_FUNCTION()
46 CONVERT_ARG_HANDLE_CHECKED(JSTypedArray, sta, 0); in RUNTIME_FUNCTION()
49 CHECK(sta->GetBuffer()->is_shared()); in RUNTIME_FUNCTION()
50 CHECK_LT(index, NumberToSize(sta->length())); in RUNTIME_FUNCTION()
51 CHECK_EQ(sta->type(), kExternalInt32Array); in RUNTIME_FUNCTION()
[all …]
Druntime-atomics.cc353 CONVERT_ARG_HANDLE_CHECKED(JSTypedArray, sta, 0); in RUNTIME_FUNCTION()
357 CHECK(sta->GetBuffer()->is_shared()); in RUNTIME_FUNCTION()
358 CHECK_LT(index, NumberToSize(sta->length())); in RUNTIME_FUNCTION()
360 uint8_t* source = static_cast<uint8_t*>(sta->GetBuffer()->backing_store()) + in RUNTIME_FUNCTION()
361 NumberToSize(sta->byte_offset()); in RUNTIME_FUNCTION()
363 switch (sta->type()) { in RUNTIME_FUNCTION()
387 CONVERT_ARG_HANDLE_CHECKED(JSTypedArray, sta, 0); in RUNTIME_FUNCTION()
390 CHECK(sta->GetBuffer()->is_shared()); in RUNTIME_FUNCTION()
391 CHECK_LT(index, NumberToSize(sta->length())); in RUNTIME_FUNCTION()
393 uint8_t* source = static_cast<uint8_t*>(sta->GetBuffer()->backing_store()) + in RUNTIME_FUNCTION()
[all …]

123456