/external/wpa_supplicant_8/src/ap/ |
D | sta_info.c | 37 struct sta_info *sta); 45 static int ap_sta_remove(struct hostapd_data *hapd, struct sta_info *sta); 48 int (*cb)(struct hostapd_data *hapd, struct sta_info *sta, in ap_for_each_sta() argument 52 struct sta_info *sta; in ap_for_each_sta() local 54 for (sta = hapd->sta_list; sta; sta = sta->next) { in ap_for_each_sta() 55 if (cb(hapd, sta, ctx)) in ap_for_each_sta() 63 struct sta_info * ap_get_sta(struct hostapd_data *hapd, const u8 *sta) in ap_get_sta() argument 67 s = hapd->sta_hash[STA_HASH(sta)]; in ap_get_sta() 68 while (s != NULL && os_memcmp(s->addr, sta, 6) != 0) in ap_get_sta() 77 struct sta_info *sta; in ap_get_sta_p2p() local [all …]
|
D | ieee802_11.c | 134 u16 hostapd_own_capab_info(struct hostapd_data *hapd, struct sta_info *sta, in hostapd_own_capab_info() argument 168 if (sta) { in hostapd_own_capab_info() 170 if (probe && sta->ssid_probe) { in hostapd_own_capab_info() 171 policy = sta->ssid_probe->security_policy; in hostapd_own_capab_info() 172 def_klen = sta->ssid_probe->wep.default_len; in hostapd_own_capab_info() 174 policy = sta->ssid->security_policy; in hostapd_own_capab_info() 175 def_klen = sta->ssid->wep.default_len; in hostapd_own_capab_info() 205 static u16 auth_shared_key(struct hostapd_data *hapd, struct sta_info *sta, in auth_shared_key() argument 209 hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_IEEE80211, in auth_shared_key() 215 if (!sta->challenge) { in auth_shared_key() [all …]
|
D | accounting.c | 29 struct sta_info *sta); 33 struct sta_info *sta, in accounting_msg() argument 50 if (sta) { in accounting_msg() 51 radius_msg_make_authenticator(msg, (u8 *) sta, sizeof(*sta)); in accounting_msg() 54 sta->acct_session_id_hi, sta->acct_session_id_lo); in accounting_msg() 80 if (sta) { in accounting_msg() 82 val = ieee802_1x_get_identity(sta->eapol_sm, &len); in accounting_msg() 85 if (!val && sta->identity) { in accounting_msg() 86 val = (u8 *) sta->identity; in accounting_msg() 87 len = os_strlen(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() 69 if (sta->flags & WLAN_STA_PREAUTH) { in ieee802_1x_send() 70 rsn_preauth_send(hapd, sta, buf, len); in ieee802_1x_send() 73 hapd, sta->addr, buf, len, in ieee802_1x_send() 74 encrypt, hostapd_sta_flags_to_drv(sta->flags)); in ieee802_1x_send() 82 struct sta_info *sta, int authorized) in ieee802_1x_set_sta_authorized() argument 86 if (sta->flags & WLAN_STA_PREAUTH) in ieee802_1x_set_sta_authorized() 90 ap_sta_set_authorized(hapd, sta, 1); 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 | 151 struct sta_info *sta = ap_get_sta(hapd, addr); in hostapd_wpa_auth_set_eapol() local 152 if (sta == NULL) in hostapd_wpa_auth_set_eapol() 156 ieee802_1x_notify_port_enabled(sta->eapol_sm, value); in hostapd_wpa_auth_set_eapol() 159 ieee802_1x_notify_port_valid(sta->eapol_sm, value); in hostapd_wpa_auth_set_eapol() 162 ieee802_1x_set_sta_authorized(hapd, sta, value); in hostapd_wpa_auth_set_eapol() 165 if (sta->eapol_sm) in hostapd_wpa_auth_set_eapol() 166 sta->eapol_sm->portControl = Auto; in hostapd_wpa_auth_set_eapol() 169 if (sta->eapol_sm) in hostapd_wpa_auth_set_eapol() 170 sta->eapol_sm->keyRun = value ? TRUE : FALSE; in hostapd_wpa_auth_set_eapol() 173 if (sta->eapol_sm) in hostapd_wpa_auth_set_eapol() [all …]
|
D | sta_info.h | 163 int (*cb)(struct hostapd_data *hapd, struct sta_info *sta, 166 struct sta_info * ap_get_sta(struct hostapd_data *hapd, const u8 *sta); 168 void ap_sta_hash_add(struct hostapd_data *hapd, struct sta_info *sta); 169 void ap_free_sta(struct hostapd_data *hapd, struct sta_info *sta); 172 void ap_sta_replenish_timeout(struct hostapd_data *hapd, struct sta_info *sta, 174 void ap_sta_session_timeout(struct hostapd_data *hapd, struct sta_info *sta, 177 struct sta_info *sta); 179 struct sta_info *sta, int warning_time); 181 void ap_sta_disassociate(struct hostapd_data *hapd, struct sta_info *sta, 183 void ap_sta_deauthenticate(struct hostapd_data *hapd, struct sta_info *sta, [all …]
|
D | ieee802_11_ht.c | 287 u16 copy_sta_ht_capab(struct hostapd_data *hapd, struct sta_info *sta, in copy_sta_ht_capab() argument 294 sta->flags &= ~WLAN_STA_HT; in copy_sta_ht_capab() 295 os_free(sta->ht_capabilities); in copy_sta_ht_capab() 296 sta->ht_capabilities = NULL; in copy_sta_ht_capab() 300 if (sta->ht_capabilities == NULL) { in copy_sta_ht_capab() 301 sta->ht_capabilities = in copy_sta_ht_capab() 303 if (sta->ht_capabilities == NULL) in copy_sta_ht_capab() 307 sta->flags |= WLAN_STA_HT; in copy_sta_ht_capab() 308 os_memcpy(sta->ht_capabilities, ht_capab, in copy_sta_ht_capab() 315 void ht40_intolerant_add(struct hostapd_iface *iface, struct sta_info *sta) in ht40_intolerant_add() argument [all …]
|
D | ctrl_iface_ap.c | 26 struct sta_info *sta, in hostapd_get_sta_tx_rx() argument 32 if (hostapd_drv_read_sta_data(hapd, &data, sta->addr) < 0) in hostapd_get_sta_tx_rx() 45 static int hostapd_get_sta_conn_time(struct sta_info *sta, in hostapd_get_sta_conn_time() argument 51 if (!sta->connected_time.sec) in hostapd_get_sta_conn_time() 54 os_reltime_age(&sta->connected_time, &age); in hostapd_get_sta_conn_time() 84 struct sta_info *sta, in hostapd_ctrl_iface_sta_mib() argument 89 if (!sta) in hostapd_ctrl_iface_sta_mib() 94 MAC2STR(sta->addr)); in hostapd_ctrl_iface_sta_mib() 99 ret = ap_sta_flags_txt(sta->flags, buf + len, buflen - len); in hostapd_ctrl_iface_sta_mib() 106 sta->aid, sta->capability, sta->listen_interval); in hostapd_ctrl_iface_sta_mib() [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); 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); [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_vht.c | 84 u16 copy_sta_vht_capab(struct hostapd_data *hapd, struct sta_info *sta, in copy_sta_vht_capab() argument 91 sta->flags &= ~WLAN_STA_VHT; in copy_sta_vht_capab() 92 os_free(sta->vht_capabilities); in copy_sta_vht_capab() 93 sta->vht_capabilities = NULL; in copy_sta_vht_capab() 97 if (sta->vht_capabilities == NULL) { in copy_sta_vht_capab() 98 sta->vht_capabilities = in copy_sta_vht_capab() 100 if (sta->vht_capabilities == NULL) in copy_sta_vht_capab() 104 sta->flags |= WLAN_STA_VHT; in copy_sta_vht_capab() 105 os_memcpy(sta->vht_capabilities, vht_capab, in copy_sta_vht_capab() 112 u16 set_sta_vht_opmode(struct hostapd_data *hapd, struct sta_info *sta, in set_sta_vht_opmode() argument [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);
|
D | preauth_auth.h | 16 void rsn_preauth_finished(struct hostapd_data *hapd, struct sta_info *sta, 18 void rsn_preauth_send(struct hostapd_data *hapd, struct sta_info *sta, 20 void rsn_preauth_free_station(struct hostapd_data *hapd, struct sta_info *sta); 34 struct sta_info *sta, in rsn_preauth_finished() argument 40 struct sta_info *sta, in rsn_preauth_send() argument 46 struct sta_info *sta) in rsn_preauth_free_station() argument
|
D | ieee802_11.h | 27 int ieee802_11_get_mib_sta(struct hostapd_data *hapd, struct sta_info *sta, 37 struct sta_info *sta, in ieee802_11_get_mib_sta() argument 43 u16 hostapd_own_capab_info(struct hostapd_data *hapd, struct sta_info *sta, 63 u16 copy_sta_ht_capab(struct hostapd_data *hapd, struct sta_info *sta, 65 void update_ht_state(struct hostapd_data *hapd, struct sta_info *sta); 66 void ht40_intolerant_add(struct hostapd_iface *iface, struct sta_info *sta); 67 void ht40_intolerant_remove(struct hostapd_iface *iface, struct sta_info *sta); 68 u16 copy_sta_vht_capab(struct hostapd_data *hapd, struct sta_info *sta, 70 u16 set_sta_vht_opmode(struct hostapd_data *hapd, struct sta_info *sta, 79 struct sta_info *sta, u8 *eid);
|
D | wnm_ap.c | 59 struct sta_info *sta; in ieee802_11_send_wnmsleep_resp() local 63 sta = ap_get_sta(hapd, addr); in ieee802_11_send_wnmsleep_resp() 64 if (sta == NULL) { in ieee802_11_send_wnmsleep_resp() 108 if (!wpa_auth_uses_mfp(sta->wpa_sm) || in ieee802_11_send_wnmsleep_resp() 112 gtk_elem_len = wpa_wnmsleep_gtk_subelem(sta->wpa_sm, pos); in ieee802_11_send_wnmsleep_resp() 117 res = wpa_wnmsleep_igtk_subelem(sta->wpa_sm, pos); in ieee802_11_send_wnmsleep_resp() 158 sta->flags |= WLAN_STA_WNM_SLEEP_MODE; in ieee802_11_send_wnmsleep_resp() 161 wpa_set_wnmsleep(sta->wpa_sm, 1); in ieee802_11_send_wnmsleep_resp() 172 sta->flags &= ~WLAN_STA_WNM_SLEEP_MODE; in ieee802_11_send_wnmsleep_resp() 173 wpa_set_wnmsleep(sta->wpa_sm, 0); in ieee802_11_send_wnmsleep_resp() [all …]
|
D | ieee802_11_shared.c | 23 struct sta_info *sta, u8 *eid) in hostapd_eid_assoc_comeback_time() argument 33 os_reltime_sub(&now, &sta->sa_query_start, &passed); in hostapd_eid_assoc_comeback_time() 79 struct sta_info *sta; in ieee802_11_send_sa_query_resp() local 88 sta = ap_get_sta(hapd, sa); in ieee802_11_send_sa_query_resp() 89 if (sta == NULL || !(sta->flags & WLAN_STA_ASSOC)) { in ieee802_11_send_sa_query_resp() 117 struct sta_info *sta; in ieee802_11_sa_query_action() local 138 sta = ap_get_sta(hapd, sa); in ieee802_11_sa_query_action() 139 if (sta == NULL || sta->sa_query_trans_id == NULL) { in ieee802_11_sa_query_action() 145 for (i = 0; i < sta->sa_query_count; i++) { in ieee802_11_sa_query_action() 146 if (os_memcmp(sta->sa_query_trans_id + in ieee802_11_sa_query_action() [all …]
|
D | gas_serv.c | 32 struct sta_info *sta; in gas_dialog_create() local 36 sta = ap_get_sta(hapd, addr); in gas_dialog_create() 37 if (!sta) { in gas_dialog_create() 44 sta = ap_sta_add(hapd, addr); in gas_dialog_create() 45 if (!sta) { in gas_dialog_create() 50 sta->flags |= WLAN_STA_GAS; in gas_dialog_create() 55 ap_sta_session_timeout(hapd, sta, 5); in gas_dialog_create() 57 ap_sta_replenish_timeout(hapd, sta, 5); in gas_dialog_create() 60 if (sta->gas_dialog == NULL) { in gas_dialog_create() 61 sta->gas_dialog = os_zalloc(GAS_DIALOG_MAX * in gas_dialog_create() [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
|
/external/aac/libFDK/src/ |
D | qmf.cpp | 189 FIXP_QSS *RESTRICT sta = FilterStates; in qmfSynPrototypeFirSlot() local 203 FIXP_DBL Are = FX_QSS2FX_DBL(sta[0]) + fMultDiv2( p_fltm[0] , real); in qmfSynPrototypeFirSlot() 220 sta[0] = sta[1] + FX_DBL2FX_QSS(fMultDiv2( p_flt [4] , imag )); in qmfSynPrototypeFirSlot() 221 sta[1] = sta[2] + FX_DBL2FX_QSS(fMultDiv2( p_fltm[1] , real )); in qmfSynPrototypeFirSlot() 222 sta[2] = sta[3] + FX_DBL2FX_QSS(fMultDiv2( p_flt [3] , imag )); in qmfSynPrototypeFirSlot() 223 sta[3] = sta[4] + FX_DBL2FX_QSS(fMultDiv2( p_fltm[2] , real )); in qmfSynPrototypeFirSlot() 224 sta[4] = sta[5] + FX_DBL2FX_QSS(fMultDiv2( p_flt [2] , imag )); in qmfSynPrototypeFirSlot() 225 sta[5] = sta[6] + FX_DBL2FX_QSS(fMultDiv2( p_fltm[3] , real )); in qmfSynPrototypeFirSlot() 226 sta[6] = sta[7] + FX_DBL2FX_QSS(fMultDiv2( p_flt [1] , imag )); in qmfSynPrototypeFirSlot() 227 sta[7] = sta[8] + FX_DBL2FX_QSS(fMultDiv2( p_fltm[4] , real )); in qmfSynPrototypeFirSlot() [all …]
|