/external/wpa_supplicant_8/src/ap/ |
D | sta_info.c | 38 struct sta_info *sta); 46 static int ap_sta_remove(struct hostapd_data *hapd, struct sta_info *sta); 49 int (*cb)(struct hostapd_data *hapd, struct sta_info *sta, in ap_for_each_sta() argument 53 struct sta_info *sta; in ap_for_each_sta() local 55 for (sta = hapd->sta_list; sta; sta = sta->next) { in ap_for_each_sta() 56 if (cb(hapd, sta, ctx)) in ap_for_each_sta() 64 struct sta_info * ap_get_sta(struct hostapd_data *hapd, const u8 *sta) in ap_get_sta() argument 68 s = hapd->sta_hash[STA_HASH(sta)]; in ap_get_sta() 69 while (s != NULL && os_memcmp(s->addr, sta, 6) != 0) in ap_get_sta() 78 struct sta_info *sta; in ap_get_sta_p2p() local [all …]
|
D | ieee802_11.c | 194 static u16 auth_shared_key(struct hostapd_data *hapd, struct sta_info *sta, in auth_shared_key() argument 198 hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_IEEE80211, in auth_shared_key() 204 if (!sta->challenge) { in auth_shared_key() 209 sta->challenge = os_zalloc(WLAN_AUTH_CHALLENGE_LEN); in auth_shared_key() 210 if (sta->challenge == NULL) in auth_shared_key() 218 sta->challenge, WLAN_AUTH_CHALLENGE_LEN); in auth_shared_key() 227 if (!iswep || !sta->challenge || !challenge || in auth_shared_key() 228 os_memcmp_const(sta->challenge, challenge, in auth_shared_key() 230 hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_IEEE80211, in auth_shared_key() 237 hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_IEEE80211, in auth_shared_key() [all …]
|
D | accounting.c | 31 struct sta_info *sta); 35 struct sta_info *sta, in accounting_msg() argument 52 if (sta) { in accounting_msg() 53 radius_msg_make_authenticator(msg, (u8 *) sta, sizeof(*sta)); in accounting_msg() 57 sta->eapol_sm && sta->eapol_sm->acct_multi_session_id_hi) { in accounting_msg() 59 sta->eapol_sm->acct_multi_session_id_hi, in accounting_msg() 60 sta->eapol_sm->acct_multi_session_id_lo); in accounting_msg() 89 if (sta) { in accounting_msg() 91 val = ieee802_1x_get_identity(sta->eapol_sm, &len); in accounting_msg() 94 if (!val && sta->identity) { in accounting_msg() [all …]
|
D | ap_mlme.c | 54 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 && !(sta->flags & WLAN_STA_MFP)) in mlme_authenticate_indication() 61 mlme_deletekeys_request(hapd, sta); in mlme_authenticate_indication() 78 struct sta_info *sta, u16 reason_code) in mlme_deauthenticate_indication() argument 80 hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_MLME, in mlme_deauthenticate_indication() 83 MAC2STR(sta->addr), reason_code); in mlme_deauthenticate_indication() 85 mlme_deletekeys_request(hapd, sta); in mlme_deauthenticate_indication() 101 void mlme_associate_indication(struct hostapd_data *hapd, struct sta_info *sta) in mlme_associate_indication() argument [all …]
|
D | ieee802_1x.c | 38 struct sta_info *sta, int success, 42 static void ieee802_1x_send(struct hostapd_data *hapd, struct sta_info *sta, in ieee802_1x_send() argument 67 if (wpa_auth_pairwise_set(sta->wpa_sm)) in ieee802_1x_send() 78 MAC2STR(sta->addr), hex); in ieee802_1x_send() 83 if (sta->flags & WLAN_STA_PREAUTH) { in ieee802_1x_send() 84 rsn_preauth_send(hapd, sta, buf, len); in ieee802_1x_send() 87 hapd, sta->addr, buf, len, in ieee802_1x_send() 88 encrypt, hostapd_sta_flags_to_drv(sta->flags)); in ieee802_1x_send() 96 struct sta_info *sta, int authorized) in ieee802_1x_set_sta_authorized() argument 100 if (sta->flags & WLAN_STA_PREAUTH) in ieee802_1x_set_sta_authorized() [all …]
|
D | preauth_auth.c | 47 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 …]
|
D | drv_callbacks.c | 40 struct sta_info *sta; in hostapd_notif_assoc() local 96 sta = ap_get_sta(hapd, addr); in hostapd_notif_assoc() 97 if (sta) { in hostapd_notif_assoc() 98 ap_sta_no_session_timeout(hapd, sta); in hostapd_notif_assoc() 99 accounting_sta_stop(hapd, sta); in hostapd_notif_assoc() 105 sta->timeout_next = STA_NULLFUNC; in hostapd_notif_assoc() 107 sta = ap_sta_add(hapd, addr); in hostapd_notif_assoc() 108 if (sta == NULL) { in hostapd_notif_assoc() 114 sta->flags &= ~(WLAN_STA_WPS | WLAN_STA_MAYBE_WPS | WLAN_STA_WPS2); in hostapd_notif_assoc() 118 wpabuf_free(sta->p2p_ie); in hostapd_notif_assoc() [all …]
|
D | wpa_auth_glue.c | 160 struct sta_info *sta = ap_get_sta(hapd, addr); in hostapd_wpa_auth_set_eapol() local 161 if (sta == NULL) in hostapd_wpa_auth_set_eapol() 165 ieee802_1x_notify_port_enabled(sta->eapol_sm, value); in hostapd_wpa_auth_set_eapol() 168 ieee802_1x_notify_port_valid(sta->eapol_sm, value); in hostapd_wpa_auth_set_eapol() 171 ieee802_1x_set_sta_authorized(hapd, sta, value); in hostapd_wpa_auth_set_eapol() 174 if (sta->eapol_sm) in hostapd_wpa_auth_set_eapol() 175 sta->eapol_sm->portControl = Auto; in hostapd_wpa_auth_set_eapol() 178 if (sta->eapol_sm) in hostapd_wpa_auth_set_eapol() 179 sta->eapol_sm->keyRun = value ? TRUE : FALSE; in hostapd_wpa_auth_set_eapol() 182 if (sta->eapol_sm) in hostapd_wpa_auth_set_eapol() [all …]
|
D | ndisc_snoop.c | 40 static int sta_ip6addr_add(struct sta_info *sta, struct in6_addr *addr) in sta_ip6addr_add() argument 50 dl_list_add_tail(&sta->ip6addr, &ip6addr->list); in sta_ip6addr_add() 56 void sta_ip6addr_del(struct hostapd_data *hapd, struct sta_info *sta) in sta_ip6addr_del() argument 60 dl_list_for_each_safe(ip6addr, prev, &sta->ip6addr, struct ip6addr, in sta_ip6addr_del() 68 static int sta_has_ip6addr(struct sta_info *sta, struct in6_addr *addr) in sta_has_ip6addr() argument 72 dl_list_for_each(ip6addr, &sta->ip6addr, struct ip6addr, list) { in sta_has_ip6addr() 86 struct sta_info *sta; in ucast_to_stas() local 88 for (sta = hapd->sta_list; sta; sta = sta->next) { in ucast_to_stas() 89 if (!(sta->flags & WLAN_STA_AUTHORIZED)) in ucast_to_stas() 91 x_snoop_mcast_to_ucast_convert_send(hapd, sta, (u8 *) buf, len); in ucast_to_stas() [all …]
|
D | ctrl_iface_ap.c | 27 struct sta_info *sta, in hostapd_get_sta_tx_rx() argument 33 if (hostapd_drv_read_sta_data(hapd, &data, sta->addr) < 0) in hostapd_get_sta_tx_rx() 46 static int hostapd_get_sta_conn_time(struct sta_info *sta, in hostapd_get_sta_conn_time() argument 52 if (!sta->connected_time.sec) in hostapd_get_sta_conn_time() 55 os_reltime_age(&sta->connected_time, &age); in hostapd_get_sta_conn_time() 85 struct sta_info *sta, in hostapd_ctrl_iface_sta_mib() argument 90 if (!sta) in hostapd_ctrl_iface_sta_mib() 95 MAC2STR(sta->addr)); in hostapd_ctrl_iface_sta_mib() 100 ret = ap_sta_flags_txt(sta->flags, buf + len, buflen - len); in hostapd_ctrl_iface_sta_mib() 107 sta->aid, sta->capability, sta->listen_interval); in hostapd_ctrl_iface_sta_mib() [all …]
|
D | sta_info.h | 192 int (*cb)(struct hostapd_data *hapd, struct sta_info *sta, 195 struct sta_info * ap_get_sta(struct hostapd_data *hapd, const u8 *sta); 197 void ap_sta_hash_add(struct hostapd_data *hapd, struct sta_info *sta); 198 void ap_free_sta(struct hostapd_data *hapd, struct sta_info *sta); 199 void ap_sta_ip6addr_del(struct hostapd_data *hapd, struct sta_info *sta); 202 void ap_sta_replenish_timeout(struct hostapd_data *hapd, struct sta_info *sta, 204 void ap_sta_session_timeout(struct hostapd_data *hapd, struct sta_info *sta, 207 struct sta_info *sta); 209 struct sta_info *sta, int warning_time); 211 void ap_sta_disassociate(struct hostapd_data *hapd, struct sta_info *sta, [all …]
|
D | ieee802_11_ht.c | 312 u16 copy_sta_ht_capab(struct hostapd_data *hapd, struct sta_info *sta, in copy_sta_ht_capab() argument 321 !(sta->flags & WLAN_STA_WMM) || hapd->conf->disable_11n) { in copy_sta_ht_capab() 322 sta->flags &= ~WLAN_STA_HT; in copy_sta_ht_capab() 323 os_free(sta->ht_capabilities); in copy_sta_ht_capab() 324 sta->ht_capabilities = NULL; in copy_sta_ht_capab() 328 if (sta->ht_capabilities == NULL) { in copy_sta_ht_capab() 329 sta->ht_capabilities = in copy_sta_ht_capab() 331 if (sta->ht_capabilities == NULL) in copy_sta_ht_capab() 335 sta->flags |= WLAN_STA_HT; in copy_sta_ht_capab() 336 os_memcpy(sta->ht_capabilities, ht_capab, in copy_sta_ht_capab() [all …]
|
D | dhcp_snoop.c | 61 struct sta_info *sta; in handle_dhcp() local 118 sta = ap_get_sta(hapd, b->hw_addr); in handle_dhcp() 119 if (!sta) in handle_dhcp() 124 MAC2STR(sta->addr), ipaddr_str(ntohl(b->your_ip)), in handle_dhcp() 127 if (sta->ipaddr == b->your_ip) in handle_dhcp() 130 if (sta->ipaddr != 0) { in handle_dhcp() 133 ipaddr_str(be_to_host32(sta->ipaddr))); in handle_dhcp() 135 (u8 *) &sta->ipaddr); in handle_dhcp() 139 prefixlen, sta->addr); in handle_dhcp() 146 sta->ipaddr = b->your_ip; in handle_dhcp() [all …]
|
D | ieee802_11_vht.c | 134 u16 copy_sta_vht_capab(struct hostapd_data *hapd, struct sta_info *sta, in copy_sta_vht_capab() argument 141 sta->flags &= ~WLAN_STA_VHT; in copy_sta_vht_capab() 142 os_free(sta->vht_capabilities); in copy_sta_vht_capab() 143 sta->vht_capabilities = NULL; in copy_sta_vht_capab() 147 if (sta->vht_capabilities == NULL) { in copy_sta_vht_capab() 148 sta->vht_capabilities = in copy_sta_vht_capab() 150 if (sta->vht_capabilities == NULL) in copy_sta_vht_capab() 154 sta->flags |= WLAN_STA_VHT; in copy_sta_vht_capab() 155 os_memcpy(sta->vht_capabilities, vht_capab, in copy_sta_vht_capab() 162 u16 copy_sta_vendor_vht(struct hostapd_data *hapd, struct sta_info *sta, in copy_sta_vendor_vht() argument [all …]
|
D | ieee802_1x.h | 23 void ieee802_1x_new_station(struct hostapd_data *hapd, struct sta_info *sta); 24 void ieee802_1x_free_station(struct sta_info *sta); 26 void ieee802_1x_tx_key(struct hostapd_data *hapd, struct sta_info *sta); 27 void ieee802_1x_abort_auth(struct hostapd_data *hapd, struct sta_info *sta); 29 struct sta_info *sta, int authorized); 30 void ieee802_1x_dump_state(FILE *f, const char *prefix, struct sta_info *sta); 34 int ieee802_1x_tx_status(struct hostapd_data *hapd, struct sta_info *sta, 36 int ieee802_1x_eapol_tx_status(struct hostapd_data *hapd, struct sta_info *sta, 49 int ieee802_1x_get_mib_sta(struct hostapd_data *hapd, struct sta_info *sta, 55 int radius_sta_rate(struct hostapd_data *hapd, struct sta_info *sta); [all …]
|
D | tkip_countermeasures.c | 36 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()
|
D | ieee802_11.h | 28 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 64 u16 copy_sta_ht_capab(struct hostapd_data *hapd, struct sta_info *sta, 66 u16 copy_sta_vendor_vht(struct hostapd_data *hapd, struct sta_info *sta, 69 void update_ht_state(struct hostapd_data *hapd, struct sta_info *sta); 70 void ht40_intolerant_add(struct hostapd_iface *iface, struct sta_info *sta); 71 void ht40_intolerant_remove(struct hostapd_iface *iface, struct sta_info *sta); 72 u16 copy_sta_vht_capab(struct hostapd_data *hapd, struct sta_info *sta, 74 u16 set_sta_vht_opmode(struct hostapd_data *hapd, struct sta_info *sta, 83 struct sta_info *sta, u8 *eid); [all …]
|
D | wnm_ap.c | 60 struct sta_info *sta; in ieee802_11_send_wnmsleep_resp() local 64 sta = ap_get_sta(hapd, addr); in ieee802_11_send_wnmsleep_resp() 65 if (sta == NULL) { in ieee802_11_send_wnmsleep_resp() 109 if (!wpa_auth_uses_mfp(sta->wpa_sm) || in ieee802_11_send_wnmsleep_resp() 113 gtk_elem_len = wpa_wnmsleep_gtk_subelem(sta->wpa_sm, pos); in ieee802_11_send_wnmsleep_resp() 118 res = wpa_wnmsleep_igtk_subelem(sta->wpa_sm, pos); in ieee802_11_send_wnmsleep_resp() 159 sta->flags |= WLAN_STA_WNM_SLEEP_MODE; in ieee802_11_send_wnmsleep_resp() 162 wpa_set_wnmsleep(sta->wpa_sm, 1); in ieee802_11_send_wnmsleep_resp() 173 sta->flags &= ~WLAN_STA_WNM_SLEEP_MODE; in ieee802_11_send_wnmsleep_resp() 174 wpa_set_wnmsleep(sta->wpa_sm, 0); in ieee802_11_send_wnmsleep_resp() [all …]
|
D | ap_mlme.h | 15 struct sta_info *sta); 18 struct sta_info *sta, u16 reason_code); 21 struct sta_info *sta); 24 struct sta_info *sta); 27 struct sta_info *sta, u16 reason_code); 32 void mlme_deletekeys_request(struct hostapd_data *hapd, struct sta_info *sta);
|
D | accounting.h | 14 struct sta_info *sta) in accounting_sta_get_id() argument 19 struct sta_info *sta) in accounting_sta_start() argument 24 struct sta_info *sta) in accounting_sta_stop() argument 37 void accounting_sta_get_id(struct hostapd_data *hapd, struct sta_info *sta); 38 void accounting_sta_start(struct hostapd_data *hapd, struct sta_info *sta); 39 void accounting_sta_stop(struct hostapd_data *hapd, struct sta_info *sta);
|
/external/wpa_supplicant_8/wpa_supplicant/ |
D | mesh_mpm.c | 121 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 …]
|
D | mesh_rsn.c | 35 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() 46 if (sta->sae_auth_retry > MESH_AUTH_RETRY) { in mesh_auth_timer() 47 ap_free_sta(wpa_s->ifmsh->bss[0], sta); in mesh_auth_timer() 52 wpa_mesh_set_plink_state(wpa_s, sta, PLINK_BLOCKED); in mesh_auth_timer() 53 sta->sae->state = SAE_NOTHING; in mesh_auth_timer() [all …]
|
/external/wpa_supplicant_8/src/wps/ |
D | wps_er.c | 34 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/aac/libFDK/src/arm/ |
D | qmf_arm.cpp | 467 FIXP_QSS *RESTRICT sta, in qmfSynPrototypeFirSlot1_filter() argument 484 sta0 = sta[0]; /* save state[0] */ in qmfSynPrototypeFirSlot1_filter() 485 *sta++ = SMLAWT( sta[1], imag, B ); /* index=9...........319 */ in qmfSynPrototypeFirSlot1_filter() 486 *sta++ = SMLAWB( sta[1], real, A ); /* index=316...........6 */ in qmfSynPrototypeFirSlot1_filter() 487 *sta++ = SMLAWB( sta[1], imag, B ); /* index=8,18, ...318 */ in qmfSynPrototypeFirSlot1_filter() 489 *sta++ = SMLAWT( sta[1], real, A ); /* index=317...........7 */ in qmfSynPrototypeFirSlot1_filter() 491 *sta++ = SMLAWT( sta[1], imag, B ); /* index=7...........317 */ in qmfSynPrototypeFirSlot1_filter() 492 *sta++ = SMLAWB( sta[1], real, A ); /* index=318...........8 */ in qmfSynPrototypeFirSlot1_filter() 493 *sta++ = SMLAWB( sta[1], imag, B ); /* index=6...........316 */ in qmfSynPrototypeFirSlot1_filter() 495 *sta++ = SMLAWT( sta[1], real, A ); /* index=9...........319 */ in qmfSynPrototypeFirSlot1_filter() [all …]
|
/external/wpa_supplicant_8/wpa_supplicant/tests/ |
D | link_test.c | 21 struct sta_info * ap_get_sta(struct hostapd_data *hapd, const u8 *sta) in ap_get_sta() argument 28 int (*cb)(struct hostapd_data *hapd, struct sta_info *sta, in ap_for_each_sta() argument 36 void ap_sta_session_timeout(struct hostapd_data *hapd, struct sta_info *sta, in ap_sta_session_timeout() argument 42 int ap_sta_bind_vlan(struct hostapd_data *hapd, struct sta_info *sta, in ap_sta_bind_vlan() argument 49 void rsn_preauth_finished(struct hostapd_data *hapd, struct sta_info *sta, in rsn_preauth_finished() argument 55 void rsn_preauth_send(struct hostapd_data *hapd, struct sta_info *sta, in rsn_preauth_send() argument 61 void accounting_sta_start(struct hostapd_data *hapd, struct sta_info *sta) in accounting_sta_start() argument
|